Main
Blog Archives
- August 2007 (5)
- July 2007 (3)
- June 2007 (8)
- May 2007 (1)
- April 2007 (2)
Link dump
| Archives | Feed |Keep it simple, stupid ! That's one of the most widely acknowledged wisdom in computer science. I think that Jaws 2 pretty well applies it. Well, that was before my implementation of the registry.
One example of my erm... call it what you want: the Jaws_Registry::createKey() method, prior to my KISS-crackdown. It created a new key but also, if the path to the key did you exist, it created it. Pretty much like mkdir -r, but not really, because mkdir creates folders and createKey can create other types of keys. A one letter error in an application and you end up creating a bunch of useless folders. Bravo !
And then, you have Jaws_Registry::moveKey() which calls Jaws_Registry_Key::moveMe() which in the end calls Jaws_Registry_Key::moveSubkey(). Now you understand how I feel. It's bloated. And I have nobody to blame but me. Which is kindof the worst part in all this ;-).
But I promise this will be fixed !
Stay tuned !
Nicolas Bérard-Nault
