3 ms·
> You refactor your code as you go. That's one of my most valuable self-taught truths! I fought with management and colleagues for years until one day, after a
by pdimitar 7y ago
> You refactor your code as you go.
That's one of my most valuable self-taught truths! I fought with management and colleagues for years until one day, after a 4-day weekend, it just struck me: nobody can tell me anything when my PR contains both the desired feature (or fix) and the refactoring that slightly improves the status quo of the code.
This was ~5 years ago. From then to today, I hear complaints about my PRs about 2 times a year.
- dep_b 7y agoThe word "refactoring" to software managers has the same ring as "prostate exam" or "speculum" to the rest of us. It might be necessary sometimes but Preferably Not Today and please stop talking about it all of the time.
- pdimitar 7y agoYeah, agreed. I stopped using it altogether when I am not talking with programmers. I usually just say "when adding this new thing you have to re-fit everything else so all parts play nice with each other", or "you know how you have to pull the engine out so you can fix the frontal suspension? that's what I have to do sometimes". Both of these are accepted pretty well by non-technical people.