3 ms·
this may be daydreaming too shallowly, but I wonder if basic Javascript UI patterns could be identified by some tool. Something along the lines of a new pane sh
by jxramos 4y ago
this may be daydreaming too shallowly, but I wonder if basic Javascript UI patterns could be identified by some tool. Something along the lines of a new pane showing up in the Developer Tools that semantically identifies the roles of certain Javascript.
* This block of code ensures these UI elements are synched among each other.
* This block of code sends this UI data to this server address.
Something that gives a rough & coarse data tracing dependency analysis of inputs and outputs. There may be techniques to defeat this but I think some general patterns would become established where web designs could begin to be shifted to compartmentalize different functionality to streamline such a tool being able to to pare off the insignificant and safe parts of JS and enable folks like yourself to zero in on the interesting and questionable parts.
- Kerrick 4y agoEven without that tool, HTML continues to evolve and add common “components” that people have used JavaScript to create for decades, which work without (or with minimal) JS. For example, <details> and <summary>, <dialog>, <datalist>, and more.
- jxramos 4y agoThat’s interesting so your saying when developers offload to the html standard typical UI workflows that have been baked into certain html tags then there’s less innocuous JS to have to wade through in the first place. That’s amazing actually and very welcomed.
- novok 4y agoThat is behavior based malware analysis.
- octoberfranklin 4y agoThat's what LibreJS does. https://www.gnu.org/software/librejs/ https://www.gnu.org/software/librejs/ It is not terribly useful.