DEV Community

Discussion on: Handling complex MVC applications - How to scale and avoid Controller chaos

Collapse
 
pavlosisaris profile image
Paul Isaris

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.