Message from JavaScript discussions

August 2017

— The jQuery object wrappers make it sort of coupled but there are several large monolithic parts that can be easily replaced with like 2 lines of vanilla DOM API code

Message permanent page


Avoiding using a NodeList etc... doesn't save you any effort imo. Especially when you know what an iterator is and what that means for the DOM

— NodeList = targeting system for DOM nodes, is not an actual list containing Nodes. It's iterator pulls up Nodes as a window to the DOM itself via on demand traversal

Message permanent page

— Array.from :^)

— Oh wait

— NodeList is dynamic?

— Smelly code if I see that

— A nodelist will change with the DOM?

— Very bad memory management... Why create a linear data structure out of a nonlinear one when it already supplies an abstraction that lets you treat it as linear? Only naive people will be using an array imo

Message permanent page

— Heh

— You even have item(n) if you want integer accessors

— So it's like putting a band aid on without even having an injury haha