27 Feb

JS debouncing

  Let us say you have a rather expensive ajax call that you want to make only when necessary, but you also need it to be bound to a mouseover event. How do you gauruntee that it will only be called once? What if the user hovers multiple times? What if ...

  • Thu, 27 Feb 2014
  • Posted by jason
Read more...

  Early in my programming career, I was chastised for using a case statement in a simple factory. "You should be using a dictionary" he told me. "It makes the code cleaner and prevents adding too much logic in the factory." Although I wasn't prepared to handle the architecture concepts ...

  • Wed, 15 Jan 2014
  • Posted by jason
Read more...

  When asked "what is your favorite templating engine?" My standard answer is KnockoutJS as it leaves the templating to the client-side JS. I feel that the more robust the server-side templating language is, the greater the temptation to put logic into it.

  Razor is one of those engines. It has ...

  • Thu, 09 Jan 2014
  • Posted by jason
Read more...

  I like C# for a lot of reasons. It has a responsive IDE, readable syntax, and a great feature set. It is not perfect though. Although its feature set is vast some of those features do not seem to be as well implemented as they could be. One of those ...

  • Tue, 07 Jan 2014
  • Posted by Jason
Read more...