Solemarc @lemmy.world 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.
88 0 Replydan @upvote.au 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.
56 0 ReplyTunaLobster @lemmy.world 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.
42 0 Reply
Balthazar @lemmy.world 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.
61 1 ReplyIsoSpandy @lemm.ee It's always a logic bug that you will find the day after you forgot about how the code works.
3 0 Reply
Semi-Hemi-Lemmygod @lemmy.world Congratulations your code will now be in production for the next hundred years.
54 0 Replymarlowe221 @lemmy.world Nothing is temporary. Every script, patch, application, and duct tape MacGyver/Scotty inspired fix I’ve ever written will run for eternity….
20 0 Replydan @upvote.au The first "temporary hack" I ever wrote for my current job (~January 2014) is still in the codebase.
20 0 Reply
0laura @lemmy.dbzer0.com if you didn't intend for it to work and it's working then it's not working as intended
40 0 ReplyNocturnalMorning @lemmy.world Corollary, what moron wrote this...oh, i did.
17 0 ReplyRagnarokOnline @programming.dev Of course I know him: he’s me!
8 0 ReplyAwkwardLookMonkeyPuppet @lemmy.world One time I stayed up late trying to fix a really complicated problem that I couldn't figure out. I was drinking. I got really drunk and fixed the problem. In the morning I couldn't figure out my own code. I had no idea what I wrote, or how it worked, but it did work. I just left it since it was apparently above my ability to fix.
6 0 Reply
unalivejoy @lemm.ee Better ship it. It works after all.
13 0 ReplyAwkwardLookMonkeyPuppet @lemmy.world This stops being shocking as you gain more experience.
9 0 ReplyMonkderVierte @lemmy.ml Still no usable code tho, because usable code is maintainable.
7 0 ReplyAwesomeLowlander @sh.itjust.works MFW I hook up a Factorio spaghetti section to inputs and it works the first time.
5 0 ReplyAwkwardparticle @programming.dev "You know that temp shitty load balancer you wrote on your second month to get things up again. We still use it to this day." My boss last week.
5 0 ReplyRedSeries @lemmy.world Remember, every temporary solution is a permanent one! It's always spooky when it works the first time.
4 0 ReplyWalrusDragonOnABike [they/them] @lemmy.today Something's broken, Something's failing, rotting!
4 0 ReplyrockSlayer @lemmy.world It works as intended because you haven't integrated yet
4 0 Replynixfreak @sopuli.xyz lol - isn’t that the truth
1 0 Reply