Tuesday, February 28, 2012
jQuery Cached Objects
When performing an action repeatedly on a jquery wrapper object (i.e. "wrapped set"), cache the object by assigning it to a variable.
Saturday, February 18, 2012
UML - Association versus Aggregation versus Composition
The good article at http://aviadezra.blogspot.com/2009/05/uml-association-aggregation-composition.html (found when trying to remember the meaning of UML association notations in http://en.wikipedia.org/wiki/File:Domain_model.png) discusses these, indicating the unique features of each:
Association - includes "weak" associations
Composition - denotes dependency (exclusivity)
There's a fourth, association that was not mentioned: Dependency (denoted by dashed arrow), which denotes weak association. Therefore, as far as I can tell, composition associations, in general, can be represented by either of Aggregation, Dependency, or Composition UML notation.
So, where is association notation useful? Many-to-many relationships and mutually navigable relationships.
More explanation on when to use arrows: http://awgquotes.blogspot.com/2012/02/uml-associations-objectmentor.html
Tuesday, February 7, 2012
Yield keyword
I learned about the C# Yield keyword at http://www.youtube.com/watch?v=F7L9seU_mak&feature=player_embedded
Also learned about IEnumerable at http://msdn.microsoft.com/en-us/library/system.collections.ienumerable.aspx
Motivation for IEnumerable to simplify looping.
Subscribe to:
Posts (Atom)