jroid8@lemmy.world to Programmer Humor@lemmy.ml · 1 year agoTests are code toolemmy.worldimagemessage-square13fedilinkarrow-up1285arrow-down11
arrow-up1284arrow-down1imageTests are code toolemmy.worldjroid8@lemmy.world to Programmer Humor@lemmy.ml · 1 year agomessage-square13fedilink
minus-squaretoastal@lemmy.mllinkfedilinkarrow-up6·1 year agoIf you use your type system to make invalid states impossible to represent & your functions are pure, there less—maybe nothing—to test, which will save you from this scenario.
minus-squaredustyData@lemmy.worldlinkfedilinkarrow-up14·1 year agoYou can’t have any bugs if you don’t write any code.
minus-squarejmcs@discuss.tchncs.delinkfedilinkarrow-up3·1 year agoIt must be nice to work only with toy cases where this is feasible.
If you use your type system to make invalid states impossible to represent & your functions are pure, there less—maybe nothing—to test, which will save you from this scenario.
You can’t have any bugs if you don’t write any code.
It must be nice to work only with toy cases where this is feasible.