In my previous article, I wrote about OOP principles for a PHP/Laravel application. It is a little bit easier to design a PHP back-end application because frameworks such as Laravel guide you to do so. However, it is a way more difficult task for the JavaScript front end.
The most important OOP principles
The most important OOP principles are SoC — Separation of Concerns and DRY — Do not Repeat Yourself. If you follow these two rules, your programming life will become much easier and your code pretier and easier for extension.
The question is, how to apply these principles for a front end application? I love working with VueJs, so I will use it for examples.
Continue to the full article on medium.com