Why is Clean Code suggesting avoiding protected variables?(programmers.stackexchange.com)
programmers.stackexchange.com
Why is Clean Code suggesting avoiding protected variables?
http://programmers.stackexchange.com/questions/162643/why-is-clean-code-suggesting-avoiding-protected-variables
2 comments
I think you mean the Baader-Meinhof phenomenon[1], which I always find funny, since I learned about it the day after I watched the movie.
[1]: Listed on http://en.wikipedia.org/wiki/List_of_cognitive_biases
[1]: Listed on http://en.wikipedia.org/wiki/List_of_cognitive_biases
Yes, that's it! Oddly enough, I can never remember the name of it. I'm going to attempt to commit it to long-term memory by classifying it as a cognitive bias; hope it sticks this time...
I, for one, recommend "Clean Code". It did not "change my life" because I was already on the path the book describes. Nonetheless it was a good validation, it certainly coalesced in a good form many topics that were simply fluctuating in my mind, and is a good reference to have around for refreshing once in a while.
To put this in context: I keep it next to "Agile Software Development" (by the same Uncle Bob), "Working Effectively with Legacy Code" (by M. Feathers), and "Refactoring" (by M. Fowler).
HTH (no, I have no direct or indirect benefit from 'advertising' these books and their authors)
To put this in context: I keep it next to "Agile Software Development" (by the same Uncle Bob), "Working Effectively with Legacy Code" (by M. Feathers), and "Refactoring" (by M. Fowler).
HTH (no, I have no direct or indirect benefit from 'advertising' these books and their authors)
Thanks for the insight!
Actually the perspective of languages like objective C and Python about variable privacy or accessibility is pretty flexible.
But I see that there's some pushback against this book, and so I'm not sure if it's all that it's cracked up to be. Anyone have any opinions?