February 22, 2003

madbean'''s code idiom and the NullObject pattern

madbean.com: Code idiom: inserting a separator between the elements in a list an idiom I saw for the first time two weeks ago when one of the developpers on my team used it to transform strings to collections and back. I thought then that it was really well thought out (and still do...). The fact that someone blogged about just shows how much we all still have to learn from Java.

And by the way, isn't this just a case of the NullObject pattern ? This is one of my favorites : it removes "noisy" if statements from code and makes everything easier to read. I fell in love with it when Grand spelled it out clear in his book.

My other favorite pattern is template... am I an OO-junky ?

Posted by pgirolami76 at February 22, 2003 01:35 PM | TrackBack
Comments

Hmmm? Are you talking about Mark Grand's Patterns books?

Well here's my opinion, Mark Grand's pattern books are complete crap and have been a complete disservice to the pattern community.

Volume 1 - Many of the examples and explanation about a pattern are wrong
Volume 2 - Many of the patterns aren't even patterns, example Black Box testing, c'mon!
Volume 3 - CRUD is a pattern, that's ludicrous

Posted by: anonymous at February 22, 2003 02:35 PM

I only read the first book. I didn't consider the second one as interesting, probably for the same reasons as you. I also agree on your points and my thinking is that he went a bit overboard in his books.

But that doesn't make the book totally useless though. I use it as a repository of common patterns and it does show how to implement some patterns in java correctly (and explain how the singleton works in Java which isn't that obvious to newcomers !)

Posted by: Philippe at February 22, 2003 03:09 PM
Post a comment









Remember personal info?