|
|
|
|
|
by switchbak
721 days ago
|
|
I suppose you could interpret Joel's essay as a bit of an agreement with Kent's take. That even though you might have to pass through a trough of despair to rework some old code into something better - that's still a better path to follow than a ground-up rewrite. I'd usually agree, especially as things get big. But Kent is also pretty famous for throwing out code if things aren't shaping up. He does this in micro increments however, usually with just-written code. I've just spent years wrestling with someone else's poorly written, ill-intentioned code, bringing it into line. I've taken the above approach of slowly reworking it. Sometimes I wonder if I just kept the tests and jettisoned large bits of it if I'd be better off? Very contextual of course, but sometimes you have to explore a little bit to know the right places to make tradeoffs. |
|
That's the main reason we have this discussion in the first place IMO. There is no one right answer to the question.