Archive for the 'Code' Category

Why you should care about Boxing and Unboxing

Most people probably will not run into a situation where boxing and unboxing are going to really matter in their applications, others do. Read this post to see how a module’s heap usage went from 103MB to 16MB.

Take the TagLib.ByteVector class. It serializes many formats of data into a collection of bytes. [...]

The Number One NIH Syndrome Sympton (or, How I learned to not invent wheels and learned to love 3rd party components.)

I try hard to not reinvent wheels. First, I’m lazy… really lazy. Second, I normally am trying to solve a problem unrelated to building wheels. Finally, if I built a wheel you’d probably never ever EVAR even think of using it.

Image stolen from: http://www.sciencenews.org/articles/20040403/mathtrek.asp

Let’s look at the number one NIH Syndrome symptom.

Symptom [...]

Code Faster: Keep your hands on the keyboard.

Jeremy Miller just posted The first step to coding faster in which he says:

Forget all the Ivory Tower stuff I like to prattle on about, if you want to be a more productive programmer, learn to keep your hands on the keyboard instead of reaching for that mouse.

Yes, that is all it takes. [...]

Can I resolve the URI used as an XML namespace name?

12.4) Can I resolve the URI used as an XML namespace name? Yes. You can also eat a tractor, but that doesn’t mean it’s a good idea. http://www.rpbourret.com/xml/NamespacesFAQ.htm#q12_4

What I love most, also from the same FAQ is this:

Furthermore, there is nothing in [...]

Designing for Testability: 14 facets of TypeMock.NET

There has been much talk about Designing for Testability lately. Basically the argument is: Should our Tests (Enabling Mock Insersions) Drive our design? or should we use tools to do it for us? From: 14 facets of TypeMock.NET and Designing for Testability

The author of TypeMock.NET [...]