10 Rules for Dating my Daughter
During recent internal dev discussions we were debating Sandi Metz' four rules from Ruby Rogues episode 87 - summary and further linkage here. It got me thinking how would that apply to legacy projects, or as I prefer to call them "heritage" projects? So after a quick review of one of our older Rails projects I came up with the following adjustments:
Your class can be no longer than 2200 lines of code.
Your methods can be no longer than three hundred lines of code.
You can pass no more than seventeen parameters and please use multiple hashes.
When a call comes into your Rails controller, you can only instantiate twenty three objects to do whatever it is that needs to be done.
You can break these rules if "it works on your dev machine".
- Jon Waghorn













