3 ms·
MVC - because spending 50% Of your time looking for the other file with the almost identical name is fun... wait now we need the view... nope back to the contro
by ricksharp 6y ago
MVC - because spending 50% Of your time looking for the other file with the almost identical name is fun... wait now we need the view... nope back to the controller again... why can’t these files be next to each other...
It’s ironic that this is done in the name of “Separation of concerns“ -
You know what separates concerns: having everything that affects this component - in one place. That’s true separation of concerns.
I’ve worked in multiple frameworks in multiple languages and nothing does it better than modern react (especially with webhooks).
- vitalyx 6y agoCould you give a few examples of those languages and frameworks just to understand what you are comparing React to?
- ricksharp 6y agoHere’s a decent list through time for JavaScript frameworks: http://todomvc.com/ http://todomvc.com/ For my own experience with things that were specifically MVC or MVVM: In C#: Asp.net MVC, WPF (with/without Prism) In Typescript: Knockout, Angular 2.0+ (I guess it wasn’t mvc really - I disliked it for other reasons) React (with hooks) on the other hand is the embodiment of a pure Functional Programming UI. I can literally write a component with a single import and a single function. For every reason functional patterns beats OOP patterns, react beats mvc - and achieves true separation of concerns (feature aligned concerns).
- vitalyx 6y agoThanks, that helps.