JavaScript-library-based Project Organization

Posted by Laith J on Stack Overflow See other posts from Stack Overflow or by Laith J
Published on 2010-05-14T20:39:55Z Indexed on 2010/05/14 20:44 UTC
Read the original article Hit count: 264

Hello,

I'm very new to the JavaScript library world. I have used JS by itself before to create a mini social network but this is the first time I use a JS library and I really don't know how to go about this.

I'm planning to use Google Closure and I'm really not sure how I should go about organizing the code. Should I put everything in one file since it's a web app and should have one screen? Should I separate the code to many chunks and put them in different files? Or should I put different dialogs (like settings) in a separate page and thus a separate file?

Like all programmers I'm a perfectionist so please help me out with this one, thanks.

© Stack Overflow or respective owner

Related posts about google-closure

Related posts about JavaScript