Skip to content

Algorithms lecture

TODO

  • [ ] Add RNG seed
  • [ ] A function must test its input in public functions. Consider using a unsafe_ function
  • [ ] A function may choose not to test its input in private functions.
  • [ ] A function must not test itself, it must be tested externally instead
  • [ ] Add 'Design by Contract' and the role of assert, picture from https://en.wikipedia.org/wiki/File:Design_by_contract.svg
  • [ ] Add that 'Design by Contract' as a formal language extension is deferred in https://peps.python.org/pep-0316/
  • [ ] Add Defensive programming and Offensive programming