IO 😇@lemmy.blahaj.zone to Lemmy Shitpost@lemmy.worldEnglish · 2 days agomonumentalelemmy.blahaj.zoneexternal-linkmessage-square47fedilinkarrow-up1397arrow-down16
arrow-up1391arrow-down1external-linkmonumentalelemmy.blahaj.zoneIO 😇@lemmy.blahaj.zone to Lemmy Shitpost@lemmy.worldEnglish · 2 days agomessage-square47fedilink
minus-squareTheWonderfool@lemmy.worldlinkfedilinkarrow-up108·2 days agoAnd what’s beautiful is that the one right under has a comment “we don’t use thi…” This code looks like so much fun to debug…
minus-squarechad@sh.itjust.workslinkfedilinkarrow-up3·1 day agoI would legit love to refactor that bad boy and get >95% code coverage. Put me in, coach!
minus-squareniartenyaw@midwest.sociallinkfedilinkEnglisharrow-up48·2 days agoi like to imagine it says we don’t use this, but if you delete it everything in this file breaks
minus-squareTaldan@lemmy.worldlinkfedilinkarrow-up16·2 days ago we don’t use this without first writing proper unit tests for our changes, integrating them with the regression tests, and thoroughly documenting our changes for the next developer that has to work on this I’m an optimist, and it’s technically possible
minus-squaregravitas_deficiency@sh.itjust.workslinkfedilinkEnglisharrow-up9·2 days agoOk cool now write some unit tests for a 13,000 line function 🙃
minus-squarepulsey@feddit.orglinkfedilinkarrow-up1·10 hours agorandomize input parameters and see if it doesnt crash. Do this 1000 times. If it never crashes, it works. 👍 /s
minus-squareBlackmist@feddit.uklinkfedilinkEnglisharrow-up23·2 days agoThere’s one I found today that just reads “this is a fucking abortion” I don’t remember doing it, but it was almost certainly me.
And what’s beautiful is that the one right under has a comment “we don’t use thi…”
This code looks like so much fun to debug…
I would legit love to refactor that bad boy and get >95% code coverage. Put me in, coach!
i like to imagine it says
Load bearing code
I’m an optimist, and it’s technically possible
Ok cool now write some unit tests for a 13,000 line function
🙃
randomize input parameters and see if it doesnt crash. Do this 1000 times. If it never crashes, it works. 👍
/s
There’s one I found today that just reads “this is a fucking abortion”
I don’t remember doing it, but it was almost certainly me.