4 ms·
> 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 XA
by whowouldathunk 8y 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 8y agoCome on... That's not fair on XAML
- fastball 8y agoIf only MSFT hadn't burned all their hacker bridges with anti-trust behavior in the 90s.
- mlsarecmg 8y 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 8y 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 8y agoOr across multi-platforms with XULRunner from 2006 to 2015.
- mstade 8y agoOr MXML, which most certainly was influenced if not entirely derived from XAML. Everything old is new again!
- drawkbox 8y agoYeah the Silverlight vs Flex days of 2006ish really inspired this quite a bit. Today Xamarin does all this pretty well cross platform, desktop and mobile for UWP/Mac and iOS/Android.
- ascorbic 8y agoAnd TypeScript is the new ActionScript.
- deleted 8y ago[deleted]
- osteele 8y agoI’ll put in a plug for my former employer’s OpenLaszlo, introduced in 2002 (preview) and 2003 (version 1.0). OpenLaszlo was most immediately inspired by HTML and (for data binding) XSLT. I looked at Mozart for ideas on constraints, but we ended up rolling our own design — mostly because constraints were never supposed to be a feature, so they were designed and developed incrementally, in discretely releasable baby steps. Adobe did due diligence of the company sometime around 2002-2003 too, but that deal fell through. An Adobe PM also signed up for our beta program, initially under a pseudonym, but he eventually came clean. I’ve always been curious whether Flex/MXML was related to either of those encounters. [1] https://en.wikipedia.org/wiki/OpenLaszlo https://en.wikipedia.org/wiki/OpenLaszlo [2] https://ssl.weepee.org/lps-4.6.1/docs/developers/program-development.html#program-development.data-binding https://ssl.weepee.org/lps-4.6.1/docs/developers/program-dev...
- nl 8y agoI played with OpenLaszlo way back then. It was pretty nice.
- drawkbox 8y agoXamarin does this pretty well cross platform as well.
- cobalt 8y agoor windows dialog RC files
- Tloewald 8y agoIf you squint at JSX it also looks like JSP…
- noir_lord 8y agoI've been using XAML at work recently (.Net 4.6) and I've got to say Microsoft did an excellent job. The databinding approach is both elegant and familiar. It certainly does look a lot like Vue Single File Components if you squint.