3 ms·
"It'll never be easier than right now" People just want to be done with a task or not deal with it now. * If you're already in a section of code and familiar
by DavidPeiffer 6y ago
"It'll never be easier than right now"
People just want to be done with a task or not deal with it now.
* If you're already in a section of code and familiar with it, clean up a bit of technical debt. Even just write a couple comments. If you're not feeling patient enough to deal with it, add a #TODO comment with a couple brainstorms on how to deal with it so that next time it's easier to deal with.
I cleaned up an admittedly small (~1,000 LOC) but messy Excel macro codebase this way. Much of it was generated by the Macro Recorder, which makes anyone who has developed in VBA wince at the thought. While I never did refactor large sections as were needed because of other priorities, fixing things when they broke was far easier with intuitive variable names, nice function/sub names, and comments outlining generally what's happening or why this odd looking loop exists.
* If you disassemble something and there's rust, deal with the rust. The rust will make more headaches later and you're right there. It'll truly never be easier to sand it down and treat it.
* If you think you might need something for a project, just grab it. I was replacing brakes on my car recently and needed to remove a screw that was tight enough a normal screw driver was stripping it. I bought a $2 converter to let me throw a phillips head onto a wrench, a $15 set of Phillips drivers with socket backings, and a $99 impact driver. I broke the $2 solution, but the $15 solution worked great. I took the $99 solution back and saved myself ~25 minutes if the $99 solution was neeeded but not purchased.
* If your car engine with 120k miles on it is already disassembled to fix an issue and you can afford it, it might be worth doing the 125k maintenance items a bit early.