News for hackers. Stuff that matters.
Re:Win32 and .NET desktop apps can now be published in the W... by koko775 on Thursday September 15, 2016 @05:51AM (#12504636)
WinRT means:

* No app closure callbacks. You don't know if it's suspending or exiting.

* No "are you sure you want to exit? Save/Don't save" dialogs. If you close or crash pray your data was saved, and if it takes a long time to flush to disk...really pray.

* No minimizing/backgrounding to tray icons allowed.

Re:Win32 and .NET desktop apps can now be published in the W... by kodfodrasz on Thursday September 15, 2016 @06:54AM (#12504893)
* I guess You can create a background worker handling persistence, which runs until completion even if the UI has been closed. (I have not used UWP yet)

* IMHO save/don't save dialogs are an usability antipattern.

* Tray icons are also something of a remedy of the past. They are now replaced by background operations and live tiles. I can see why those can be problems, I can imagine the usecases you would solve using those tools, but the new app model is build around a slightly different workflow.

But if you do not like the way to solve it as it is intended in the new app model, the solution is: report it/upvote it. If you tell your problems here, then some members of HN community will know it and understand it, but it is unlikely that it will be acted upon by Microsoft. For that you need to have your voice heard on their forums. (eg. feedback app, uservoice...)

Re:Win32 and .NET desktop apps can now be published in the W... by emodendroket on Thursday September 15, 2016 @01:21PM (#12507991)
> No "are you sure you want to exit? Save/Don't save" dialogs. If you close or crash pray your data was saved, and if it takes a long time to flush to disk...really pray.

Of course not, because it's supposed to also work on mobile. Does your iPad let applications prevent you from going back to the home screen?

Re:Win32 and .NET desktop apps can now be published in the W... by flukus on Thursday September 15, 2016 @07:39PM (#12510778)
> Of course not, because it's supposed to also work on mobile. Does your iPad let applications prevent you from going back to the home screen?

You don't see the problem here? Why do I want the restrictions of mobile phones limiting my desktop applications?

Re:Win32 and .NET desktop apps can now be published in the W... by emodendroket on Thursday September 15, 2016 @08:13PM (#12510986)
Well, for one, I don't see how else the concept of "universal apps" could possibly work.
Re:Win32 and .NET desktop apps can now be published in the W... by flukus on Thursday September 15, 2016 @09:12PM (#12511238)
Neither do I. The question then becomes "should they exist?".
Re:Win32 and .NET desktop apps can now be published in the W... by emodendroket on Thursday September 15, 2016 @09:33PM (#12511319)
It might not be a good fit for Office. But it seems fine for some applications.
Re:Win32 and .NET desktop apps can now be published in the W... by kodfodrasz on Friday September 16, 2016 @01:04AM (#12511963)
It's totally OK for Office, just because you are accustomed to something. You can try the office mobile product line on windows 10 (available from the store), which is UWP, and pretty usable for its limited feature set, and the lack of "do you do u really really really want to quit?" modal popups.

Bashing UWP for advocating a different app model, and different UI design principles is like still using bash in 2016 because you are accustomed to ash from the 70s, and GUIs cannot go to start of line with Ctrl-A, thus saying they are inferior. Change has its positive sides and drawbacks, but in both cases it is mostly for the better.

Re:Win32 and .NET desktop apps can now be published in the W... by emodendroket on Friday September 16, 2016 @08:44AM (#12513590)
The whole point of getting Office is that practically every conceivable feature you could want is supported. If it's a limited feature set you might as well be using something else.
Re:Win32 and .NET desktop apps can now be published in the W... by flukus on Friday September 16, 2016 @01:46AM (#12512092)
So I can install office from the app store and it can open documents I have in c:\docs?
Re:Win32 and .NET desktop apps can now be published in the W... by WorldMaker on Thursday September 15, 2016 @11:00AM (#12506707)
There is a Suspending callback.

Sounds like you have some misconceptions about the UWP/WinRT application lifecycle:

https://msdn.microsoft.com/en-us/windows/uwp/launch-resume/a...

Re:Win32 and .NET desktop apps can now be published in the W... by m_fayer on Thursday September 15, 2016 @12:28PM (#12507493)
If I recall correctly, this callback has some undocumented deadline. Go over that and it's unceremoniously killed, great way to corrupt whatever you're desperately trying to write to disk.
Re:Win32 and .NET desktop apps can now be published in the W... by WorldMaker on Thursday September 15, 2016 @02:23PM (#12508508)
No, it is a pretty well documented deadline at this point. The callback is not intended for I/O work, but to clean up resources or to spin up any background tasks you might need for I/O. There are lots of articles full of best practices for the app lifecycle. Yes, it's different than Win32. Yes, it's influenced by mobile and low resource environments. But it's better for it and worth learning.