Code Pattern Examples - Tier3/bosh GitHub Wiki

This page is used to show code that we feel shows common existing patterns in the BOSH code base.


TODO:

  • Safer doubles with rspec-fire
  • Avoid partial mocking/stubbing, "listen to the test" and extract a collaborator instead
  • Avoid shelling out to do something that can be done with a Ruby method call
  • If you have to shell out: patterns we like and when to use each
  • Keep Code Climate complexity score low
  • DRY: knowledge not structure
  • (unit) test everything, 100% unit test coverage is our goal
  • OO - SOLID
  • OO - TRUE