Comment by dgb23

Comment by dgb23 17 hours ago

3 replies

Btw that's largely our (web devs) fault.

https://extensiblewebmanifesto.org/

Good intentions and some good ideas. But ultimately lead to a fractured, overly complicated and bloated web.

I say yes to lower level, more general capabilities. But why does that have to mean we get bad APIs (web components, indexeddb, service workers...) and lack fundamental and well established UI components (combobox, toggles, tabs, tooltips, data grids...) and incomplete implementations (lacking HTTP verbs for forms)?

(Also why we're at it, I'm going to sneak in a complaint about half baked and broken language features like `const` and `import`. Also we shouldn't have abandoned Do-Not-Track...)

WorldMaker 13 hours ago

How are `const` and `import` half-baked or broken? They work great, and do what they are supposed to do. Browser support is great today for both.

  • dgb23 9 hours ago

    "Const" is half baked as it implies that you declare an immutable value, but it only prevents redeclaration and direct reassignment.

    "Import" breaks the browser REPL and the dynamic nature of JS. You can't redeclare, look or move into a module. Now JS is already broken in that you can't redeclare variables declared with let/const. But not being able to move into modules an extra crime.