Cairngorm makes too rely on / promote Singletons?

It seems to me that Cairngorm too promotes the use of Singleton classes for application development, which can cause serious headaches down the road.

Two of their main design patterns are the CairngormEventDispatcher/CairgormEvent and the ModelLocator, as well as the FrontController. I came across a number of cases where the original design of an application was assumed to be independent, when in fact a little forethought would have made it clear that, ultimately, it is a built-in custom component more than anything else. Be able to use autonomous was useful, but in general it would be integrated as a module into another Flex application.

The problem comes when you need to add a second instance of the Cairngorm application. I have a widget creation and a reading widget, both built from code shared since the creation widget also includes the reading widget. So now I want to integrate the TWO creating a widget AND a widget of reading in my application. Indeed, like any other component (think combobox), I might want to include several widgets reading, each showing some users personal creation, all on the same page.

However, because my reading widget using Cairngorm, I'm practically no chance with the current code base. Assuming that I cram several widgets reading in a certain way (after all the question of departure/FrontController service) I have no way to control which of my multiple widgets responds when I hit the play button in one of them, because they are all listening for this event. Similarly my boss ModelLocator completely breaks down, since all widgets reading will share the same ModelLocator.

Is it just me? Am I missing something? Or is the original designer of this application need to know better how he would serve a year later? What is a breakdown of the total Cairngorm design patterns?

Yes, it looks like Cairngorm was not may not be the best choice for the 'widgets' you. I guess you have a point they should clarify better when you are not using Cairngorm. I have never tried to use when developing a component custom (or whatever it is) it's going to be added in a complete application.

Reading various articles, I (IIRC) feel like the guys from Farata Systems (perhaps Yakov) seem not to be very keen on frameworks (Cairngorm is called a "mictoarchitecture"), but rather of focus simply on strong "design component" and using the Flex event (i.e. dispatchEvent()) system. I certainly appreciate this attitude of questioning because too often inside, it seems that people seem to accept 'best practices' and 'how it is 'supposed' to do' as bible regardless of whether she is really an added value, or add unnecessary complexity. I think that the answer to everything, always, 'it depends' and we have to use our common sense and intelligence to understand that we really gain anything by doing something 'standard' which has questionable value.

I used the Cairngorm architecture but not meet your problem, maybe because I use it only to a "demand" level, never intend to have the product of this project integrated in what either.

http://ColdFusion.sys-con.com/read/479472_1.htm
(Didn't read all this, or I forgot if I did it, just put it here in case something I said about others ' opinions was not completely accurate.)

Tags: Flex

Similar Questions

  • What is the stage and the tools I need to make too many database to my project in bbndk10

    I am we will begin to develop natively, I do just the screen and I want to

    What is the stage and the tools I need to make too many database to my project in bbndk10

    You probably want to look at SQLite. There is a tutorial here: http://www.sqlite.org/quickstart.html

    I believe you can right click on the project and choose 'Configure-> Add library' and choose ' SQLite 3 "from there to add to the library and include directories of your project.»

  • DVD maker download

    Hello...

    I have vista 32 Home premium on my computer acer laptop and I can not find creation of dvd anywhere on it... i'm assuming that I removed it in a crazy 'clean up' of programs I have not used at the time (made with movie maker too, but re-downloaded it...)

    is there a way I can download dvd maker? How can I produce evidence of my premium of vista as I know, that it is a condition of creating DVDs?

    any help, greatly appreciated!

    Hello joanna76,

    Thank you for using the Microsoft answers Forum.

    Are you sure that you completely uninstalled or deleted the program from the computer? If you remove the Movie Maker program, it is very likely that the DVD authoring program went with it. If you reinstalled the Movie Maker program, you may find that the DVD Maker has been re-installed as well because it is a complementary program for Movie Maker.

    Right click on the start ORB and select Explorer. When Windows Explorer opens, select Program Files and Movie Maker. Look in the folder and see if the DVD authoring program is listed in the content. If it is listed, you can make a shortcut to the program and place it somewhere convenient access.

    Let us know if you find the DVD maker in the contents of the folder and that should tell us or not to help you restore programs Movie Maker and DVD Maker.

    Judd
    Engineer Microsoft Support answers visit our Microsoft answers feedback Forum and let us know what you think.

  • Dell Studio XPS too noisy!

    I have a Dell Studio XPS 9000 with a Radeon 5870 graphics card that makes too much noise. I think it is the fan noise. I called technical support, which replaced two fans. Did not help - if anything, it is now more noisy he was! All idling, it is not quiet.

    The system is about a year. (Is there more than the 2 fans in the system by the way?)

    (1) can anyone suggest how this system down?

    (2) I contacted a vendor third 3d that makes fans more silent, so-called, but the seller must exact model or type numbers or something Dell fans. Does anyone know how to find out exactly what kind of fans are in the Dell XPS and also exactly what solutions third-party 3d for quieter fans there are, if any?

    It is also an old thread, you should start a new one.

    I assume you mean a Studio XPS 9000.

    This model according to the configuration guide, has no onboard video and no on-board video port is shown in the figure on page 20 of this installation guide. If you cannot select video...

    What do you mean by "the noise of the fan? It's just the fan spins at high speed or is it squealing or some other noise?

    You can open the case and make sure the fan and vents are clean. Use canned air to blow 5 - year-old dust of all components.

    And if this started after a recent update of MS, you can consult the Web of AMD site for an updated driver for the video card today, that works with any version of Windows that you are using before you spend money unnecessarily.

  • Administrator in msconfig XP error

    I'm working on my sisters pc, its sloooow, I tried changing the programs in msconfig and it gives me an error need to be the administrator but she is the only one and she is the administrator, I tried to delete the programs one at a time and I get the same error, I started in safe mode and get the same. the pc takes forever to start and looks like she didn't any what ram but I have used the PC with less ram who worked a lot faster, something does not work correctly, it doesn't have a lexmark printer and it had maccave loaded in a first time on it, but was never activated, anyone has a solution for this? I don't want to pay for something that looks like an easy solution or a problem to microsoft by the post, I saw. Thank you

    What is the brand and model of the PC? How much RAM does? What is the hard drive and the amount of free space is left on it?

    You don't necessarily need to worry about this error. As station covered José, it is probably the result of the presence of the PML from HP driver. The good news is that even if you see the error message, your changes of msconfig again will take effect. So, it's just a nuisance. Of course, if it bothers you as long as you can certainly make changes to your registry. But it is not absolutely necessary to do so. So, your call.

    Here are the usual causes of slow:

    1. malware (malware). You need to rule out first! This page has excellent information:

    http://Web.archive.org/Web/20080610163247/http :// www.elephantboycomputers.com/page2.html#Removing_Malware

    2. some programs aimed at combating malware (for example, Norton and McAfee). Ironically, they can slow things down because they use simply much too many resources. Sometimes they cause conflicts with other programs. And their default mode is to scan your entire hard drive whenever you start. Fortunately, there are other programs of anti-malware software available that use much less resources (p. ex., NOD32, Avast and Avira).

    3. too much of certain types of programs still running in background - with or without your consent. (Then again, a lot of programs running in the background of the consequences trivial.)

    To determine each program and process, you are running, use the task (Ctrl + Alt + Delete) Manager and click the processes tab. You should be able to sort by CPU usage or memory usage for a good ideas that are resource/memory hogs. You must write the names of all the processes for future detective work (or take a snapshot and print it).

    Use these sites to determine what these programs are, and learn how configure them to not always run when starting:

    http://www.PACS-portal.co.UK/startup_content.php#THE_PROGRAMS
    http://www.bleepingcomputer.com/startups/
    http://www.AnswersThatWork.com/Tasklist_pages/Tasklist.htm

    Sometimes, it is recommended to use msconfig to configure programs to run at startup. A better, more thorough program is Autoruns:

    http://TechNet.Microsoft.com/en-us/sysinternals/bb963902.aspx

    But before that, you must use the settings preference of the program in question. Otherwise, for some programs, they will return to the list of startup anyway!

    If you do not want to use msconfig, it can be accessed in this way:

    Start | Run | Type "msconfig" (without the quotes). Enter (or OK)

    4. not enough RAM, causing the PC too rely on the pagefile. A quick way to determine if what is happening is to open (Ctrl + Alt + Delete) Task Manager, and then click the performance tab. Then the three values under Commit Charge (k) Note: in the lower left corner: Total, limit and peak.

    The Total number represents the amount of memory you are using right now. The vertex figure represents the maximum amount of memory you made since the last boot. If these figures are lower than the value of the amount of physical memory (K), then you probably have lots of RAM. In case you want to study it more, you can run the Page queue Monitor for Windows XP:

    http://www.dougknox.com/XP/utils/xp_pagefilemon.htm

    5. you can also verify that the access mode of your hard drive has not changed from DMA to PIO:

    http://www.technize.com/2007/08/02/is-your-hard-disk-CDDVD-drives-too-slow-while-copying/

    and

    http://winhlp.com/node/10

  • Is there a new 'fix' for a 9 year old XP Home computer that runs a lot slower than it used to? I do the interview, but nothing works

    In 9 years. I re XP 5 times because it was the ONLY done fixthat my Dell Dimension 8250 run fast. I kept all the updates, ran the cleaners of files, defragmented the hard drive, put the parameters to performance don't not Visual, even added more than 512 MB ram (1 GB total) that has MADE for a month or 2 really speed things up, but it is also to slow. The last time I put the XP disk in there was this msg: "Setup cannot continue because the version of windows on your computer is newer than the version on the CD. ANY HELP is HIGHLY appreciated as this is the measure of my ability of fix - it - happy to post here any info you need to diagnose this bottleneck problem, thanks, Patrick

    Do yourself a favor. After your next relocation and after you get it until you're happy with it (install SP3 and all subsequent security patches, install all the programs that you use regularly, install a good antivirus, install the latest versions of Adobe Flash and Java, etc.), make an image of your hard drive. This way you will EVER need to reinstall your OS again! Acronis and Paragon are good programs. DriveImageXML is a good gift (but doesn't have as many features as imaging programs paid).

    About the General slowness, here are the usual causes:

    1. malware (malware). You need to rule out first! This page has excellent information:

    http://Web.archive.org/Web/20080610163247/http :// www.elephantboycomputers.com/page2.html#Removing_Malware

    2. some programs aimed at combating malware (for example, Norton and McAfee). Ironically, they can slow things down because they use simply much too many resources. Sometimes they cause conflicts with other programs. And their default mode is to scan your entire hard drive whenever you start. Fortunately, there are other programs of anti-malware software available that use much less resources (p. ex., NOD32, Avast and Avira).

    3. too much of certain types of programs still running in background - with or without your consent. (Then again, a lot of programs running in the background of the consequences trivial.)

    To determine each program and process, you are running, use the task (Ctrl + Alt + Delete) Manager and click the processes tab. You should be able to sort by CPU usage or memory usage for a good ideas that are resource/memory hogs. You must write the names of all the processes for future detective work (or take a snapshot and print it).

    Use these sites to determine what these programs are, and learn how configure them to not always run when starting:

    http://www.PACS-portal.co.UK/startup_content.php#THE_PROGRAMS
    http://www.bleepingcomputer.com/startups/
    http://www.AnswersThatWork.com/Tasklist_pages/Tasklist.htm

    Sometimes, it is recommended to use msconfig to configure programs to run at startup. A better, more thorough program is Autoruns:

    http://TechNet.Microsoft.com/en-us/sysinternals/bb963902.aspx

    But before that, you must use the settings preference of the program in question. Otherwise, for some programs, they will return to the list of startup anyway!

    If you do not want to use msconfig, it can be accessed in this way:

    Start | Run | Type "msconfig" (without the quotes). Enter (or OK)

    4. not enough RAM, causing the PC too rely on the pagefile. A quick way to determine if what is happening is to open (Ctrl + Alt + Delete) Task Manager, and then click the performance tab. Then the three values under Commit Charge (k) Note: in the lower left corner: Total, limit and peak.

    The Total number represents the amount of memory you are using right now. The vertex figure represents the maximum amount of memory you made since the last boot. If these figures are lower than the value of the amount of physical memory (K), then you probably have lots of RAM. In case you want to study it more, you can run the Page queue Monitor for Windows XP:

    http://www.dougknox.com/XP/utils/xp_pagefilemon.htm

    5. you can also verify that the access mode of your hard drive has not changed from DMA to PIO:

    http://www.technize.com/2007/08/02/is-your-hard-disk-CDDVD-drives-too-slow-while-copying/

    and

    http://winhlp.com/node/10

  • freeing physical memory.

    I have 512 MB of total physical memory and my sys info I have 181 MB of physical memory left available shows.  I have 2 GB of virtual memory total with 1.96 GB available left. page file space 1.20 GB is.

    My computer seems really slow and I did all the viruses with microsoft and webroot and its own projections. I have cleaned and defragmented disk and seems to cling to certain times and especially if you click on frown again on a page "hung up". It will giveyou the hourglass effect and will not respond. Any other suggestions to make? I have XP Edition family sp3 and all updates for windows explorer 8. Thank you!

    Looks like you have lots of RAM. But if you want to double-check, skip to #4 below.

    Brand and model of the PC? XP Home or Pro, or MCE? What are you doing SP level to? Have you installed XP security update patches? What security programs (antivirus, other antimalware, firewall, etc.) are you running? Are they up-to-date?

    Here are the usual causes of slow:

    1. malware (malware). You need to rule out first! This page has excellent information:

    http://Web.archive.org/Web/20080610163247/http :// www.elephantboycomputers.com/page2.html#Removing_Malware

    2. some programs aimed at combating malware (for example, Norton and McAfee). Ironically, they can slow things down because they use simply much too many resources. Sometimes they cause conflicts with other programs. And their default mode is to scan your entire hard drive whenever you start. Fortunately, there are other programs of anti-malware software available that use much less resources (p. ex., NOD32, Avast and Avira).

    3. too much of certain types of programs still running in background - with or without your consent. (Then again, a lot of programs running in the background of the consequences trivial.)

    To determine each program and process, you are running, use the task (Ctrl + Alt + Delete) Manager and click the processes tab. You should be able to sort by CPU usage or memory usage for a good ideas that are resource/memory hogs. You must write the names of all the processes for future detective work (or take a snapshot and print it).

    Use these sites to determine what these programs are, and learn how configure them to not always run when starting:

    http://www.PACS-portal.co.UK/startup_content.php#THE_PROGRAMS
    http://www.bleepingcomputer.com/startups/
    http://www.AnswersThatWork.com/Tasklist_pages/Tasklist.htm

    Sometimes, it is recommended to use msconfig to configure programs to run at startup. A better, more thorough program is Autoruns:

    http://TechNet.Microsoft.com/en-us/sysinternals/bb963902.aspx

    But before that, you must use the settings preference of the program in question. Otherwise, for some programs, they will return to the list of startup anyway!

    If you do not want to use msconfig, it can be accessed in this way:

    Start | Run | Type "msconfig" (without the quotes). Enter (or OK)

    4. not enough RAM, causing the PC too rely on the pagefile. A quick way to determine if what is happening is to open (Ctrl + Alt + Delete) Task Manager, and then click the performance tab. Then the three values under Commit Charge (k) Note: in the lower left corner: Total, limit and peak.

    The Total number represents the amount of memory you are using right now. The vertex figure represents the maximum amount of memory you made since the last boot. If these figures are lower than the value of the amount of physical memory (K), then you probably have lots of RAM. In case you want to study it more, you can run the Page queue Monitor for Windows XP:

    http://www.dougknox.com/XP/utils/xp_pagefilemon.htm

    5. you can also verify that the access mode of your hard drive has not changed from DMA to PIO:

    http://www.technize.com/2007/08/02/is-your-hard-disk-CDDVD-drives-too-slow-while-copying/

    and

    http://winhlp.com/node/10

  • iOS 10 times to start and stop the music messed up

    I'm running a SE 64 GB iPhone with iOS 10. Many songs from my iTunes library has some moments of power, but after update, they are all mixed. Songs don't start or stop when they're supposed to, or they're going to start and stop at a random time, which is annoying. The same problem was in the beta, causing me to backup on iOS 9. I assumed that this bug would be fixed in the final version. All the solutions in addition to remove and re - download my library?

    Hello Carnage1215,

    Thank you for reaching out to the Community Support from Apple. I understand your music has had some problems and I want to help him. By the sounds of things that your songs start may be delayed or in the middle of the piece, is that correct?

    Before you make too much trouble shooting, it's a good idea to make a backup of your iPhone If you don't have it already. If you do not know how to save your phone from this article will guide you in the process: the backup of your iPhone, iPad and iPod touch

    Once you have made a backup, I would recommend to reset all the settings on your iPhone. This will ensure that all old data of a version of iOS parameter are removed and reset default. This removes all data and applications, photos or contacts, but it removes all of your preferences for the Wi - Fi, Bluetooth, do not disturb, Notifications, general, sounds, contact ID, brightness & paper painted and privacy, then you may need to define these things upwards after this reset.

    Do this please go to settings > general > reset > reset all settings.

    If you always use the same behavior after you restart your phone, please inform the community. We are all here to help.
    Best regards.

  • Download (Mac Pro, 2012) slow network speeds

    I have a 1 Gbps with wired link speed, but only 30 MB/s download speed (according to speedtest.net).

    Wired using a TP - LINK AV1200 Gigabit Powerline.

    WiFi is 300 Mbps, with 50 MB/s.

    My router is an ASUS RT-AC87U

    The strange thing is that with my iPhone 6 to the same place, there is 188,20 Mbps on wifi!

    Mac Pro (mid-2012)

    OS X El Capitan (10.11.6)

    EN2:

    Card type: AirPort Extreme (0x14E4, 0x8E)

    Firmware version: Broadcom BCM43xx 1.0 (5.106.98.100.24)

    MAC address: *.

    Any help/advice would be appreciated!

    < personal information under the direction of the host >

    Your description evokes so many different things and does not clear exactly what is happening with that. Please, take a deep breath and start over.

    Explain as if you were saying the problem to a small child. If you have experiences, specify the exact configuration and the exact results that accompanied him. We cannot see your Mac, and your descriptions make too many assumptions. What are the results go with what configurations? is there a Wi - Fi connection? Ethernet, BOTH? or?

  • MacBook 2016 cannot read an My Passport Slim external

    Hello everyone

    My new 2016 MacBook has only a single USB - C port that connects to Western Digital My Passport Slim disk external DRIVE via a USB HooToo multiport adapter.

    OS X in it just cannot read HARD drive even through it will make a sound when connected via the hub.

    I first thought the HARD drive has a problem, but then when I run EaseUs Partition Recovery Disk, it does not read the partition of the HARD drive either.

    The HARD drive makes too much noise.

    I find having just a USB - C which acts as a power port and can be multiplied by an incredibly awkward adapter.

    But first and foremost, I have to get the HARD drive to show up in OS X.

    What are the best ways to make it happen?

    Any advice would be appreciated.

    Thanks as always

    Here is a link to another discussion indicating that others have similar problems. Two posters seem to have solved the problem by upgrading to the latest version, 10.11.5

    Apple also noted that some external hard drives G Drive do not work with the adapter. Since Apple may not have tested each other drive that I wonder if there are other materials with the same problem. It seems that the issue has been the port USB - C does not provide enough power to run the command. Is the HooToo adapter connected to a power outlet? Is anything else connected to the card "multi-port".

    WRG

  • How to move files between accounts?

    Hello

    I used my MacBook with administrator account because I got it. (over 4 years)

    I guess that there is a problem or annoying with it, so I made a new user with normal privileges account today.

    But I have no idea how to make to move all the files, including the Aperture library, films, documents, music in iTunes, download and so on for the new directories of account without losing storage space. (which Directory directory to which? that's it?) I think I need to move and delete files that I can't know that they should be deleted so that the files don't not to occupy the SSD.

    I hope someone can help out me.

    Thank you

    JH

    Run for the most part not Administrator protects you from yourself.

    The best thing to do is use the new account as the account admin, then demote your current account at the standard. Just make sure that you promote the new account before you downgrade your current account.

    On each screen of the user in users and groups, check or uncheck the box that says "allow user to administer this computer."

  • Why is my Mac OSX Firefor 17 so slow?

    I get the rotation drive, everytime I try to play Farmville on facebook. This iMac is only 2 years old and it's terrible. Takes forever to generate reports to Family Tree Maker too.

    Is the creator of the family tree online or is it the stand-alone program? This is the standalone version, if not a Firefox problem.

    Try to read the tips to Firefox is slow - how to make it faster

  • As 10/21 update will not protection against vulnerabilities Norton 11.1.0.73 - 1, I want to put to day &amp; product Norton, HOW CAN I?

    I would like to apply update but do not want to loose 11.1.0.73 - 1 Norton Protection against vulnerabilities
    Is this possible? If so, how?

    Guaps, really should not be a problem as 16.0.2 is just an update to security chemspil as always is 16.0 well enough.

    Zubair was happening back saying it is Firefox 16.0.2 which is not compatible and Norton which is not yet updated to be compatible with the 16.0.2.

    Mozilla has nothing to update with Firefox 16.0 unless there was some tiny chance of a regression with 16.0.2 (which would be a first) causing problems. It's Norton who must be compatible, if that is the problem and to me if it is compatible with 16.0 so it should be compatible with the 16.0.2 as why they make too demanding things if that's what they do.

    In addition, it is 16.0.2 and not 16.02

  • Satellite A660 - 11 M and fan speed controller

    Hello

    Is there anyway to reduce the speed of the fan on the A66011m Satellite?
    The fan operates at 67% and makes too much noise for use in an office environment. Is it possible to reduce this?

    Thank you

    Adam

    Hello Adam

    There is a single way to do this. Go to power management and open the advanced power settings for the management of the power supply you use.
    You will find Toshiba Power Saver options and parameters for the method of cooling. Open it and put them in optimized battery.

    This should reduce the activity of fan cooling.

  • Whatever the problem of recording which guarantees in Croatia

    Hello

    I bought my Toshiba Satellite C50-B-12V on December 31, 2014 at the store Elipso in Slavonski Brod, Croatia.
    I tried to register my phone on any guarantee Toshiba pages to get 2 years free, but I could not complete the registration.

    It says some kind of registration issue.
    So I called a store where I bought the laptop and they promised to solve this problem.

    But I have not received on my registration confirmation mail!
    I also contacted Toshiba about their mail ([email protected]) with my receipt, but I have not received registration confirmation yet!

    I have read the terms of warranty and he said I will receive the confirmation e-mail with all the data on my registration...

    Kind regards

    Mila Miler

    I know the NMWG is always a temporary promotion.
    In case this isn't promotion valid more, recording is not possible.

    On this page you will find all the details and the following information:
    https://www.nomatterwhatguarantee.com

    + We would like to inform you that the latest edition of this promotion has expired the 14.01.2015 and it is more possible to register new devices that have been purchased after the 31.12.2014 +

    Here deatailed on registration info I found in
    [TERMS & CONDITIONS | https://www.nomatterwhatguarantee.com/Content/instances/_T_and_C/T&C%2010.2014.pdf]

    + Connect to www.nomatterwhatguarantee.com within 14 days of your purchase and make a record of promotion. Please note that registration NMWG automatically includes a recording of the standard warranty. This recording of the standard warranty is also free. +

    + Register your TOSHIBA laptop for promotion on www.nomatterwhatguarantee.com by filling out the online registration form. The registration form must be complete. +

    + After you have completed your registration, you will receive a confirmation email from
    * [email protected] * confirming your registration and send the registration number that you should keep for any future correspondence and / or claiming. +

    + All applications without promotion valid registration number will be refused. +
    + All entries must be received no later than January 15, 2015 and complaints against the promotion not later than 31 December 2015. Please note that you must register your laptop TOSHIBA newly purchased within 14 days after the date of purchase online under www.nomatterwhatguarantee.com.+

Maybe you are looking for