3 ms·
I'm really going to have to ask for an example of this. Other than SWT I've not seen it done well.
by pjc50 9y ago
I'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.
- IncRnd 9y agoYou misunderstand. Even forgetting the UI, the Office programs are different between platforms. One know this, because functionality differs between platforms.
- jenscow 9y agoTwo very mature and high revenue products.
- pjmlp 9y agoSure, but once upon a time developed from scratch, always supported PC, Mac and some UNIX variations, and the Web wasn't even a thing.