Andromxda 🇺🇦🇵🇸🇹🇼@lemmy.dbzer0.com to Programmer Humor@programming.devEnglish · 1 day agofuck the testslemmy.dbzer0.comimagemessage-square41fedilinkarrow-up1765arrow-down18
arrow-up1757arrow-down1imagefuck the testslemmy.dbzer0.comAndromxda 🇺🇦🇵🇸🇹🇼@lemmy.dbzer0.com to Programmer Humor@programming.devEnglish · 1 day agomessage-square41fedilink
minus-squareRagingRobot@lemmy.worldlinkfedilinkarrow-up28·20 hours agoTests are just booby traps for the other engineers so they don’t break your code by mistake.
minus-squareDacoTaco@lemmy.worldlinkfedilinkarrow-up10·edit-220 hours agoIts funny cause its true. I often design tests to be “if a case/enum value is added this test will explode and tell them to add code here”
minus-squaresilasmariner@programming.devlinkfedilinkarrow-up3·5 hours agoThis is why I like strong type systems with exhaustivity checks
minus-squareDacoTaco@lemmy.worldlinkfedilinkarrow-up2·edit-23 hours agoSaaaaame. But sometimes even strongly typed stuff wont break on compilation time
Tests are just booby traps for the other engineers so they don’t break your code by mistake.
Its funny cause its true. I often design tests to be “if a case/enum value is added this test will explode and tell them to add code here”
This is why I like strong type systems with exhaustivity checks
Saaaaame. But sometimes even strongly typed stuff wont break on compilation time
'spose that’s true enough