London Software Craftsmanship meetup 27 May 2015

  • One level of indentation per method
  • Don't use the ELSE keyword
  • Wrap all primitives and Strings
  • First class collections
  • One dot per line
  • Don't abbreviate
  • Keep all entities small (50 lines max)
  • No classes with more than two instance variables
  • No getters/setters/properties

Links

http://www.meetup.com/london-software-craftsmanship/events/222690049/ http://williamdurand.fr/2013/06/03/object-calisthenics/ https://gist.github.com/olid16/90f776cf142ceb83f752

Named tuples: https://docs.python.org/2/library/collections.html

Tell don't ask: https://pragprog.com/articles/tell-dont-ask

Python enums: http://stackoverflow.com/questions/36932/how-can-i-represent-an-enum-in-python

Primitive obsession: http://c2.com/cgi/wiki?PrimitiveObsession