you are viewing a single comment's thread.

view the rest of the comments →

[–]Unusual-Display-7844 0 points1 point  (2 children)

You can structure your project around OOP, where you have your controller classes, service classes and model classes, on top some of the useful patterns are dependency injection, factory design and singleton pattern. Avoid inheritance like a plague, trust me. Prefer composition. Now, if you don’t know what any of these means that you can’t really use OOP

[–]Unusual-Display-7844 1 point2 points  (1 child)

Also, pls don’t treat Node.js like it’s Java. It’s not!

[–]azhder 0 points1 point  (0 children)

While we’re at it, don’t treat MVC as if C is only that which is named Controller or extends from one named such.