There is a myth out there that creating objects is expensive. The result of this is that a lot of applications have objects whose lifetime is too long. Let’s take a web app for example. Most web-apps I have seen have too many long lived objects and not enough request scope objects, which has implication [...]
Entries from April 2009
Managing Object Lifetimes
April 15th, 2009 · 13 Comments
Tags: Uncategorized
How to do Everything Wrong with Servlets
April 8th, 2009 · 9 Comments
When I interview people I often ask them what an evil developer would do to make his code hard to test. Servlets are a great example of what to do if you want it to be hard to test Lets start with constructor. Constructor is the first thing I look at since it tells me [...]
Tags: Uncategorized