7 ms·
Is writing native apps honestly still so hard these days? I can appreciate the concerns about maintaining multiple codebases and dealing with different deliver
by Razengan 8y ago
Is writing native apps honestly still so hard these days?
I can appreciate the concerns about maintaining multiple codebases and dealing with different delivery mechanisms and their rules, but modern iOS/macOS and Windows APIs (at least; I cannot speak for Android and Linux) seem just as easy, let you work in arguably better languages, evolve at a faster rate, and provide a better experience for users and their machines.
- LeoNatan25 8y agoShsh, or you’ll burst the web “devs” bubble of “write once, run nowhere, rewrite multiple times, run like shit here and maybe there”.
- pvg 8y agoIt's still about twice the work. Or n-times, for n platforms.
- enraged_camel 8y agoTwice the work for front-end only, and even that is arguable. The overall logic of the client across different platforms will be very similar. The only thing that will change is language and implementation details.
- pvg 8y agoDifferent environment, different conventions, different bugs, different design, different support, different everything. Different teams that have to communicate. It is 'arguable' that it's twice the work, that is true. Twice is the lower bound.
- babypuncher 8y agoThere are options that let you write the bulk of your code in one language then code platform specific user-interfaces against that library. This is basically the Xamarin philosophy for iOS/Android development, and Xamarin apps generally offer a much better user experience than these web-app wrappers cluttering the App Store.
- pvg 8y agoWe were talking about desktop apps in this case. It's slightly different on mobile but the parameters are similar. The range of options here involve fiddling with dials that affect cost and quality. The comment I'm replying to amounts to 'why not pretend these dials don't exist?'. The answer is, because they're really there, you can't effectively plan development like that.
- h1d 8y agoYes. It's typical for a team to have different people handle different platform and spreading task on multiple people suddenly slows down the progress than letting 1 set of people handle the front end.
- deleted 8y ago[deleted]
- pier25 8y agoIt depends. You could still use a web UI but without embedding Chrome and Node.
- pvg 8y agoThat sounds like writing and maintaining your own (cross-platform) version of Electron. And then not ending up with a native app for your troubles.
- pier25 8y agoNot really. Just a shallow native layer that uses the platform as much as possible. Except for the UI of course.
- roryisok 8y agoYou'd need node for file system access though. Unless you write your own io layer
- pier25 8y agoIndeed. That would be written in the native layer.
- geodel 8y agoIt is. Especially for multi billion dollar companies with 100s of developers. Because you know careful evaluation, strategic direction, ROI etc has shown users prefer to update their own hardware instead of demanding companies to write efficient software.
- JakeTyo 8y agoIf it's hard for a dev to write a native apps, then maybe they should re-evaluate their career choices and leave it to the competent ones.
- hnbroseph 8y agoor, everyone can do whatever they want. i like that a bit more. :)
- orange8 8y agoIf the "competent ones" have to resort to bitter FUD wars to protect their turf, then maybe they are the ones who need to re-evaluate their so-called careers. Somewhere out there, there's a bitter COBOL developer still complaining about that "new fangled" c++
- mikhailt 8y agoIt's not writing the native code that's the problem, it's designing the same GUI experience across platforms that's nearly impossible to do. If it was so easy as you said, a lot of macOS apps would've been portable to Windows years ago given the market share. I work for a cross-platform company, Windows is a much more difficult to develop for compared to macOS. You can write a Cocoa UI but what do you do on Windows when you need to support Windows 7 and above? Win32 controls are grossly outdated but the best accessible/consistent experience across multiple versions, UWP controls is limited to Windows 10 and best under MS Store, WPF has been neglected but so far it is the fastest way to develop a GUI. Microsoft has decided to split UWP out of Microsoft Store to bring it to everyone with UWP XAML Islands etc. The reason Slack prefers Electron is because you can just write the same HTML/CSS front-end, deploy it, and all Slack apps can simply be refreshed to show the newest UI. You cannot do that with native apps at all. You could get around with a few webviews embedded in the native apps but might as well go full Electron.
- CyberDildonics 8y agoEquating electron and cross platform is a gigantic fallacy. Qt and other GUI frameworks (like Juce and FLTK) exist and are blisteringly fast. You don't have to package an entire web browser to make something cross platform.
- chris_mc 8y agoQt, or whatever, isn't pretty enough for the designers.
- api 8y agoYes. At least N times the work for N platforms. Fewer developers, harder to recruit. Cross-platform options like Qt are not modern/pretty enough and sometimes aren't that much thinner than Electron (depending on how well written the app is). Java/Swing/SWT is also quite bloated and looks terrible. Development is much slower in languages like C++. Other languages are not cross-platform or have immature/buggy cross platform support. How's ObjC on Windows? C# on Mac? They exist, but nobody uses them. I really think we're in a UI dark age. Native UI development has gone backwards compared to the ease of WYSIWYG GUI design 10-20 years ago. Go back and use the VB.NET GUI builder from 2004 and be in awe at the incredible productivity you could achieve. Platforms are more fragmented today too. There is even fragmentation on the same platform! Do I use Qt or GTK or (insert one of a dozen others) on Linux? WPF or Windows Forms on Windows? Cocoa or UIKit on Mac? Which one will MS or Apple kill tomorrow? ... or I could just say fXXk it and use Electron and be done with it. This is 100% the fault of vendors. If you hate the bloat blame Microsoft, Apple, and Linux developers, not people who use Electron. Edit: mobile UI development is less fragmented but it's not really that great either. You get no choice in dev tools and the code is absolutely unportable. I see higher-level web or web-ish views/libraries/frameworks taking over there too. It's already happening.
- AnIdiotOnTheNet 8y ago> Go back and use the VB.NET GUI builder from 2004 and be in awe at the incredible productivity you could achieve. That almost nothing like this exists today is evidence that personal computing is dying, IMO. Companies don't want to empower users, they want them to be good little content consumers who do what the ads tell them. Developers (OSS developers included) don't respect them and assume they're too stupid to be permitted to use anything but the safety scissors. After all, if they were worthy of creating things they'd be C greybeards.
- scarface74 8y agoI haven’t done any desktop GUI development since VB6 and I only used .Net Windows Forms for Windows Mobile up until 2011. What is the modern drag and drop method to build GUIs on Windows?
- AnIdiotOnTheNet 8y ago> provide a better experience for users and their machines Ah, but you see, the modern developer does not care about the user experience. "Developer time is worth more than user time", "move fast and break things", etc. Users are the cattle we feed ads to and farm for salable data.
- Spivak 8y agoThe modern developer very much cares about user experience which is why the gold standard right now is pixel perfect feature perfect cross platform apps for web mobile and desktop.