Re:Is Model-View-Controller dead on the front end?
by at-fates-hands on Friday November 11, 2016 @10:11AM
(#12931285)
>> SQL mixed with HTML
And now we have Javascript being mixed with HTML; which I never thought would happen.
Re:Is Model-View-Controller dead on the front end?
by simplify on Friday November 11, 2016 @10:30AM
(#12931445)
JavaScript isn't a type of logic, it's a language. You wouldn't say JavaScript is the M in MVC, for example. If you have JS in HTML, and that JS code is strictly view logic, then your code still has a clear and useful separation of responsibilities.
Perhaps the problem is that rules like 'no SQL in your views' is now so ingrained, a lot of juniors have never seen a monolothic mess of SQL mixed with HTML. So MVC is almost ubiquitous, and we then try breaking it down into different sub-categories.