Does anyone have an example of well written JavaScript applications
that they know about? I would prefer the code to be readable. I
particularly like YUI's code. Does anyone have any more applications/
examples? Thanks .
Hi Jang,
If you are interested in OOP application design, I recommend reading
books on design patterns.
The classic book is "Design Patterns" by Gamma, Helm, Johnson,
Vlissides and this is a book worth having on your desk.
Before I studied that book I read "Head First Design Patterns" by
Freeman, Freeman, Bates, Sierra which is really just a reformatting
and possibly more accessible version of the Gamma et al. book.
A more direct answer to your question may be to read the Model-View-
Controller chapter of "Essential ActionScript 2.0" by Moock.
ActionScript is only a small step away from JavaScript and they are
both ECMAScript implementations (each with some extensions). I think
Moock's chapter on MVC is the best description I've read about using
MVC in the browser. There is now a new edition of Moock's book called
"Essential ActionScript 3.0" which I haven't seen yet. I've done quite
a bit of experimentation with Moock's framework in JavaScript and it
works well. If you want more info about my experimentations let me
know.
Peter