Tuesday, March 27, 2012
jQuery Ajax call to .NET web service
Service must be decorated with System.Web.Script.Services.ScriptService attribute. $.ajax client side method may have contentType property set to "application/json; charset=utf-8" and dataType property set to "json." Then iterate through response objects with response.d.
COM: Pointers to Interfaces Required
A client must have an interface pointer to invoke methods in that interface.
http://msdn.microsoft.com/en-us/library/windows/desktop/ms687230(v=vs.85).aspx
Saturday, March 10, 2012
Math Symbols
see http://mathforum.org/library/drmath/view/51433.html
for upside down A ("for all"), epsilon, etc.
for upside down A ("for all"), epsilon, etc.
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)