Skip to content
This repository has been archived by the owner on Nov 29, 2017. It is now read-only.

Code Pattern Examples

Abhi Hiremagalur edited this page Jul 27, 2013 · 4 revisions

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
Clone this wiki locally