Earlier quoted context omitted.
I tried using C++ and Objective C several years ago. Compilation was incredibly slow. Maybe when C++ modules finally arrive things will improve.
I take it you haven't tried Swift ;)
The not so hidden cost of sharing code between iOS and Android
31–40 of 335 posts
Re: The not so hidden cost of sharing code between iOS and Android
#32Earlier quoted context omitted.
I take it you haven't tried Swift ;)
Or (shudder) Scala. The only time I ever think “oh, this computer is a bit slow” of modern high end laptops is when it comes to Scala. I like the language, but the compiler is painful.
https://github.com/melling/scala
I actually like the language but stopped using it because it was so slow to compile. I hear that it has gotten better so I’ve been revisiting it.
Worksheets seem to help with development.
Re: The not so hidden cost of sharing code between iOS and Android
#33Re: The not so hidden cost of sharing code between iOS and Android
#34It baffles me that people think duplicating application code for every device is the way to go. Cross platform can be done correctly. I'm working on a stack that can natively target Windows, Mac, Linux, Android, iOS, MacOS, and Web. I couldn't imagine duplicating my code for each one of these devices. If something special needs to be done, I write an extension. I have a feeling posts like these get upvoted because de…
Re: The not so hidden cost of sharing code between iOS and Android
#35There's quite a few places that are still dealing with 4 codebases with varying degrees of shared code. Desktop, mobile web, native Android, native iOS. A shame, since many of them don't really need more than one responsive web codebase. Native apps do add value for many use cases, but not all.
They add value in all cases by not needing 200mb memory to run what would be a 20mb app for native. It's crazy how my phone runs perfectly fine on 2gb ram but my laptop is swapping with 16gb just because slack, vscode and whatever else election app is running.
Re: The not so hidden cost of sharing code between iOS and Android
#36Re: The not so hidden cost of sharing code between iOS and Android
#37Earlier quoted context omitted.
I take it you haven't tried Swift ;)
Or (shudder) Scala. The only time I ever think “oh, this computer is a bit slow” of modern high end laptops is when it comes to Scala. I like the language, but the compiler is painful.
Re: The not so hidden cost of sharing code between iOS and Android
#38I just launched (like, an hour ago: https://news.ycombinator.com/item?id=20700196 ) a cross-platform app that is almost all shared code. In my case, the solution is a web app with very lightweight native wrappers, and I'm quite happy with it. Obviously that wouldn't be the perfect fit for all apps, but none of Dropbox's "(not so) hidden costs" are relevant in my case, and I suspect many apps would be a good fit for t…
So you didn't launch an app at all; you launched a web page and submitted a single-site web browser to both app stores.
The things that are in the native wrappers are things that would be iOS-specific or Android-specific regardless of zero shared code or maximum shared code. In my case, the bulk of the app is shared -- everything that can be a common code base is a common code base.
According to GitHub's rough metrics, that's: Go 44.7% Dart 32.8% Java 7.1% JavaScript 6.9% Swift 6.6%
Re: The not so hidden cost of sharing code between iOS and Android
#39Earlier quoted context omitted.
They add value in all cases by not needing 200mb memory to run what would be a 20mb app for native. It's crazy how my phone runs perfectly fine on 2gb ram but my laptop is swapping with 16gb just because slack, vscode and whatever else election app is running.
I wasn't suggesting electron. Just a responsive website when that's sufficient.
Re: The not so hidden cost of sharing code between iOS and Android
#40It baffles me that people think duplicating application code for every device is the way to go. Cross platform can be done correctly. I'm working on a stack that can natively target Windows, Mac, Linux, Android, iOS, MacOS, and Web. I couldn't imagine duplicating my code for each one of these devices. If something special needs to be done, I write an extension. I have a feeling posts like these get upvoted because de…