by nkozyra · 2y ago · 0 comments
But if you plow through a feature and get it "working," you'll do much of that work cleaning up the logic and refactoring through your first pass. What rewriting allows you to do is crystalize the logic flow you developed the first time and start cherry-picking in a more linear fashion to meet the blueprint. It also tends to reduce the urge (/ need) for larger scale refactorings later on.
As I'm writing, I do go back and make changes as they pop into my head. But once I'm done writing it, I'm done unless I notice an obvious mistake after the fact.
2. > As I'm writing, I do go back and make changes as they pop into my head
This contradicts the idea that you only write once.
3. You don’t get feedback on your first finished version and make changes?
To be fair, it makes everything twice as expensive. Managers are always going to reflexively push back against that, even if the new feature covers that cost and more.
The article argues it makes it less expensive to reach any specific quality level (above some threshold).
The threshold isn’t really addressed in the article, but it is implied that for any realistic quality need, the write twice approach will be cheaper.
To conclude it makes everything twice as expensive, you have to ignore any cost except the initial write. That’s not realistic.
> Rewriting the solution only took 25% the time as the initial implementation
Seems reasonable.
Not to the manager, which is the point, not how long it takes to rewrite it.
Unfortunately biznes wants features and more of them and if possible for free.
Silo-isation compounds this. If the maintenance costs are borne by another team or if any rework will be funded out of a different project, the managers are not going to care about quality beyond the basic "signed off by uat".
I should probably mention that I was doing consulting engineering here because no employees work work for the guy...