Skip to content

Files

Latest commit

7803a59 · Jan 7, 2014

History

History
This branch is 6 commits ahead of, 120 commits behind crista/exercises-in-programming-style:master.

20-constructivist

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Jan 7, 2014
Jan 2, 2014

Style #20

Constraints:

  • Every single procedure and function checks the sanity of its arguments and either returns something sensible when the arguments are unreasonable or assigns them reasonable values

  • All code blocks check for possible errors and escape the block when things go wrong, setting the state to something reasonable

Possible names:

  • Constructive
  • Defensive
  • Hopeful
  • Shit happens, life goes on

(See http://en.wikipedia.org/wiki/Constructivism_(mathematics))