Using Javascript to handle visibility can sometimes be cumbersome. For small applications it is easy to throw a few
hide()
's in a script tag and not worry about maintainability. As the application grows however, it becomes harder to track the
state of the DOM and you end up with ...
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 ...
The Dictionary of Func
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 ...
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 ...
Trouble with tuples
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 ...
- Pages:
- 1