article thumbnail

Translating Java to Kotlin at Scale

Engineering at Meta

Meta has been on a years-long undertaking to translate our entire Android codebase from Java to Kotlin. We could simply decide to write all new code in Kotlin and leave our existing Java code as is, just as many other companies have. But, adoption doesnt necessarily entail translation. How did we get here?

Java 88
article thumbnail

How Meta is translating its Java codebase to Kotlin

Engineering at Meta

Meta has been working to shift its Android codebase from Java to Kotlin , a newer language for Android development that offers some key advantages over Java. Weve even open sourced various examples and utilities we used to in our migration to manipulate Kotlin code. Send us feedback on Instagram , Threads , or X.

Java 107
Insiders

Sign Up for our Newsletter

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

article thumbnail

Using JSpecify 1.0 to Tame Nulls in Java by Magnus Smith

Scott Logic

Introduction In the Java ecosystem, dealing with null values has always been a source of confusion and bugs. Nullability annotations like @Nullable and @NonNull are often used, but theyre not part of the core Java language, leading to inconsistencies across libraries and frameworks. myapp { requires java.

Java 52
article thumbnail

Java vs Python for Data Science in 2025-What's your choice?

ProjectPro

Why do data scientists prefer Python over Java? Java vs Python for Data Science- Which is better? Which has a better future: Python or Java in 2023? This blog aims to answer all questions on how Java vs Python compare for data science and which should be the programming language of your choice for doing data science in 2023.

Java 53
article thumbnail

Developing a Java plugin that automatically fixes code

Picnic Engineering

Building and extending a Java plugin that integrates directly with the compiler comes with some difficulties, and additionally, we’ll discuss some challenges that come with developing and maintaining an open source plugin within the Java ecosystem. The turning point in our journey came during a routine code review.

Java 40
article thumbnail

The Ultimate Guide to Java Virtual Threads

Rock the JVM

Riccardo is a proud alumnus of Rock the JVM, now a senior engineer working on critical systems written in Java, Scala and Kotlin. Version 19 of Java came at the end of 2022, bringing us a lot of exciting stuff. First, we need to use a version of Java that is at least 19. Another tour de force by Riccardo Cardin. getLogger ( App.

Java 145
article thumbnail

Code Review on Printed Paper: an Excerpt from the Twitoons Comic Book

The Pragmatic Engineer

Today’s newsletter closes with a full chapter from this book, visualizing when Elon Musk demanded all Twitter software engineers print out their code on paper (!!) and report for code review. Code review on printed paper: an excerpt from the Twitoons book A year ago, the end of October 2022 was a very turbulent time at Twitter.

Coding 231