Magnus Ekstrand

One-liners in Java – maybe better support in Java 7

November 28th, 2010

For sure, Java is a great language. I wrote my first Java app 1996 and have had lots of fun with it ever since. But for the past 4-5 years my interest in dynamic programming languages as Python, Groovy and Clojure has increased more and more. When working with other languages you discover a bunch [...]

Posted in Java, Java 7 | 1 Comment »

Difference between Stubs ‘n’ Mocks

November 12th, 2010

As Martin Fowler states in his article Mocks Aren’t Stubs, mocks are often confused with stubs (or vice versa). It is understandable but there are some distinctions. A common interpretation is that stubs are static classes and mocks are dynamically generated classes by using some mocking framework. But the real difference between them is in the [...]

Posted in Java, TDD | No Comments »

Get rid of your tedious and error-prone release process

June 14th, 2010

It’s best practice to tag each of your stable releases in your version control system for future reference. However, it is very rare that this sort of work is free from failure. Like many tedious, error-prone tasks, it is one of those things that could do with a bit of automation.
Luckily, the [...]

Posted in Build, Build automation, Tools | No Comments »