News for hackers. Stuff that matters.
Re:Ask HN: What will become possible by 2025 in your field o... by tonyarkles on Sunday November 17, 2019 @05:22PM (#21560414)
Maybe this is making me sound old, but... the DOM is definitely not an optimal way of laying out a UI. It was designed for documents, and UIs have been repeatedly jammed into it until they fit. Newer CSS stuff (eg flexbox) help smooth that out a bit, but it’s still a gong show compared to actual UI toolkits (Qt, Cocoa, etc).
Re:Ask HN: What will become possible by 2025 in your field o... by icebraining on Sunday November 17, 2019 @08:31PM (#21561259)
Counterpoint: a DOM is just a tree of objects that represent a UI page/window. If you look at, say, QML, there's a DOM as well, and even if you write it in code, there's still an hierarchy of objects.

I'm not sure the DOM is the problem.

Re:Ask HN: What will become possible by 2025 in your field o... by tonyarkles on Monday November 18, 2019 @07:47AM (#21563876)
That's fair!

I suppose it's more that DOM+CSS has only recently really started to have broad support for more UI-oriented layout. Things like "make these N boxes all the same width, even if N changes" :)

Re:Ask HN: What will become possible by 2025 in your field o... by hollerith on Sunday November 17, 2019 @06:59PM (#21560911)
I keep hearing that, but I've used many of UIs over the years, and I prefer the UIs of VS Code, github.com, or Gmail to any of the UIs I can think of built with "actual" UI toolkits.

Maybe I like text more than the average user, though.

Re:Ask HN: What will become possible by 2025 in your field o... by tonyarkles on Monday November 18, 2019 @07:56AM (#21563925)
Heh, I think it's a matter of preferences really. Emacs is my daily driver for an editor. I access Gmail via Thunderbird instead of the web UI. I do use Github via a browser, but pretty much just for doing code reviews or creating a new repository. Branching etc all happens on the command line.

Looking at my current list of open apps on this machine, it's a bit of a mixed bag:

- iMessage (native)

- Chrome

- iTerm2 (native)

- Fusion 360 (uhhh something weird, dunno)

- Spotify (Electron)

- XCode (native)

- Emacs (native-ish, maybe GTK?)

- Thunderbird (native-ish, I think it's still laid out with XUL)

- Slack (Electron)

- Keybase (Electron)

One thing to note: most of the time I am in the city, but have a second home in a rural area. When I'm out there on a spotty tethered connection, all of the above Electron apps have to get closed because they lose their minds when there's a spotty connection. Slack in particular likes to steal focus/pop up over everything when it is in a loop trying to reconnect. Spotify gets into a weird state where the UI gets unresponsive. Keybase doesn't really complain much.

Re:Ask HN: What will become possible by 2025 in your field o... by hollerith on Monday November 18, 2019 @11:15AM (#21565428)
It might interest you to know that graphical Emacs on a Mac uses purely native UI APIs. No GTK.

(And I wish Chrome used those native Mac UI APIs as well as Mitsuharu Emacs does.)

Re:Ask HN: What will become possible by 2025 in your field o... by tonyarkles on Monday November 18, 2019 @12:57PM (#21566445)
I figured it might!