A blog about the joys and perils of software development

Monthly Archives: April 2011

The Truth Behind Design Patterns

Design patterns help you write good software. How can you master all 23+ of them? You are probably better of focusing on the underlying truth: the design principles. Continue reading

Design Principles by Example: Talk to an Interface or an Abstraction?

What is the relation between design principles “Talk to an interface, not an implementation” and “Talk to an abstraction, not a concrete”? When you apply them, you want to achieve different goals. Continue reading

Object-Orientation is not Really About Objects

How do we write good object-oriented programs? Despite the name, it is not by focusing on objects. […] From time to time, you come across OO programs that has a procedural flavor to them. There are few, if any, interfaces and classes are primarily used to organize related functions with data. Writing “procedural style OO programs” like this suffers from the same problem procedural programming do: coupling. […] Continue reading

Duplication-Driven Development?

What is the primary force that drives you when doing test-driven development? Surprisingly, it might just be code duplication. The book “Test-Driven Development by Example” by Kent Beck shows how code duplication springs naturally from TDD and *drives good design*. An appealing thought?
Continue reading

Great Books for a Software Developer

I have received questions about good books, so I thought I would share some titles with you. First, my absolute favorites, should be mandatory reading for everybody (so go ahead and read them right away): […] Continue reading