News for hackers. Stuff that matters.
Re:Clojure on the Desktop by ptx on Tuesday March 31, 2020 @07:45PM (#22744075)
I'm not sure I see any real difference between the DOM and the tree of widgets you can build in Swing. What is it that's so brilliant about the DOM?
Re:Clojure on the Desktop by sdegutis on Saturday April 04, 2020 @12:15PM (#22779169)
The DOM stitches several useful but unrelated concepts together. Besides just being a tree of composable views:

* You can query elements arbitrarily deep using different patterns (depth, class names, ids, tag names, attribute presence/values).

* You can attach event handlers to arbitrarily deep nodes that you just queried, not just the nodes at the level your "controller" is in charge of creating/updating like traditional frameworks.

* Customizing style and behavior is entirely done via properties and composition rather than subclassing like traditional frameworks.

* And more!