News for hackers. Stuff that matters.
Re:Microsoft Throws in the Towel on UWP, Elevates Win32 by codeflo on Friday May 10, 2019 @08:28PM (#19883584)
I watched the videos for every session from the current Build conference I could find on this topic, but still don’t understand the strategy. Like at all. Listing the GUI toolkits that Microsoft is currently investing in, there’s UWP, WPF, React Native and also a new thing called WinUI. Not all of them will survive (by which I mean will continue to get significant new feature releases say three years from now).

So it’s not clear to me at all why I should bet on any of them and not just use Electron, which is in a lot of ways worse, but at least guaranteed to stick around.

Re:Microsoft Throws in the Towel on UWP, Elevates Win32 by contextfree on Saturday May 11, 2019 @12:19AM (#19884527)
WinUI is just a new name for the UWP UI stack now that it is open source and decoupled from the OS, React Native is a wrapper on top of UWP/WinUI, and WPF isn't really getting significant new features other than being taken open source and ported to .net core. So really already there's just one forward-looking native UI stack, which is WinUI.
Re:Microsoft Throws in the Towel on UWP, Elevates Win32 by codeflo on Saturday May 11, 2019 @02:05AM (#19884826)
Maybe, but how does that square with the widespread assumption that UWP and the store are basically dead? Do you expect WinUI to be available in desktop apps eventually? There’s something called “XAML Islands” to integrate UWP components into desktop apps, but that’s technically ugly, incomplete, and very explicitly targeted at legacy applications. Beyond that, they didn’t announce anything as far as I can tell.
Re:Microsoft Throws in the Towel on UWP, Elevates Win32 by contextfree on Saturday May 11, 2019 @09:49AM (#19886132)
Maybe, but apps are already using XAML Islands - the new Windows terminal does its entire UI in one big XAML Island. There's talk of a new XAML Desktop project/app type that would basically formalize this pattern: https://twitter.com/pag3rd/status/1126940080294154241
Re:Microsoft Throws in the Towel on UWP, Elevates Win32 by vitorgrs on Saturday May 11, 2019 @08:31AM (#19885827)
Windows Terminal will be distributed on Store, and so do new Edge. I don't know why people are calling it dead...

And they announced that WinUI 3.0 will open source all built-in XAML controls (they are even rewritten some to be on top of Composition because of that), will also open the XAML Stack and Composition.

This is a big deal.

Re:Microsoft Throws in the Towel on UWP, Elevates Win32 by MikusR on Saturday May 11, 2019 @05:25PM (#19888471)
Neither old or new Edge is being distributed on Store. Old one gets bugfixes from Windows update and new features come with the big biannual Windows updates. New one uses it's own updater. They also removed ability to install Office from store.
Re:Microsoft Throws in the Towel on UWP, Elevates Win32 by vitorgrs on Friday May 24, 2019 @12:40AM (#19998533)
It's coming once it hits final release. :)

Microsoft.MicrosoftEdgeWin32_8wekyb3d8bbwe

Re:Microsoft Throws in the Towel on UWP, Elevates Win32 by la_barba on Saturday May 11, 2019 @02:39PM (#19887663)
It might be "fun" to dump on MS, but the thing with MS tech is that, like it or not, it definitely 'sticks around'. They are probably the best in business at ensuring backwards compatibility. At work we're using windows apps that were sold in 2006, on W10. And these are fairly complicated analytical equipment control softwares that work over COM (well.. usb emulated now). I don't know if you can install and run applications from 13 years ago on any other modern platform.
Re:Microsoft Throws in the Towel on UWP, Elevates Win32 by teddyuk on Friday May 10, 2019 @10:32PM (#19884154)
Electron gets a lot of stick but you can write good looking cross platform applications easily.

Until someone does something better that isn’t single platform it has to be here to stay

Re:Microsoft Throws in the Towel on UWP, Elevates Win32 by userbinator on Friday May 10, 2019 @10:57PM (#19884245)
A lot of people, including me, do not think that "good looking" and "native looking" should be any different, and for that, Electron is a failure --- native applications use the UI of the platform and are consistent with other applications on the platform, while Electron applications obviously look different from them, and have the same look regardless of platform, completely ignoring the standard native UI it provides. They don't conform to the customisations I do to the native UI of the platform, which is very frustrating. There's also the unmistakable RAM usage and general sluggishness.

From that perspective, it's not really "cross platform", since you're just developing for one platform that happens to run inside many others: a web app.

Re:Microsoft Throws in the Towel on UWP, Elevates Win32 by crispinb on Saturday May 11, 2019 @12:17AM (#19884520)
I honestly think the days of the cohesive desktop platform are done. It arguably reached its peak with OS X (perhaps circa Snow Leopard), but the idea has been falling into disrepair even on the mac. It's hard to see any strong force moving us back to it, but given the current situation, if I were a desktop app developer I don't think it's something I would consider it worth investing too much effort in.
Re:Microsoft Throws in the Towel on UWP, Elevates Win32 by lozenge on Saturday May 11, 2019 @03:35AM (#19885079)
Maybe my memory is bad but I don't think OS X ever really had it. The flag-carrying apps (Adobe, Final Cut, Garageband) had custom UIs. Built ins like Calendar had skeumorphic UIs.
Re:Microsoft Throws in the Towel on UWP, Elevates Win32 by Razengan on Saturday May 11, 2019 @09:48PM (#19889581)
> Maybe my memory is bad but I don't think OS X ever really had it.

This is not a binary question of either a desert or either a rainforest, but Apple's side of the fence is definitely a lot greener than Microsoft's in terms of UI/UX consistency.

I was a purely PC/MS user up until about 10 years ago, but I haven't suffered as many befuddled facepalm moments from Apple's UI decisions as from the Escheresque nightmare that Microsoft is even now.

> The flag-carrying apps (Adobe, Final Cut, Garageband) had custom UIs. Built ins like Calendar had skeumorphic UIs.

However, almost every macOS app has the same standard menus, same standard shortcuts, and most of them support the same OS extensibility features. Even as a developer you just need to build against the latest AppKit and you get not only all the current features, but usually future features for free too (e.g. most of the NSDocument stuff such as autosaving and previous versions.)

Compare this to the hodgepodge of different interfaces even in Windows' builtin apps alone, and championing a different API almost every other year.

Re:Microsoft Throws in the Towel on UWP, Elevates Win32 by crispinb on Saturday May 11, 2019 @04:48AM (#19885268)
Oh, true of course, especially from the big guns. But there was a flourishing ecosystem of great apps like Textmate, Things, Acorn, and a bunch of others from outfits like Omnigroup, Panic, IconFactory. These tended to fit beautifully on the platform, and not just in aesthetic terms, but functionally with reasonably consistent keyboard shortcuts, AppleEvents support, etc.

Not perfect (what is?), and many of the longstanding apps are still around, but the steam has arguably gone out of the platform.

Re:Microsoft Throws in the Towel on UWP, Elevates Win32 by sfifs on Saturday May 11, 2019 @02:25AM (#19884891)
Depends on personal preferences I guess. I generally find "native" interfaces poorly suited to productivity. In fact even Microsoft agrees which is why they have UI of their Office products running on a highly contextually customized ribbon interface and visual cue based context menus which use transparency to hint at options. I similarly find Electron based apps usually focus on usability rather than throwing a million option into menus or cluttered toolbars which is the default "native" UI.
Re:Microsoft Throws in the Towel on UWP, Elevates Win32 by lopmotr on Saturday May 11, 2019 @12:14AM (#19884502)
Is there really a Windows native look anymore? Every application seems to have a completely different UI style now. The old days of dialog boxes all having the same Winforms controls are gone and now they're a random mixture, even within Windows itself. The tabs in Chrome are not like the tabs in Excel which are not like the tabs in Paint3D. It's all over the place.
Re:Microsoft Throws in the Towel on UWP, Elevates Win32 by userbinator on Saturday May 11, 2019 @12:44AM (#19884613)
Yes, I believe the inconsistencies started with Vista, and has gotten worse since then, but the parts they didn't change still have the consistent normal Win32 style.

The standard tab control looks like this:

https://docs.microsoft.com/en-us/windows/desktop/controls/ta...

There is a (probably incomplete) list of standard controls here, I believe the documentation for each one contains screenshots of what they look like:

https://docs.microsoft.com/en-us/windows/desktop/controls/in...

That said, Chrome's tabs are (at least the last time I checked) actually bitmap images, Excel's tabs are also probably custom-drawn yet fortunately aren't bitmaps (just judging by how they look), and I believe Pain(t)3D is actually UWP.

Re:Microsoft Throws in the Towel on UWP, Elevates Win32 by mhermher on Saturday May 11, 2019 @12:51AM (#19884632)
The only people who ever bring this up are all on HN. Spotify is electron, vs code is electron, slack is electron. I have them open all day, and never even notice.
Re:Microsoft Throws in the Towel on UWP, Elevates Win32 by bni on Saturday May 11, 2019 @04:14AM (#19885170)
Spotify is not electron
Re:Microsoft Throws in the Towel on UWP, Elevates Win32 by bpye on Saturday May 11, 2019 @03:39PM (#19888005)
Desktop Spotify does use CEF though doesn't it? Whilst it might not be electron it's a similar idea
Re:Microsoft Throws in the Towel on UWP, Elevates Win32 by krzat on Saturday May 11, 2019 @03:42AM (#19885089)
Flutter for desktop is in early stages currently, but in theory it could deliver apps that look & feel like Electron apps but with much better performance.
Re:Microsoft Throws in the Towel on UWP, Elevates Win32 by maxxxxx on Friday May 10, 2019 @10:36PM (#19884168)
As a long time Windows desktop dev I am horrified to say that Electron looks really attractive as dev platform on Windows :-)