ganeshssac

Re: Turning Sphagetti codes in to Modular structure

Discussion created by ganeshssac on Oct 4, 2013
Latest reply on Oct 11, 2013 by JUihlein-esristaff
Hi GIS folks,
I started building web application using ARCGIS Javascript and slowly started adding new functionality into my web application.

As my coding is getting bigger and bigger into my application, it is getting to stage where it is very difficult to look at my code.

Can anyone please some provide methods / techniques through which we can organize our code in a modular way, so that allows easy debugging.

I do know that we organize our code in a separate Javascript file for each functionality / feature added on to my application, but, just wanted to know, is there a right way of doing / organizing code better.


And, also if you can point me to the right direction with some sample application, will be really appreciated.

Thanks in advance.


Regards
Ganesh

Outcomes