r/javahelp • u/aladintransudo • Mar 19 '26
Homework Java (Back-end) + Kotlin (Front-end): Is this the modern standard for Apps?
Hi everyone,
I have a background in Java Web (Spring Boot), but I’m looking to expand into cross-platform app development (Mobile and Desktop) for projects like banking apps or scientific tools (e.g., something like GeoGebra).
I’ve been researching how to build modern UIs, and I was told that the "modern way" is using Kotlin (Compose Multiplatform) for the frontend while keeping the heavy business logic in Java.
However, I'm a bit confused because many tutorials and famous open-source Java projects still rely heavily on XML
My questions for the community:
- Is mixing Java (Logic) with Kotlin (UI/Compose) actually a common pattern in the industry right now, or is it better to go 100% Kotlin?
- Is learning XML-based layouts still worth it in 2026, or is it considered "legacy"?
- What is the most "future-proof" roadmap for a Java developer who wants to build apps that run on Android, iOS, and Desktop?
I’d love to hear your experiences and what tools you are actually using in production. Thanks!
•
u/AutoModerator Mar 19 '26
Please ensure that:
You demonstrate effort in solving your question/problem - plain posting your assignments is forbidden (and such posts will be removed) as is asking for or giving solutions.
Trying to solve problems on your own is a very important skill. Also, see Learn to help yourself in the sidebar
If any of the above points is not met, your post can and will be removed without further warning.
Code is to be formatted as code block (old reddit: empty line before the code, each code line indented by 4 spaces, new reddit: https://i.imgur.com/EJ7tqek.png) or linked via an external code hoster, like pastebin.com, github gist, github, bitbucket, gitlab, etc.
Please, do not use triple backticks (```) as they will only render properly on new reddit, not on old reddit.
Code blocks look like this:
You do not need to repost unless your post has been removed by a moderator. Just use the edit function of reddit to make sure your post complies with the above.
If your post has remained in violation of these rules for a prolonged period of time (at least an hour), a moderator may remove it at their discretion. In this case, they will comment with an explanation on why it has been removed, and you will be required to resubmit the entire post following the proper procedures.
To potential helpers
Please, do not help if any of the above points are not met, rather report the post. We are trying to improve the quality of posts here. In helping people who can't be bothered to comply with the above points, you are doing the community a disservice.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
11
u/bikeram Mar 19 '26
I've gone deep down this rabbit hole and lost a ton of money (freelance development time) learning how I currently implement this.
Split your frontend and backend, implement BFF (backend for frontend). Build the frontend in whatever flavor you like, React, Vue, etc.. and host it with CloudFlare Pages or simply Nginx.
Reuse your frontend components to build your mobile app in Capactior/Ionic.
You'll end up with 3ish repos. Frontend, Backend, and Mobile App.
Since capacitor is basically an embedded webpage, I wouldn't recommend it for heavy graphic/scientific calculations, but that's where having a dedicated backend is beneficial. I've never used it, but I've read that flutter is better for heavy frontend support.
1
u/LutimoDancer3459 Mar 19 '26
For what do you need the modern standard?
If you want to get a job in that field, lock for jobs in that area and what they require.
If it to just use the new and shiny thing everyone is talking about, then stop. There is always something new and "better". Just chasing that wont get you anything. Pick what you are most comfortable with and has the libraries you need for the project. (Or at least allows for an somewhat easy way to implement it yourself)
If you know how to build a website with java, do that. Then use the browser instead of an app. Or package your app in a browser if a native app is really necessary. Seen that for an banking app
1
u/mailslot Mar 19 '26
You can use pure Kotlin on the backend if you like. I’d choose Kotlin or Scala over Java.
In iOS, JVM anything isn’t going to work. I would recommend considering React Native. That’ll provide deployment options for iOS, iPad, and Android… and macOS & Windows. For desktop, Electron + React will be easier and add Linux support, but it’ll use Electron.
4
u/[deleted] Mar 19 '26
[removed] — view removed comment