forked from cloudfoundry/bosh
-
Notifications
You must be signed in to change notification settings - Fork 0
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