A little early, but who is keeping score? Timers!

I ran into a problem the other day at work where I had put in an assert to verify that a timer I was using was not being called back too early.  The timer interval was adjusted depending on user interaction and I just wanted to make sure interval was always being set correctly. For…

1

Assembly Version – Odds and Ends

  What’s the Assembly Version Good For? Using assembly version is a wonderful way for someone to help maintain and support their applications.  It is defined in the AssemblyInfo.cs file through an attribute.  You can manually update it or have a auto incrementing process to control your assembly version.  It is a good idea to…

1

Lazy Loading for the Lazy Coder

Lazy loading in properties is very common.  It is a relativity simple concept of only loading the data you once you actually need it, instead of front loading it all.  Though the problem with doing this all over the place is that you end up copying and pasting code a lot to do it.  And…

1

The Dangers Of Exception Based Logic Part 1 – Parsing Integers

Exception based logic is one of those things that actually makes me cringe when I see it.  Often times it is really easy to avoid like in the case below.  Believe it or not, exceptions in .NET aren’t cheap and shouldn’t be taken for granted.   Exception Based Logic:     14-19ms Try Function Based Logic: 0ms…

3