News for hackers. Stuff that matters.
Re:Removing User Interface Complexity, or Why React is Awesome by baddox on Tuesday May 13, 2014 @01:36PM (#7739467)
Your comment implies that you recommend web apps never do any DOM generation or manipulation using JavaScript, and are instead purely static HTML documents. For that matter, your argument would logically extend to opposing backend HTML generation as well, like Rails templates.
Re:Removing User Interface Complexity, or Why React is Awesome by IanDrake on Wednesday May 14, 2014 @08:44AM (#7743381)
>you recommend web apps never do any DOM generation

Full stop right there and you're correct. I really prefer to limit code that looks like:

     element.innerHTML = '<div>Do you really like content in your JS like this?<div>';
I'd rather have the HTML loaded as one file and have the javascript in another acting on that HTML. Right now my favorite library to use for this is Knockoutjs.
Re:Removing User Interface Complexity, or Why React is Awesome by baddox on Wednesday May 14, 2014 @01:15PM (#7744821)
Knockout has HTML-esque template too, not unlike Ember or even React.