4 ms·
So you write `el.innerHtml = "<div>stuff</div>";`? Can't remember the last time I did that. Probably back when I used PHP on my first internship. Don't you th
by Draiken 10y ago
So you write `el.innerHtml = "<div>stuff</div>";`?
Can't remember the last time I did that. Probably back when I used PHP on my first internship.
Don't you think it's a lot of added overhead rewriting the same over and over? Things like data binding, validation, etc. If you do two projects with vanilla JS you'd end up with a bunch of similar functions for this basic stuff.
- bwackwat 10y agoPerfect! A no nonsense, innerHTML modification. Hah! I transform my data into a JSON object, suited for the front end. So the only Controller -> View boilerplate is a "call the api" JavaScript function. My comment is primarily a criticism of the JavaScript world where folks can NPM their entire server infrastructure (containing plenty of needless files)...