Hi,
As my project has grown, I continued to have one giant script in index.html.
Recently, this has reached a tipping point where editing it manually is quite difficult.
So I decided to split it up into multiple JavaScript source files.
I simply put all my data sources in one file, all my find forms in one file, etc.
This may work for now, but I'd like to group the elements by the window or canvas on which they apprear, so I don't have to load multiple files for changes to the app.
I've noticed that the location of the elements in the file is important, since JavaScript seems to proceed from top to bottom when instantiating the objects.
I don't want to start rearranging the elements in the js file and crash my app.
Does Isomorphic recommend any best practices for splitting applications up into separate source code files for easier maintenance?
Thanks,
Mike
P.S. I'd also love to use some sort of visual editor, but I'm using the server-less version, so I don't think it's possible. Positioning these elements using co-ordinates and my spacial imagination is becoming impossible too!
As my project has grown, I continued to have one giant script in index.html.
Recently, this has reached a tipping point where editing it manually is quite difficult.
So I decided to split it up into multiple JavaScript source files.
I simply put all my data sources in one file, all my find forms in one file, etc.
This may work for now, but I'd like to group the elements by the window or canvas on which they apprear, so I don't have to load multiple files for changes to the app.
I've noticed that the location of the elements in the file is important, since JavaScript seems to proceed from top to bottom when instantiating the objects.
I don't want to start rearranging the elements in the js file and crash my app.
Does Isomorphic recommend any best practices for splitting applications up into separate source code files for easier maintenance?
Thanks,
Mike
P.S. I'd also love to use some sort of visual editor, but I'm using the server-less version, so I don't think it's possible. Positioning these elements using co-ordinates and my spacial imagination is becoming impossible too!
Comment