lol - isn’t that the truth
It’s always scary when it compiles without errors the first time. Then you just know there’s a logic bug or corner case in there somewhere.
MFW I hook up a Factorio spaghetti section to inputs and it works the first time.
Congratulations your code will now be in production for the next hundred years.
Nothing is temporary. Every script, patch, application, and duct tape MacGyver/Scotty inspired fix I’ve ever written will run for eternity….
The first “temporary hack” I ever wrote for my current job (~January 2014) is still in the codebase.
My favourite is always;
Lemme quickly write this test, it passes great, if I make this little change it’ll fail. It’s still passing, damn.
The worst is when you expect an existing test to fail, but it passes, and it turns out the test wasn’t actually properly testing the code. Fixing the test finds a bunch of broken edge cases.
Then you ask questions about what the past person could possibly have been thinking. You wonder what logic path brought them to create the code this way. You check git blame. It was you.
Debugging. It’s a whodunnit where the victim, murderer, and investigator are all you.^(apologies to Filipe Fortes)
Corollary, what moron wrote this…oh, i did.
Of course I know him: he’s me!
Remember, every temporary solution is a permanent one! It’s always spooky when it works the first time.
Better ship it. It works after all.
It works as intended because you haven’t integrated yet
Break it, confirm it’s broken, fix it back. Makes me feel better every time.
Something’s broken, Something’s failing, rotting!