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

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
Insiders

Sign Up for our Newsletter

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

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 236
article thumbnail

Handling Flaky Unit Tests in Java

Uber Engineering

It warns software engineers of bugs in newly-implemented code and regressions in existing code, before it is merged. It also … The post Handling Flaky Unit Tests in Java appeared first on Uber Engineering Blog. Unit testing forms the bedrock of any Continuous Integration (CI) system.

Java 134
article thumbnail

Paying down tech debt: further learnings

The Pragmatic Engineer

Use tech debt payments to get into the flow and stay in it A good reason to add new comments to old code before you change it is to speed up a code review. When it takes me time to learn what code does, writing something down helps me remember what I figured out. Clarifying the code is even better.

article thumbnail

Data News — Week 25.02

Christophe Blefari

I have a 15% discount code if you're interested BLEF_AIProductDay25. Actually a modern Kaggle for Agentic AI, in the end it's a mechanism to lower human labor cost, because spoiler human will code to create these agents. Agents write python code to call tools and orchestrate other agents. Read the pdf version directly.

Data 130