DEV Community


Discussion on: Understanding MVC pattern in Nodejs

eaetukudo profile image
Emmanuel Etukudo Author

It simply developer preference, The first thing that came to mind was the "Don't Repeat Yourself (DRY)" approach. Exporting each method can as well become verbose. Let me know if you can improve the code. Thanks.

osairisali profile image

I think exporting a class with all its methods is quite bulky if we only need one or two of them. Security concern might also exposed. Anyway, it's a good article πŸ‘ Thank you