Andromxda 🇺🇦🇵🇸🇹🇼@lemmy.dbzer0.com to Programmer Humor@programming.devEnglish · 10 months agofuck the testslemmy.dbzer0.comimagemessage-square39linkfedilinkarrow-up1572arrow-down16
arrow-up1566arrow-down1imagefuck the testslemmy.dbzer0.comAndromxda 🇺🇦🇵🇸🇹🇼@lemmy.dbzer0.com to Programmer Humor@programming.devEnglish · 10 months agomessage-square39linkfedilink
minus-squareRagingRobot@lemmy.worldlinkfedilinkarrow-up1·10 months agoTests are just booby traps for the other engineers so they don’t break your code by mistake.
minus-squareDacoTaco@lemmy.worldlinkfedilinkarrow-up0·edit-210 months 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-up2·10 months agoThis is why I like strong type systems with exhaustivity checks
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