JavaScript/Notes/: Difference between revisions

From Noisebridge
Jump to navigation Jump to search
Garrett (talk | contribs)
No edit summary
Garrett (talk | contribs)
No edit summary
Line 17: Line 17:
The Factory pattern, the Decorator pattern, newApply, and the holy grail: Abstract Factory.
The Factory pattern, the Decorator pattern, newApply, and the holy grail: Abstract Factory.


== Parameter Object ==  
== [https://noisebridge.net/wiki/JavaScript/Notes/ParameterObject Parameter Object] ==  
Passing around lists of parameters? Typechecking arguments? Stop doing that. Here's how to make your code clearer and less error-prone.
Passing around lists of parameters? Typechecking arguments? Stop doing that. Here's how to make your code clearer and less error-prone.



Revision as of 09:00, 31 October 2013

You down with OOP?

"Yeah you know me!"

Two interfaces with a similar signature. The Devil's in the details -- encapsulate them!

An abstract system for event notification.

An system for DOM event notification, designed to handle delegation and specific event models.

The Factory pattern, the Decorator pattern, newApply, and the holy grail: Abstract Factory.

Passing around lists of parameters? Typechecking arguments? Stop doing that. Here's how to make your code clearer and less error-prone.