3 ms·
Some things are better said in one chunk, there are no rules. I often write longer functions while figuring things out, when I need more context in front of me
by sifoobar 8y ago
Some things are better said in one chunk, there are no rules. I often write longer functions while figuring things out, when I need more context in front of me to stay in flow.
Then I wait, and wait; until I can't stand it any more, at which point I usually know enough to substantially improve the code.
Assuming it survived that long. Refactoring code that you're going to throw away is not very constructive. And the more effort put into making code pretty, the harder it will be to let go when that's the right thing to do.
None of this works in a corporate setting, where there's never enough time or money to do anything properly. There are no awesome short term profits to be made from prototyping and keeping code in good health. Corporations also usually prefer rigid rules over competence and intuition, which means whatever cure they come up with will be worse than the disease. And as a result, corporate code is usually crap code.