Keep your privates close
A problem with the way we declare private methods in Ruby is the fact that when a class gets larger and more private methods are added to it, we lose sight of whether we are looking at a private, protected or public method. This is because the private declaration is a few hundred lines…
This is why I miss a private do ... end block sometimes. But I’ll be the repeating private declaration in future.
I like the modular approach too, especially when you have huge classes. I like this post :)
-
riethmayer reblogged this from thoughtbot and added:
block sometimes....modular approach too, especially...huge...
-
riethmayer liked this
-
hgimenez liked this
-
thoughtbot posted this
Short URL for this post: http://tmblr.co/ZGfIHy1wIuN8
