r/AskProgramming • u/Green-Albatross-6463 • 6h ago
The best language to learn to create a cross-platform app
Hello everyone. Recently, I've had an idea for a cross-platform project that I want to create. However, I have no idea which programming language would be best to learn in order to develop my app.
By cross-platform, I mean compatibility with windows, macos, ios, Android, Apple Watch, and VR devices, not just phones and computers. The project itself is some sort of habit tracker.
The main goal is to have synchronisation between all devices.
Which language would fit the most under this idea?
Thanks!
3
Upvotes
2
u/MarsupialLeast145 6h ago
You might write API level components in golang which us good for this and then use other UI components as required for different platforms, i know some use flutter to this effect.
2
u/max123246 2h ago
Flutter probably?
2
u/WindwalkerrangerDM 6h ago
C# probably.
1
u/Necessary-Meeting-28 5h ago
Probably Typescript with WebView-based frameworks is the safest bet, although in efficiency terms native is better.
1
u/johnadamson_ja 4h ago
Check Qt qml with C++.
1
u/snapmotion 2h ago
AI
1
u/UhLittleLessDum 56m ago
If you really want your app to have one codebase, Typescript. It's the default UI language, and it can run in a webview pretty much everywhere. The only challenge you might come up with is VR, but even that hurdle isn't what it used to be.
1
u/joonazan 6h ago
You'll need some per-platform code and might require entirely new UI code for some platforms.
For the language you can pick many things. Most compiled languages will be possible but C, Rust and Zig are easy because they do not require a runtime. JVM probably works, so Java, Kotlin, Scala... JavaScript is probably supported somehow on most of those platforms as well.
-3
u/esqelle 6h ago
Yeah so it's not one language for all platforms. And for example, devices require different languages like Swift for iOS and Java/kotlin for Android.
But an all-purpose language would be python in my opinion. You need to find out what platform you want to deploy application to. A desktop app, a web app, a mobile app, or all. You will be coding these in multiple languages.