3 ms·
I've never seen a MVC codebase that wasn't a nightmare to work in.
by diob 2y ago
I've never seen a MVC codebase that wasn't a nightmare to work in.
- sky2224 2y agoYeah, MVC (and MVVM for that matter), seem like architectural approaches that are great in theory, but with the reality of constraints, requirements, timelines, and ultimately many engineers' misunderstanding of things (frankly I'm probably included in that group as well), it just leads to a mess of interdependency and tight coupling among functionalities. Now granted, this is pretty much a given for any architecture (nothing is perfect): so maybe my expectations of what things should be needs to be reeled in a bit.
- breadwinner 2y ago> it just leads to a mess of interdependency and tight coupling among functionalities Disagree with that. Most UI frameworks, including ASP.NET Core, JSP and JSF (Java based frameworks), Ruby on Rails, and Django (Python) are all based on MVC. That's no accident. MVC works very well.
- sky2224 2y agoReally? I'll admit most my experience has first been in an ASP.NET 4.x environment and currently in WPF MVVM. It's been a mess. Maybe I've just had bad luck seeing these architectures in action?
- perrylaj 2y agoGoing to assume you're talking frontend? Otherwise you'd be claiming most Spring, Django, Rails, Angular, <enter common backend framework> codebases are a nightmare to work in. While there are many good application architectures that don't fit into the MVC pattern (or introduce additional layers, e.g. - auth), separating DB ops (M) from business logic (C) and endpoint handlers (V) has always been rather maintainable/testable in my experience.