6 ms·
It's pretty fascinating how tech tends to spread and influence. We spent years trying to make the web more like traditional UI dev, and now we're making tradit
by freedomben 9y ago
It's pretty fascinating how tech tends to spread and influence. We spent years trying to make the web more like traditional UI dev, and now we're making traditional UI dev like web. I would never have believed this if you'd told me about it in 2010.
- bcheung 9y agoColdFusion, Flex, XAML, JavaFX
- ratsimihah 9y agoWriting React makes me feel more like building for web using native paradigms.
- coldtea 9y agoAnd yet there's not much that's like native GUI paradigms in React. At least when concerning all major GUI libs. It's more like a markup driving an immediate-mode graphics API.
- anthonybullard 9y agoYou basically just described Google's Flutter framework. It's currently only mobile but I see it moving into this space at some point - or already is I guess if you count Fuschia.
- gman83 9y agohttps://github.com/google/flutter-desktop-embedding https://github.com/google/flutter-desktop-embedding
- anthonybullard 9y agoThanks! Now I have something else to play with.
- malkia 9y agoYou can get it working on Desktop (I've got it on Windows with the help of https://github.com/ds84182/flutter_sdl https://github.com/ds84182/flutter_sdl and few other hacks, but certain things are missing - there is no support for mousewheel events, docking, or more than one window. Or keyboard input (though that should be easier to add than the three listed).
- ratsimihah 9y agoComponents make me think in term of OOP.
- whowouldathunk 9y ago> and now we're making traditional UI dev like web It's been like that on Windows since 2006 with XAML. In fact, if you squint at typical JSX, it looks like XAML. Disclosure: I work at Microsoft.
- quickthrower2 9y agoCome on... That's not fair on XAML
- fastball 9y agoIf only MSFT hadn't burned all their hacker bridges with anti-trust behavior in the 90s.
- mlsarecmg 9y agoXAML is a template, JSX is a DSL. A template kills scope, duplicates coding semantics, messes up app flow with bindings and needs dependency injection to get local scope back - all of this has been solved with JSX, which now pretty much fulfills Silverlights dream: https://news.ycombinator.com/item?id=16198843 https://news.ycombinator.com/item?id=16198843 The crazy part is, that you can share code and eco-system components among these targets, no matter if they're native or otherwise. Here's a shell applications for instance that uses react-motion to shift stuff around: https://github.com/gaearon/react-blessed-hot-motion https://github.com/gaearon/react-blessed-hot-motion Microsoft seems heavily invested in it as well (react-windows, reactXP, UI-fabric, ...).
- whowouldathunk 9y agoXAML components ("controls" in MS terminology) contain both declarative markup and code. And it's flexible because the visual presentation can be completely overriden by the component's consumer without altering behavior, and your code can be either C# or C++. What does dependency injection have to do with anything? There's nothing stopping you from using global variables or an event bus or something like Redux in a XAML app.
- dugmartin 9y agoOr across multi-platforms with XULRunner from 2006 to 2015.
- deleted 9y ago[deleted]
- pweissbrod 9y agoUI seems to be effectively described using some sort of a markup language. HTML being the most well-understood markup language becomes a reasonable thing for stuff outside just web pages. It isnt perfect but it gets the job done. Sorta like phonegap :/
- digi_owl 9y agoThing is that these days HTML is a pile of div tags that CSS and JS dangle off. Damn it, didn't we just have an article on HN about creating art using CSS?!
- paulryanrogers 9y agoIndeed. A part of me is sad to see the semantic vision of XHTML lost in the mix. Though with care HTML5 can be more descriptive than its predecessors.
- digi_owl 9y agoQML, anyone? https://en.wikipedia.org/wiki/QML https://en.wikipedia.org/wiki/QML