re: Handling complex MVC applications - How to scale and avoid Controller chaos VIEW POST

re: I just spotted the private keyword in your code, which triggered a need to rant. Personally I really hate code that uses the private keyword even ...

Hey Janne, thaks for your fruitful comment. You are right, I also tend to use protected instead of private in my code, so that I can be able to extend the class and create sub-classes.

However, the point of the code snippets in this article is to provide a view of a layered MVC architecture and modularized classes.

In a more realistic scenario one would have preferred to use protected, for all the reasons you referenced.

code of conduct - report abuse