Andromxda 🇺🇦🇵🇸🇹🇼 to Programmer [email protected]English • 7 months agofuck the testslemmy.dbzer0.comimagemessage-square45fedilinkarrow-up1844
arrow-up1844imagefuck the testslemmy.dbzer0.comAndromxda 🇺🇦🇵🇸🇹🇼 to Programmer [email protected]English • 7 months agomessage-square45fedilink
minus-square@[email protected]linkfedilink39•7 months agoTests are just booby traps for the other engineers so they don’t break your code by mistake.
minus-squareDacoTacolinkfedilink12•edit-27 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-square@[email protected]linkfedilink8•7 months agoThis is why I like strong type systems with exhaustivity checks
minus-squareDacoTacolinkfedilink2•edit-27 months 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