@Rey Agree with Andrew,
You always have to think about OO design before getting any single line of code written, this applies to Javascript but to a whole lot of programming languages as well. I'll not paraphrase Andrew but the thing to avoid is having too much aspects in your object http://fr.wikipedia.org/wiki/God_object. I'd recommend reading the YUI3 code which is the state of the art in terms of SoC. -- Christophe. On Sun, Dec 12, 2010 at 5:23 PM, Christophe Porteneuve <t...@tddsworld.com> wrote: > Hey, personally I'm a huge fan of how Sam Stephenson structures Basecamp's > JS code. You can grab it at /sprockets.js on a Basecamp account you'd have. > It's concatenated and comment-stripped, but not compacted/minified (they > rely on GZipping to do an even better job). Of course it's less structured > that way than if you saw the massive directory tree of the original source > files, but still, I find it a regular source of inspiration. > > -- > Christophe Porteneuve aka TDD > t...@tddsworld.com > > _______________________________________________ > JSMentors mailing list > JSMentors@jsmentors.com > http://jsmentors.com/mailman/listinfo/jsmentors_jsmentors.com > > List Archive: > http://jsmentors.com/pipermail/jsmentors_jsmentors.com/ > _______________________________________________ JSMentors mailing list JSMentors@jsmentors.com http://jsmentors.com/mailman/listinfo/jsmentors_jsmentors.com List Archive: http://jsmentors.com/pipermail/jsmentors_jsmentors.com/