Hacker News new | ask | show | jobs
by aytekin 3933 days ago
Complete rewrites are bad. An approach we follow is to rewrite a small section of our product and release that to our users. With React, we can separate everything (repo, tests, architecture) from the core product but still integrate the new version within the app. It is like replacing the parts in a car one by one until you have a completely new car.
2 comments

It takes a long time to learn how to write code in this way.

The current project I'm on is probably the antithesis of this. I wouldn't be able to figure out how to replace anything without rewriting at least 5 other interconnected bits.

So my guess is that some people actually never learn this...

If it's written with React it's at most 2 years old - sure anything is easy to replace within such a young product.
The product is much older. It is not written in React. We are rewriting in React piece by piece.