Skip to content

Instantly share code, notes, and snippets.

@ToniRib
Created March 18, 2016 14:41
Show Gist options
  • Save ToniRib/54862ecac31aa8082f44 to your computer and use it in GitHub Desktop.
Save ToniRib/54862ecac31aa8082f44 to your computer and use it in GitHub Desktop.
Sandi Metz's Rules for Developers Reflections

Which of Sandi's rules do you feel like might be the hardest to follow—why?

Rules

I feel like the 5 lines per method is the hardest to follow. In general, I have been trying to follow this rule since about halfway through mod 1, mostly with success, but sometimes I just can't find a way around it. They are correct in that I usually get stuck when I have an if/else situation in which it's difficult to pair down the internals to one line each. However, I also find it difficult to stay under 100 lines in a class sometimes when I have a class that I have a lot of methods for. I think I just need to spend more time refactoring classes to have a single responsibility to meet this rule.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment