Skip to content

Devoxx UK 2021: "How Should Java Developers Build Front-Ends for Web, Mobile & Desktop Today?"

Published on · Updated on · 5 min read
DevoXX UK logo

Share

Logistics

Conference

Devoxx UK was a 3-day conference where developers came together to explore the latest technology advancements and fascinating ideas, with some of the most inspiring speakers in our sector. Devoxx is a conference by developers, for developers.

I was excited to give a 15-minute session on “How Should Java Developers Build Front-Ends for Web, Mobile & Desktop Today?” on Monday, November 1, 2021, from 13:15–13:30. I looked at various frameworks from a Java developer’s perspective and suggested which one to use in three common scenarios.

Abstract

Users accessed applications on PCs and mobile devices at the time. There were two obvious ways to build front-ends for these devices: web applications and native applications. Cross-platform UI frameworks combined advantages from both approaches. Examples were Google’s Flutter, JavaFX, Facebook’s React Native, and Microsoft’s Xamarin. Important web application frameworks were Google’s Angular, Facebook’s React, and Vue.js. I looked at all these toolkits from the perspective of a Java developer and suggested which one to use in three common scenarios: new web application, new native iOS & Android apps, and what to do on the desktop when there was already a web application.

In 2019, I developed a mobile app prototype with Flutter and a progressive web application prototype. I then decided to use Flutter for native mobile apps in my SaaS start-up. Based on my experiences, I highlighted what was good about Flutter and what wasn’t.

Who Made Me the Expert?

I wasn’t affiliated with the projects I was discussing, nor was I selling books or training courses. I shared industry analysis and my project experiences to give options for the next project. I used 12 criteria for my evaluation. You could use my criteria, pick your own, or weigh my criteria differently than I did. But you needed to apply your criteria in your own environment and make your own choices.

Feedback

If you’d seen my talk, you could rate it. Here’s the feedback I got — you can view the second page with the arrow button in the bottom left.

Historical note (as of November 2021): The rating ran live via Mentimeter. That poll is no longer reachable today.

Summary

New Web Application

  • If you already used React, Angular, or Vue.js in your project, then you kept using them. Otherwise, you evaluated a migration — in many (most?) cases, such a migration didn’t make business sense.
  • If you started a new project or did migrate, you started with React first, Angular otherwise, and finally Vue.js.

New Native iOS & Android Apps

  • If you already used Flutter or React Native in your project, then you kept using them. Otherwise, you evaluated a migration — in many (most?) cases, such a migration didn’t make business sense.
  • If you started a new project or did migrate and had used React before, you started with React Native first and used Flutter otherwise.
  • If you started a new project or did migrate and had not used React, you started with Flutter first and used React Native otherwise.

Got a Web Application — Now What?

  • You kept your web application.
  • If the Flutter UI constraints fit your requirements, you evaluated Flutter for desktop applications.

Slides

The slides were available as a PDF (2.4 MB); the PDF version is available for download here.

Download slides (PDF)

The slides were also available in their original Keynote format (8.7 MB) — with less text than the PDF version, but animated and with a look behind the curtain of individual effects; that version isn’t available for download here.

Video

The talk is on YouTube:

Watch the video (YouTube)

Flutter Hot Reload

Flutter Hot Reload made code changes go live in the device/simulator immediately. It was the main reason why working with Flutter could be such fun! I mentioned it in the talk. Here is a video demonstrating it.

Watch the video (YouTube)

Mobile App Prototype with Flutter

Although it was a bit old by then, this was still a decent example of what a native Flutter app could look like. The app I was working on at the time wasn’t ready to share — sorry!

In the summer of 2019, I built native iOS/Android apps with Flutter to validate a business problem. It took me about six weeks, and it was my first Flutter project. I used Google’s cloud service Firebase for login, No-SQL database, and file storage. I also built my own back-end with Java, JHipster, Spring Boot, and Angular.

Watch the video (YouTube)

Progressive Web Application Prototype

At the end of 2019, I built a progressive web app (PWA) to speed up app development. A PWA uses the “Service Worker” in a browser to install on your device and cache data. That was about four weeks, and it was my first PWA. I used Google Workbox for this but developed my own offline storage solution in the browser. I built my back-end with Java, JHipster, Spring Boot, and Angular.

Watch the video (YouTube)

Historical note (as of November 2021): At the time, I was looking for a new project starting in October 2022, in Milton Keynes, London, or remote — as a contractor or fixed-term employee.

Additional Talk Information

Java Developer Wishlist for Front-Ends

Declarative UIs were the state-of-the-art in building user interfaces.

More in the Getting Started with Declarative UIs guide.

New Web Applications

As of November 2021, I ranked React fastest, for two reasons:

  • React had an experimental feature called Concurrent Mode. If it made it into production, it would improve data loading with multiple components on a page.
  • ReactDOMServer let us send HTML from the server to the browser before the React application was ready. The other frameworks may have had something similar.

New Native iOS & Android Apps

For a comparison between Flutter & React Native and a deep-dive on Flutter, see the slides from my JAX London 2021 talk, starting at slide 91: JAX London 2021 slides (PDF).

Get Started

Here are links & information so you can start building web applications with React.

Start with React

And here are links & information so you can start building mobile applications with Flutter.

Start with Flutter