Site Archives patterns

Neglected classes in Spring – Part II


If you have worked with Spring 2.5 annotation based web MVC framework you know that it allows you to freely design you controller method signatures:
@RequestMapping(value = “users”, method = GET)
public String showUsers(Model model) {
model.addAttribute(“users”,
userManagement.getUsers());
return “users”;
}
As you can see we use a parameter of type Model that will [...]

Unit testing annotation based Spring MVC controllers


Although it took me a while to get used to them, I now pretty much like the annotation based programming model for controllers in Spring MVC. The major advantage over the traditional inheritance based approach is, that the methods, that are bound to requests are simple public methods, that can easily be unit tested.
So while [...]

Clean Code – Review, Part I


As I have twittered already, I am reading “Clean Code” by Robert C. Martin right now. I expected the book to be a very fundamental one. Although there are a few parts I do not entirely agree with, I just rummaged throught chapter 11 “Systems” on my way home and was surprised how condensed Robert [...]

The DAO is dead! Long live the DAO!


Episode 121 of Software Engineering Radio deals with the topic of OR Mappers. Michael Plöd introduces the concept of object-relational mapping technologies, discusses advantages and disadvantages. The content of the episode is very basic to a large extend, which makes it ideal to get an introducing idea of the topic.
The reason I discuss this here [...]

Developers facing the real world


A few minutes ago I once again stumbled on the strange fact, that every now and then I unconciously apply development concepts to my everyday life or at least detect concepts or violations of ‘em. Just now, we decided to order lunch at the chinese restaurant round the corner. Rummaging through the restaurants brochure, guess [...]