4

Since I started living by Sandi Metz rules for devs, i feel like my code has really improved.

My favorites:

* Classes can be no longer than one hundred lines of code.
* Methods can be no longer than five lines of code.

I hope you find them as usefull as I did.

Comments
  • 5
    The 5 line method sounds really dumb if you work with 3d arrays
  • 0
    “You should break these rules only if you have a good reason or your pair lets you.”

    It's easier to follow this rules if you have someone reviewing your code.
Add Comment