3 ms·
For some positive examples look to FreshBooks. They were stuck with horrible, horrible spaghetti code for years, then they decided to implement a portion of it
by 3pt14159 16y ago
For some positive examples look to FreshBooks. They were stuck with horrible, horrible spaghetti code for years, then they decided to implement a portion of it slowly with Python. They made this all work by keeping the Python portion of the project very clean and strict (massive test coverage, very modular, very consistent) and had the existing PHP talk to it. Slowly but surely they were able to rip away the horrible parts. As a side effect the PHP layer ended up getting much cleaner. It was the opposite of the broken window syndrome. Another positive aspect about having a stable multi-language system was that when they really wanted to use a library from a third language they were comfortable just wrapping it up in a thin API and proceeding like normal.
The thing with re-writes is that you only really hear the horror stories because people like to talk about failing companies that stemmed from something technical. The good re-writes never get much press, and neither do the companies that slowly fade to black. I think SAS could end up going that route if they don't completely rewrite their systems and introduce a more friendly coding system.
- rickmb 16y agoThis is a perfect example of how to do a re-write: bit by bit, always keeping the existing system running. It's fundamentally different from a re-write from scratch, and in effect much closer to refactoring. There's no black and white choice between re-writing and refactoring.
- Retric 16y agoAnother approach is the Windows NT rout. Where you develop a competing product to your core product and then expand it's capabilities until it replaces your core product.
- sitmack 16y agoThat cost MS hundreds of million dollars in development and lost opportunities. You can only do that if you have no competition. If they had added USB support to NT4 we wouldn't have needed to go to win2k. Really MS, NT4 can't support USB? They should have evolved NT4 rather than fork it into the win2k -> xp -> vista mess. They could have had the worlds best UNIX but internal dogma forced them piss in their own watering hole.