Or: excusing a lack of betterment.
Me, today: “fucking hell how do people write good Lua code?” Also me, later today: “hey cool it works, it doesn’t need to be good anymore!” As you can imagine, this is a Bad Attitude to have about these things. Inevitably, I’m going to want to come back to whatever’s ugly to pic it apart or whatever, and then I’ll have to get my hands really, really dirty. Nobody likes getting their hands dirty, especially if it’s with their own shit they could’ve easily cleaned up ages ago.
But then, if you stop to do some minor cleanup, you stop getting your quick successive rewards of progression. Sure, a tidy codebase is a reward in and of itself, but nothing beats getting new things to move in new ways on the screen. And you may know this is a tradeoff you should be making in favor of the long term, but that doesn’t make it any easier to do so.
The term technical debt comes to mind. I need to be careful not to make my future self drown in it.