3 ms·
Badly formatted code is hardly a true form of tech debt. Especially considering all the automatic tools like prettier out there today. Tech debt is getting a f
by jjeaff 7y ago
Badly formatted code is hardly a true form of tech debt. Especially considering all the automatic tools like prettier out there today.
Tech debt is getting a feature out there, asap by creating work around that normally would require some refactoring.
In a lot of cases, it is forgoing optimization. We have several places in our app where we need to refactor some of our database tables in order to properly join the data and get it in an efficient manner.
But that will take a few days of refactoring and testing so instead, we just query the missing data in a subquery 200 times or whatever.
For now, it works fine, but as the dataset grows, that will obviously become slow and expensive.
But by then, we will have more customers and more budget and hopefully more developers that we can afford to refactor that code.
If we had unlimited time and resources, sure, go ahead and refactor your entire codebase every time you add a feature.
You'll build an amazing company, assuming your customers pay you based on how awesome the source code is, rather than what it can do for them right now.