by sobellian · 2y ago · 0 comments
You may not understand what makes a correct implementation. Don't waste time refactoring incorrect code.
You may not understand what makes a performant implementation. Don't waste time refactoring code that's too slow.
You may not understand what the user wants. Don't waste time making something no one wants.
You may not understand how the software needs to evolve. Don't waste time making something extensible in a way that will never happen.
Personally I find it incredibly annoying to work on and with with products that were developed like this. There are so many half baked features that technically "work" but are slow, buggy or difficult to integrate with.
But I agree, my original comment is probably a little too critical. There are valid times to rapidly iterate and ship. When it turns into the _only_ way you ship software, I think it becomes a problem.
Give me a piece of code that’s wrong but clear about it, and we’re good. I can get in and out and move on to the next most tricky:value ratio’s problem.
Refactoring it to that point will always pay dividends. Even if it’s just for the next person trying to add more functionality in this area.
So knock together a prototype and profile that to understand what the bottlenecks are in your program, then you have an informed baseline of how the program needs to fit together to function well.