Skip to content

Monthly Archives: January 2009

log.debug()

So everybody knows printing debugging statements to the log file can take considerable amounts of time, right? And in order to decrease useless time logging debug statements that won’t appear in the log, you can use isDebugEnabled() to find out if you’re wasting your time, right? So you end up with; if (log.isDebugEnabled()) {    [...]

Emergent Design & Professional Software Development

Recently I read Emergent Design: The Evolutionary Nature of Professional Software Development by Scott L. Bain (on Amazon). It’s a very interesting read. [E]mergent design works by refactoring and enhancing code, due to the changes, bugs, and extensions that have to accommodate, while paying close attention to these principles of coding. (152) In order to deal with the [...]

Dependency Injection: “Don’t look for things!”

Here’s a piece of advice I definitely can take to heart. From Google testing blog: *Clean Code Talk Series* *Topic: Don’t Look For Things!* http://googletesting.blogspot.com/2008/11/clean-code-talks-dependency-injection.html Recently I’ve been doing maintenance work on a system that has a lot of custom-rolled code to do stuff like, look up EJB Home and Remote references. Even though parts [...]