AnsweredAssumed Answered

ArcGIS JavaScript programming, single responsibility, singletons and best practices?

Question asked by ygorth on Jun 18, 2013
Latest reply on Jun 10, 2014 by
Hello guys,

I started my programming in two days, my "main.js" file starts getting gigantic and hard to understand.

Do you know any documentation that can help me with the Javascript programming with Dojo and ArcGIS API?
I believe that to minimize the problem will need to singleton for the object map. Questions:

- How do you guys organize your files (.JS)? Separate files for subsequent "compilation"?
- Do you use MVVM?
- Do you use the single responsibility principle for the scope of require([]) (Dojo)?

Thanks, any opnion is welcome!