It’s not about money only. When we create something, we would like it not to go down the sink too quickly. Sure nothing lasts forever, but if what we create shows to be useful for as long as it can, all the better.
How to do this when technologies crop up as quickly as mushrooms after a rain storm and disappear as quickly?
Software development is about problem solving. It isn’t about technologies.
When you write a piece of software, you are describing a way to solve a problem.
You don’t need to throw everything away.
A well-documented and well-structured software not only is easier to modify, adapt and troubleshoot. It protects your investment because it documents a solution that is technology independent.
When you switch to a new technology, that solution comes with you.