News for hackers. Stuff that matters.
Re:Ask HN: Is it better to build intranet apps with desktop ... by flukus on Monday April 17, 2017 @10:22PM (#14136044)
It's a good idea to use desktop technologies if the app is complex, for most corporate intranets a few web pages is probably good enough.

As for the stack, c# and winforms is a good bet, particularly if you need to target older versions of windows. If you need a bit more performance or cross platform support then c++ and qt would be better. You could go c++ and win32, but MS dropped the ball on creating a nice api.

Deployments are another area MS dropped the ball, click once is sort of ok if you are using visual studio, but either way chocolatey is better. You may want something better for release management, in which case look into octopus deploy. These suggestions apply to electron apps as well.

Basically, had windows XP come with a better programming APIs (more like qt/gtk) and a better deployment model then web apps would have never been a thing. OSS has made windows a viable desktop.

Re:Ask HN: Is it better to build intranet apps with desktop ... by monkpit on Monday April 17, 2017 @11:51PM (#14136332)
Why bother with bad apis and hacky deployments? I'd venture to say the answer to OP's question is a simple "no".
Re:Ask HN: Is it better to build intranet apps with desktop ... by flukus on Tuesday April 18, 2017 @12:31AM (#14136499)
Because I don't have utter contempt for the users of my software and a little bit of once off pain for me (like fiddling with click once deployments) is worth if it the product is better for 1000 people that use it everyday.

It's simply a matter of what those variables are. A sick leave application form that get's used a few times a year? Stick that on the web, the installation cost isn't worth it. A productivity tool that's used all day, every day by a lot of people? Make that a desktop application, especially if you need local resources, like files. An application used by millions world wide everyday? Write that in a natively compiled language and use the native (or decent cross platform) UI, there's no reason your productivity is more important than the millions of users.

Re:Ask HN: Is it better to build intranet apps with desktop ... by jomkr on Tuesday April 18, 2017 @07:00AM (#14137779)
Have you tried WinForms with touch screen devices? I haven't, but would guess it doesn't cope too well.
Re:Ask HN: Is it better to build intranet apps with desktop ... by flukus on Tuesday April 18, 2017 @08:22AM (#14138214)
Yes, way back when windows mobile was dominating and a stylus was trendy (before they became untrendy and then trendy again) ;) Certain things, like bigger buttons would be trivial, but other things like touch friendly inputs wouldn't be. MS even released a bastardised touch friendly version: https://en.wikipedia.org/wiki/Windows_Mobile_6.5

We're talking corporate intranets though, so a PC (or occasionally mac) will be the norm because that's required for productivity apps. Most things simple enough to be a touch screen app would fit into the category of also being simple enough for a web app. As I said, web apps are a good choice for simple and/or rarely used apps.

Irrelevant side story: For my second ever paid programming job (which only lasted a few weeks for other reasons) I was handed a fairly complex windows mobile app to learn. The app loaded every table in the windows CE database into memory when it started, which took about 15 seconds. Within a couple of days I'd modified this to load on demand instead, cutting start times to zero and impressing the boss.