Hacker News new | ask | show | jobs
by Maarten88 4519 days ago
> C++ is the one language that can work on both iOS and Android (and Windows phone?)

C# can do that too, using Xamarin.

1 comments

C++'s benefit is that it is common to all SDKs.

With Xamarin you must buy it, which may not be an option for hobby developers.

Xamarin does have a nice UI for working with Xcode/iOS, though I too fall on the cheap side of the fence. :)
I have played around with all three, Java, C++, C#.

For business I would surely advise Xamarin, as their prices are quite reasonable.

But if you are just hacking some stuff every now and then, it might not be worth it.

And on that case, there is also the possibility to compile Java to native code in iOS (RoboVM) or use any other language that either has an AOT compiler, or has a compiler available that compiles via C.

It is always a matter how much time vs money, one wants to invest.