Skip to content

Instantly share code, notes, and snippets.

@hectorhuertas
Created March 21, 2016 02:23
Show Gist options
  • Save hectorhuertas/0e80172c25a3a7c807c2 to your computer and use it in GitHub Desktop.
Save hectorhuertas/0e80172c25a3a7c807c2 to your computer and use it in GitHub Desktop.
Sandi Metz's rules for developers

Hardest by far the four method arguments (without cheating with hashes).

Sometimes you need several arguments to do what you need, and extracting a part to its own method doesn't makes sense. If a logic unit has more that 4 attributes that need to be passed, does it make sense to break the logic unit to follow this rule? I don't think so. But I understand that the value of the rule is to make sure that methods don't get overly complicated.

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