4 ms·
> the DOM is a low level platform The DOM is not "low level", its the wrong abstraction. It feels low level to you because it is fundamentally hard to express
by dahfizz 4y ago
> the DOM is a low level platform
The DOM is not "low level", its the wrong abstraction. It feels low level to you because it is fundamentally hard to express the layout of a gui application in terms of a document layout.
Compare the HTML DOM to Android's XML layout. It is so much easier to work with Android's layout system. You can trivially do things like anchor element X to the left / right / top / bottom of element Y, without workarounds like display:inline and adding div upon div upon div to make things work right.
I could list out another dozen things that JS does poorly, but I don't think that would be very productive.
> The web has made a great Bazaar, a great place for a conflux of possibilities
The web has been successful in spite of its bad technology. The concept of the web and the internet is wonderful. And the reality of the web would be better than it is today if websites weren't so slow, bloated, and buggy.