3 ms·
> specific levels of quality control. Good luck defining that though. The main difference between programming and engineering is unfortunately that no one wan
by nottorp 5y ago
> specific levels of quality control.
Good luck defining that though.
The main difference between programming and engineering is unfortunately that no one wants you to build the same thing over and over. So you have no idea if it will work until you build it.
Please don't point me to formal correctness proofs, they just won't work at scale. Hmm, perhaps some bright mind will come with a proof that correctness proofs are too complex to be practical.
- throwaway81523 5y ago> The main difference between programming and engineering is unfortunately that no one wants you to build the same thing over and over. So you have no idea if it will work until you build it. In between there is the radical idea of writing code carefully, testing, and documenting it before shipping it. All of us as programmers want to do that, but we have all worked under management that insisted on the opposite.
- nottorp 5y agoDefine that too :) Budget restrictions aside. For some young things I'm working with, basic debugging techniques seem to be foreign as well...
- Seirdy 5y agoThe CII Best Practices initiative sets a good set of requirements to qualify. Mission-critical software needs to have a good bus factor, keep its deps up to date, have guards in place for the OWASP Top 10 vulns and others (where appropriate), not lean heavily on badness enumeration, etc. We can set requirements for certain types of software to get certified for a level of reliability, taking inspiration from the CII Best Practices. Two ways to qualify for a certification can include testing and formal verification; I won't elaborate on the latter as per your request. Good statement coverage from tests is a necessary but absolutely insufficient requirement for tests; they need good branch coverage, and need to pass a good mutation score threshold. Property-based testing makes this a lot easier. Fuzz-testing is another good follow-up once these get checked off. Software that passes the above checks and more can qualify for manual review, looking for common vulns and warranted practices. Much of what I've brainstormed above applies to complex software; simple/small software is much more manageable and probably doesn't need to be held to such standards.