How difficult is it to misuse the code you write?

I found these “misuse levels” over at technovelty, which they originally ripped from Rusty Russel’s Bleeding Edge Page, which is a page you should definitely check out if you haven’t.

Anyway, I found these “misuse levels” both hilarious to read and at the same time somewhat concerning, as I started thinking “Where does my code really go on this list?”

  1. Impossible to get wrong
  2. Compiler/linker won’t let you get it wrong
  3. Compiler/linker warns if you get it wrong
  4. Simplest use is correct
  5. The name tells you how to use it
  6. Do it right or breaks at runtime
  7. Follow the convention and you will get it right
  8. Read the documentation and you will get it right
  9. Read the implementation and you will get it right
  10. Read the correct mailing list and you will get it right
  11. Read the documentation and you will get it wrong
  12. Follow the convention and you will get it wrong
  13. Do it right and it will break at runtime
  14. The name tells you how not to use it
  15. The obvious use is wrong
  16. Compiler/linker will warn you if you get it right
  17. Compiler/linker won’t let you get it right
  18. Impossible to get right

Leave a Reply

Your email address will not be published.