4 ms·
Iron law of native desktop app development: Code to your platform's native GUI API -- no wrappers. Or your user base will notice and one-star that shit. You ha
by bitwize 14y ago
Iron law of native desktop app development: Code to your platform's native GUI API -- no wrappers. Or your user base will notice and one-star that shit.
You have less of an excuse on the Mac, which has literally the best GUI API in Cocoa that anyone has ever invented.
- shmerl 14y agoIron law of native desktop app development: Code to your platform's native GUI API -- no wrappers. Not so iron, if you have many platforms to manage. Usually it doesn't worth it to manage tons of separate toolkits for each platform, if there is no common abstraction at all. It's just too costly.
- bitwize 14y agoIf you don't mind your app looking like shit on all platforms, this is a viable strategy. A lot of specialist applications are like this: for example, I used to develop Qt-based GUI tools for robotics. If your app looking like shit will cost you significant sales -- as is the case for most productivity and design apps -- then yes, you have to port the GUI bits to each and every toolkit you're using.
- shmerl 14y agoNot true. Lot's of applications use generic abstractions and look good at the same time. Firefox, LibreOffice, VirtualBox and etc. If you don't know how to make good GUI using generic toolkits it doesn't mean it's not possible. Anyway, if you buy application for its "looks" - there is something seriously wrong already. It should look good, no doubt, but it should be functional first. >as is the case for most productivity and design apps Completely the opposite. They tend to provide completely custom, not native looking UIs, and therefore using cross platform toolkits for them only makes more sense.
- bitwize 14y agoNobody on Mac runs Firefox except to test with because it's so obviously non-native. And I wouldn't describe LibreOffice as "not looking (and running) like shit". Again, nobody on Mac actually uses it, and Windows has the real Office.
- shmerl 14y agoHehe, nobody? You must be using the crippled Safari I guess.
- klibertp 14y agoOh, yea. And Mac users are oh-so-great majority of desktop users... Please. I have nothing against Macs and when I'm rich enough I might even buy one, but I won't try to force the whole world to support my niche OS then. Or niche aesthetics for that matter.
- leephillips 14y agoWhat is Linux's native GUI API?
- shmerl 14y agoLinux doesn't dictate a native API for GUI. It de facto dictates the display server protocol though (currently being X11 and Wayland as the next generation). So any API would be built with that in mind. That said, most widely used APIs are Qt and GTK+.
- leephillips 14y agoThat's what I thought. So I'm having trouble understanding how I would apply bitwize's iron rule.
- shmerl 14y agoI strongly doubt he ever used his own rule while doing cross platform development. Or he'd know better.
- dsuth 14y agoEver noticed how Linux appspace tends to be a horrible mishmash of different GUI styles? That's why Mac users are nazis when it comes to obeying the Apple Human Interface Guidelines - the alternative is every developer does whatever he thinks looks good, and there's no consistency to your desktop. OS and UI consistency is a problem if not done well.