in reply to Good, Fast, Cheap: pick the last two or get out!
The other approach is a pragmatic code-warrior approach. Though I tend to overdesign things (like a good free software hacker, I believe in too much flexibility), there's definitely a place for getting things done quickly and not adding more features than you can handle.
There are even a couple of schools of thought in computer science that encourage this approach. One is refactoring, and the other is Extreme Programming. Fred Brooks said, roughly, "Plan to throw one away. You will anyway."
Of course, if deadlines are short, you may not have time to refactor your code or throw away legacy stuff, and you'll be left with a hard-to-maintain pile of proof-of-concept.
There's nothing like going through a nasty subroutine and cutting out half of it while making it run faster or use less memory -- but there's also nothing like going in to a well-designed module, pinpointing the bug, and fixing it without having to sift through the call stack for half an hour.
If you pressed me, I would suggest that you err on the side of clean code and good discipline -- if you clean up after yourself now, you won't have to dig yourself out of it next time. And there's almost always a next time.
|
|---|