| > The thing is, poorly-structured, hard-to-read, unmaintained code is the enemy of speed. Sorry for debating with you.
But any modern code editor has tools which solves the problem of "well-structured" code.
What about "easy-to-read", this is depends on language, and the programmer. I've seen so damn much beautiful code, with 1 character long vars.
And such code extremely hard to understand. The code is compact and beautiful.
But for understanding the code - required a lot of time. I think, and my own experience proof that.
If you not in rush for finishing things just in time while the things actual - you lose. Always. And there will be no second or third chance. That's why need to write how you used to write.
Only experience & practice give you ability to write good code. Focusing on re-writting some code parts while fixing a bug - big problem.
If this re-writting thing does not change anything instead of "better understanding and better ability to read" - this is bad time wasting. If you not in rush in developing things and doing right actions in right time while the problem or request actual - you lose. Always. Without second chance. That's why need compromise and write shitty code for winning competition in short run.
And then, when you will have audience for your product, you can always fix here, and change there. Nobody will complain about bugs or issues until it leak personal data. |
The problem with "quick" fixes is that they often end up being slower, because hacking a fix into a complex code base often creates new bugs/problems, and you end up rolling back your broken "fix".
> Only experience & practice give you ability to write good code.
I agree, which means that always writing shitty code to get it out the door means that you will only practice writing shitty code.
There's a balance to be found.