Thursday, February 26, 2009

readable code

"Code should be, firstly and primarily, readable by humans. As a secondary concern it should also compile." - And of course I can't remember the exact quote or who to attribute it to.

There's a post by Martin Fowler from 3 years ago describing an interesting style of programming which looks extremely readable: http://martinfowler.com/bliki/FluentInterface.html. The Hibernate folks seem to have followed this line of reasoning (among others).

What does it mean for me? At the least I could have setter methods always return the object they're being used on. That's a simple thing that would make life easier. I'm going to look for ways to make use of this.

0 comments:

Post a Comment