What he did talk about was the size and importance of the client tier and his conclusion was very straight forward : it depends on how the level of
Dave also mentioned that it is a good idea to set the level at which
Next on, he explained Java Literals, Closures, and more JavaScript specific stuff in a way that a relatively JavaScript noob like me could understand. I liked the fact that Dave calls Closures akin to inside-out objects. One thing that I really don’t like, but that is coming from a more structured, procedural mindset, is the fact that if you pass local variables to a callback within a Closure, those variables will be essentially global – and taking up memory – where the visibility is restricted to the callback only. In closure – pun intended – this is how Dave summarized the difference between objects and closures:
Objects: Data encapsulating behavior
Closures: Behavior encapsulating data
Dave wrote a book on Ajax Design Patterns and he told the crowd that he advises to not use Java-esque ways to program the GoF patterns but to use a more JavaScript approach. This will prove to have you writing less code and use some of the typical JavaScript constructs to their full potential.
He ended the session by demonstrating the implementation of the MVC and Strategy Patterns in an easy to understand manner.
No comments:
Post a Comment