IoC - good, bad and ugly

I was reading this article that is doing a pretty good job at explaining in what situations an IoC container saves the day. And even though I dislike most uses of IoC containers I've seen I have found them useful once or twice.


Appreciating garbage

I once was working with a company that complained that my code was not optimized because it used 100% of the CPU. So I asked if the user interface was responsive. And it was. So I asked if they experienced any noticeable delays in responses. They didn't. So I asked for how long the CPU was at 100%. And the answer was...


Lying with statistics

Last week I told you about an article that brought back some old memories on how to lie with statistics.


Lying with statistics and StackOverflow

A recent article on StackOverflow performance brought some memories back; how easy it is to lie with statistics.


How object calisthenics can save the night

Last week we had a 24 hour hackathon at work. And I ended up using an old trick I've mentioned before.


Azure Load Balancer Nuggets

Up until recently I assumed the azure load balancer just was a simple round robin balancer.


Writing async tests

Ever since async/await was introduced in .net 4.5 I've seen people happily using those keywords in their (unit) tests. A usage I believe to be a mistake.


Avoiding conditionals to improve code

Last year Michael Feathers wrote an article about unconditional programming which in essence is just an idea to avoid any type of control structures since control structures tend to make code harder to understand. This is not a new idea.


Enforcing parameter names

In the late 90s I was asked to teach an "introduction to C for programmers" course at a large Swedish company. Turned out that my definition of programmer was quite different than that of the company.


Configuration files or APIs

Configuration files is something we have always been familiar with and with cloud services I think more and more configuration has started to move into code. But I was very intrigued by yet a different concept used by a team I worked with a while back; configuration APIs for temporary changes.