5 ms·
Cross-platform GUI development has always been fraught, though. I don't blame people for picking an existing, working (mostly) technology that guarantees (mostl
by pjc50 9y ago
Cross-platform GUI development has always been fraught, though. I don't blame people for picking an existing, working (mostly) technology that guarantees (mostly) identical results across lots of platforms.
- Aaargh20318 9y agoCross-platform GUI development in general is a dumb idea. The user chose a specific platform and expect applications to follow that platforms UX guidelines. Building a cross-platform app is basically saying you don't give a fuck about your customers. It's an insult to your users.
- pjc50 9y agoSo you're saying software OEMs need to pick one of Windows or MacOS and not support any other platforms?
- pjmlp 9y agoNo, you create a proper abstraction layer that maps to native plaform elements. For example, IFileDialog maps to a Cocoa dialog on macOS, file picker on UWP, open dialog on Win32, document selector on Android and so on. Yes, it takes some initial effort, but it only needs to be done once.
- Klathmon 9y agoThat's easy to say for a file picker on desktop OSs, but what happens when you need to layout a page on all 3 desktop plus Android and iOS? Do you need to design 5 designs that include 5 different buttons, 5 ways of navigating through the app, 5 different sets of icons, 5 different styles of animation, etc... Hell even with a file picker, what happens when you use it on a platform that doesn't really have the concept of "files" like iOS or up to recently Android (at least in what is normally exposed to the user) Roll in various versions of each OS and you are up to needing 10+ ways of doing most things. How are you supposed to create anything even remotely complicated?
- pfooti 9y agoI agree; if you build a system that completely covers specifying layouts for all widget needs and a DSL that handles wiring views into models, for all operating systems and device formfactors, you will have invented HTML, CSS, and JavaScript, with the DOM api and a browser as the default interface.
- pjmlp 9y agoNot at all, because HTML, CSS and JavaScript are a poor man's UI with the lowest common denominator of OS features.
- pfooti 9y ago"lowest common denominator" is kind of a feature, when it comes to something used on a ton of different platforms. The rest can be built up out of those. I'm not saying that html et. al are amazing, just that I am doubtful something could be built that spans such a large vector space, so to speak, so expressively, without being subject to the same complaints.
- kodablah 9y ago> lowest common denominator of OS features Not sure I agree here. There are a great many browser features (e.g. web speech api for recognition and tts, webrtc, etc) that are just not lowest common denominator. Even if we stick with UI only, features like cross platform vector graphics are not trivial. Of course some libs like qt abstract it, but you're back to your same complaint except it's qml, css, and js (or often times worse, c++ if using widgets)
- pjmlp 9y agoHow do you think we used to create portable software across 8 bit and 16 bit platforms? Most of it actually written in Assembly.
- Klathmon 9y agoCode is a different beast than UI. Magnitudes easier to shim and support multiple architectures.
- pjc50 9y agoI'm really going to have to ask for an example of this. Other than SWT I've not seen it done well.
- pjmlp 9y agoOffice, Photoshop.
- pjc50 9y agoOffice isn't a good example: it used to be the case (may have changed) that WinWord and MacWord were entirely separate codebases. https://books.google.co.uk/books?id=vPvhzDqZlaAC&pg=PA174&lpg=PA174&dq=excel+for+mac+separate+codebase&source=bl&ots=cn-bPeP6Ue&sig=L-PEKNZ8WcvtCRsZr2-8_FsUTPQ&hl=en&sa=X&ved=0ahUKEwipkL63stXXAhUKVRoKHfhTDbwQ6AEIKDAA#v=onepage&q=excel%20for%20mac%20separate%20codebase&f=false https://books.google.co.uk/books?id=vPvhzDqZlaAC&pg=PA174&lp... (Spolsky)
- pjmlp 9y agoNot anymore. See the Office related talks at CppCon 2015 about how to write portable code using what Microsoft calls the hamburger model, as part of their migration to a common codebase. Basic a shim layer for low level OS APIs, the middle layer with the majority of code and another shim layer for UI APIs.
- IncRnd 9y agoOffice is hardly the same on multiple platforms. There may be shared code, but from UI and function-based perspectives there are big differences.
- pjmlp 9y agoWhich is exactly my point, the application architecture has to be done in proper modular layers to separate UI specific code that makes use of the UI elements that provide a good UX, from the common code. Microsoft calls it hamburger design, and has held three talks at CppCon 2015 presenting how they unified their codebase across all platforms. They are available on YouTube.
- baddox 9y agoWeb browsers like the one used by Electron do this as well. The styles of buttons, inputs, etc. vary from platform to platform. They can be overridden, of course, but that’s true of any native GUI framework as well.
- golangnews 9y agoYes, it takes some initial effort, but it only needs to be done once. It needs to be redone for each platform every few years as apis and visual styles change. Cross platform libraries are notoriously hard and usually end up in the uncanny valley (qt, swing etc). Platform vendors of course any devs to buy into just one platform, they want and need the lock-in. Using web UI is a way to sidestep that.
- Aaargh20318 9y agoNo, I suggest they build an native app for each platform.
- jrimbault 9y agoI'll venture a guess, most devs, most applications, do not exist to give their users delightfully crafted UI and UX with handmade animations. Most applications are really crude in their design, and do not target large international hip demographics.
- Aaargh20318 9y agoAs a user of those apps, that’s a clear indication they are probably shit. If you didn’t even take the effort to get your interface with your user (read: customer) right, how lazy did you get with the parts of the app I can’t see ?
- Turing_Machine 9y ago> The user chose a specific platform and expect applications to follow that platforms UX guidelines. 1) Most users don't actually give a crap about "UX guidelines". I promise. 2) "UX guidelines" are, in my opinion, why our user interfaces continue to suck.
- Glyptodon 9y ago...or it's saying you have limited resources and want to maximize what you do with them.
- Aaargh20318 9y agoThe UI of your app is the one highly visible point where 99,999% of the interaction with your customers takes place. If you can't be bothered to have a good UI, how shit is the stuff I can't see as a user ? A bad UI is a huge smell. In my experience there is a 1:1 relationship between the quality of the UI and the quality of the software as a whole.
- hawski 9y agoWas it ever really hard to make cross postform applications that look identical on all platforms? If application looks identical on every platform is it really cross platform?