Hvorfor skal man ikke bare starte forfra?

Joel Spolsky skrev for 13½ år siden, med udgangspunkt i lanceringen af Netscape 6.0, om hvorfor det er strategisk dumt at starte forfra med sin kodebase i et udviklingsprojekt. Spolsky er en person der kan dele vandene og jeg hører til en af dem der synes han oftest har ret, og også at selvom det meste af det han har offentliggjort er 10-15 år gammelt, så er det stadig relevant.

Her er et par uddrag:

We’re programmers. Programmers are, in their hearts, architects, and the first thing they want to do when they get to a site is to bulldoze the place flat and build something grand. We’re not excited by incremental renovation: tinkering, improving, planting flower beds.
There’s a subtle reason that programmers always want to throw away the code and start over. The reason is that they think the old code is a mess. And here is the interesting observation: they are probably wrong. The reason that they think the old code is a mess is because of a cardinal, fundamental law of programming:
It’s harder to read code than to write it.

The idea that new code is better than old is patently absurd. Old code has been used. It has been tested. Lots of bugs have been found, and they’ve been fixed. There’s nothing wrong with it. It doesn’t acquire bugs just by sitting around on your hard drive. Au contraire, baby! Is software supposed to be like an old Dodge Dart, that rusts just sitting in the garage? Is software like a teddy bear that’s kind of gross if it’s not made out of all new material?

It’s important to remember that when you start from scratch there is absolutely no reason to believe that you are going to do a better job than you did the first time. First of all, you probably don’t even have the same programming team that worked on version one, so you don’t actually have “more experience”. You’re just going to make most of the old mistakes again, and introduce some new problems that weren’t in the original version.

Joel Spolsky, “Things You Should Never Do, Part I

Dette indlæg blev udgivet i Udvikling og tagget . Bogmærk permalinket.

Et svar til Hvorfor skal man ikke bare starte forfra?

  1. Thorbjørn siger:

    Mange gode pointer!

Skriv et svar

Udfyld dine oplysninger nedenfor eller klik på et ikon for at logge ind:

WordPress.com Logo

Du kommenterer med din WordPress.com konto. Log Out / Skift )

Twitter picture

Du kommenterer med din Twitter konto. Log Out / Skift )

Facebook photo

Du kommenterer med din Facebook konto. Log Out / Skift )

Google+ photo

Du kommenterer med din Google+ konto. Log Out / Skift )

Connecting to %s