February is nearly out and I haven’t posted for a few weeks so I thought I’d just throw in my thoughts on the use and misuse of Singletons! Many of my colleagues working in Java pepper their code with static methods and use them as placeholders for pure function calls. Some would [...]
Archive for the 'Design Patterns' Category
Classic Singleton
February 28, 2007Scriptacu-list Tutorial(Part 3)
January 22, 2007So we’ve got a simple Contact List working but there are two big problems.
When I’m editing the contact the data changes even if I click “Cancel”.
It doesn’t look very pretty.
Today we are going to fix this…
A Matter of Factory
January 10, 2007In my continued exploration of Seaside I revisited an implementation of Factory pattern that is especially easy in Smalltalk and oh so difficult in Java. I enjoyed the rediscovery so much I thought I share it here.