Skip to content

Instantly share code, notes, and snippets.

@jwperry
Created March 21, 2016 02:59
Show Gist options
  • Save jwperry/6ca81f88e1133a6906b5 to your computer and use it in GitHub Desktop.
Save jwperry/6ca81f88e1133a6906b5 to your computer and use it in GitHub Desktop.
JP - Sandi Metz - Hardest Rule

It seems to me the most difficult rule to follow would be the third - limiting methods to only receive four parameters.

The other rules, while also challenging, seem manageable if your code is exceptionally well-factored. However, I can certainly imagine scenarios where I've needed to pass more than four parameters. It seems this suspicion is well-founded as the example cited in the blog post also skipped over this without a real suggestion for how to tackle it.

This is definitely the only rule of the three that I feel I would have trouble implementing.

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