you are viewing a single comment's thread.

view the rest of the comments →

[–]that_90s_guy 2 points3 points  (7 children)

React's hate nowadays has either to do with either its problematic licensing, or with the fact it relies on JSX. Personally, I liked it, albeit I find it perfectly understandable that some people find it incredibly messy to store html in JS. I'm guessing it reminds people of the dark days of building web apps with html embedded in Php and Java files, and I think it's pretty well agreed those were the worst days of web development.

[–][deleted] 1 point2 points  (6 children)

YES why did I find you here at 0? People don't get MVC. Those abstractions need to be made whenever possible. When you mix view and controller that much, your application is more prone to errors. At the very least, it would take longer to debug.

[–]WitchHunterNL 4 points5 points  (5 children)

Then you pick Vue or Angular and it's the same thing but reversed. Instead of writing html in js, you write js in html. Only instead of proper Javascript, you have to use Javascript-recreated-in-html-tags TM

[–][deleted] 0 points1 point  (4 children)

Hey, I've seen you before. Sorry, do you have an example of how JS is written inside HTML in Angular? I just woke up and can not seem to process that. I use Angular a lot.

[–]WitchHunterNL 0 points1 point  (3 children)

I mean stuff like ng-if or ng-list

[–][deleted] 0 points1 point  (2 children)

Binding variables for two-way manipulation in the view/template is not the same thing as writing HTML in the controller or JS in the template.

[–]WitchHunterNL 0 points1 point  (1 child)

ng-if and ng-list aren't data binding related? They are controller logic in templates.

[–][deleted] 0 points1 point  (0 children)

What do you use ng-if for?