Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Because it is originally meant to only be the V in your application. Not the entire MVC point.
-
@AleCx04 so if it's only the V, why is the templating so messed up?
I mean, there are loads of nice templating patterns, and *poof* we're suddenly spaghetti-ing JS and HTML. -
@wildebeest and there my good friend you have discovered the current situation regarding programming hypocrisy.
You see. Before, people would bitch at coldfusion, classic asp, jsp, apache server pages, php and other for mixining views with logic. An age old debate teally. Along came jsx in a shiny new node.js frontend framework and everyone turned into hypocrites. The people that bitch at php for mixing views with logic are doing it now with react and it works because node. -
@wildebeest well if it looks spaghetti it's just shit code really. I like the fact that if I want to render a list of stuff I don't have to use a made-up syntax for looping but actually just array.map. It's natural to think about because you're transforming data to view and it's probably exactly what the made up templating syntaxes compile to.
WHY IS REACT SO POPULAR FML
Fuck Redux and sagas. Why can't you just be normal MVC?
rant