logo

drewdevault.com

[mirror] blog and personal website of Drew DeVault git clone https://hacktivis.me/git/mirror/drewdevault.com.git

Four-principles-of-software-engineering.md (1377B)


  1. ---
  2. title: Four principles of software engineering
  3. date: 2020-10-09
  4. ---
  5. Software should be **robust**. It should be designed to accommodate all known
  6. edge cases. In practice, this means predicting and handling all known error
  7. cases, enumerating and addressing all classes of user inputs, reasoning about
  8. and planning for the performance characteristics of your program, and so on.
  9. Software should be **reliable**. It should be expected to work for an extended
  10. length of time under design conditions without failures. Ideally, it should work
  11. outside of design conditions up to some threshold.
  12. Software should also be **stable**. It should not change in incompatible or
  13. unexpected ways; if it works today it should also work tomorrow. If it has to
  14. change, a plan shall be written. Stakeholders (including users!) should be given
  15. advance notice and should be involved in the planning stage.
  16. Finally, software should be **simple**. Only as many moving parts should be
  17. included as necessary to meet the other three goals. All software has bugs, but
  18. complicated software (1) has more bugs and (2) is more difficult to diagnose
  19. and fix. Note that designing a simple solution is usually more difficult than
  20. designing a complex solution.
  21. *This (short) article is based on [a Mastodon post][original] I wrote a few weeks ago.*
  22. [original]: https://cmpwn.com/@sir/104931806273081351