Skip to content

Instantly share code, notes, and snippets.

@markrendle markrendle/
Last active Dec 19, 2016

What would you like to do?
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.


This comment has been minimized.

Copy link

jbogard commented Dec 19, 2016

  • Keep all methods to less than 42 IL instructions

This comment has been minimized.

Copy link

benjaminhowarth1 commented Dec 19, 2016

At least five interfaces per class.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.