Re:Today’s Javascript, from an outsider’s perspective
by wrnr on Tuesday May 26, 2020 @06:08AM
(#23309178)
It actually it is (mostly) as easy as it can be if you think about how the web lets one run third part code safely, not only as a sandboxed in the host environment but also from different domains. I've seen this space evolve since the days of DHTML and the best way to create dynamic content is with document.createElement. Actually I use the crelt[1] util, and the code is shorter and faster then any React/Vue virtual-dom templating system. It like finally riding a bicycle a without training wheels after 15 years of practice.
Re:Today’s Javascript, from an outsider’s perspective
by Paperweight on Tuesday May 26, 2020 @01:38AM
(#23307768)
If you push down the front of the learning curve, the back gets steeper.
Re:Today’s Javascript, from an outsider’s perspective
by michaelt on Tuesday May 26, 2020 @05:03AM
(#23308830)
That depends on how much of the front of the current learning curve is composed of things people will need to know later.
A person can be a successful programmer for decades and do millions of HTTP operations without knowing the distinction between TCP and IP.
I honestly think the only real solution is re-doing all of it 'from scratch', to make everything (a) stricter and (b) more normal/consistent.
(I think the extant transpilers/preprocessors tend to try to be too 'thin' of a wrapper around CSS/JS: they do give some nice quality of life features but still don't really clean up the mess that is JS and the DOM.)