9 Aug
2010

Software, “It’s not what we do”.

I get to visit with a lot of developers in a lot of different organizations. Sometimes those developers work for software companies, sometimes they don’t. More often they do not. Most IT professionals don’t work for software companies, after all, and custom software development in these environments is considered an “enabling technology” rather than a […]

Read More
11 Jul
2010

Enforce Correct Usage By Wrapping Types

Have you ever written an API or a method and expected it to be used a certain way, but then found people doing all kinds of bad things with your precious API that you never intended? I was working on building an automated testing framework for a welfare system in which cases could be added […]

Read More
20 Jun
2010

Prefer Additional Methods Over Additional Overloads

If you have ever written code that is going to be used as an API for other programmers, you may start to think about writing code in a different viewpoint from what you normally do. Most of us write code for the purpose of achieving a goal.  If we practice writing elegant code, we are […]

Read More
25 Apr
2010

If Self-Documenting Code is the What, Unit Tests are the Why

It is not enough to just write code that is clean and self-documenting.? Eliminating comments and replacing them with clear variable and method names, will tell the reader of your code clearly what it is doing, but it will not properly express why it is doing it. If you recall from my original post on […]

Read More