News for hackers. Stuff that matters.
Re:Fear makes you a worse programmer by sealeck on Monday April 08, 2024 @05:45PM (#39974053)
I think if you evolve your testing system to feed random numbers into your program and ensure that various correctness properties hold for all these random inputs you are likely to get a pretty robust program. You can make this slightly efficient by using a fuzzer (essentially uses feedback from running previous inputs to see how running new inputs works). See for example https://propertesting.com/ or https://en.wikipedia.org/wiki/American_Fuzzy_Lop_(software)

Of course if you need a higher standard of guarantee you can try model checking or other formal verification techniques.

There are no comments on this comment yet.