My Boss' Guideline to interfacing with external code...

time to read 1 min | 99 words

I just had to post this.

When you are dealing with external code, you have to assume the worst. Lesson 4 from CS110, a well written function is divided to:

  • Perconditions - checking the state of the object and the state of the arguments
  • Have you way with the code (It was much worse in Hebrew).
  • Validate the post conditions