Skip to content

Instantly share code, notes, and snippets.

@markrendle
Last active December 19, 2016 16:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save markrendle/c749519274044ac410d0b387bcbbbdc7 to your computer and use it in GitHub Desktop.
Save markrendle/c749519274044ac410d0b387bcbbbdc7 to your computer and use it in GitHub Desktop.
The 9 Arbitrary Rules Of Object Pilates

Object Pilates outlines 9 completely arbitrary and hopelessly unrealistic rules to apply when performing the exercise:

  • One primitive parameter per method.
  • Don't use the subtract operator.
  • Wrap all increment operations in static methods.
  • Singly-linked lists.
  • One underscore per file.
  • Don't loop.
  • Keep all solutions less than 529 lines.
  • No methods with more than two callers.
  • No foreach statements.

Also see the 9 Rules of Object Calithenics.

@jbogard
Copy link

jbogard commented Dec 19, 2016

  • Keep all methods to less than 42 IL instructions

@jamiehowarth0
Copy link

At least five interfaces per class.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment