Max Wells’ Post

The most expensive line of code you ever wrote was in Java. It was 2am. The service was down. Your phone vibrating on the nightstand. NullPointerException at line 247. You trace it back. The method returned null instead of a value. The exception you didn't catch bubbled up silently. You'd shipped this 3 weeks ago. It had been waiting for exactly the right conditions to break. You fixed it. You moved on. You called it normal. That's the part that should bother you. You called it normal. In Rust, that code doesn't compile. The compiler catches it before you run it — before you test it, before you ship it, before the 2am call. "This can be null. Handle it." "This can fail. Handle it." "This value could be missing. Handle it." Every edge case you've ever debugged at midnight — Rust surfaces it before you hit Save. One language lets you ship the question. The other makes you answer it first. Follow me. #java #rust #programming

  • text

Don't blame Java for your mistake 😅

You blame programming languages for lack of concept , planning and test automation ?

As much as I appreciate your posts about Rust, modern Java is wrong target for comparison.

NPE's are definitely the most common errors in Java, however, good devs look for and predict when and where they might occur, and then plan for them and fix the code proactively. In a high availability situation your code should survive an unexpected NPE, log an error, and continue running. If it ran for three weeks before crashing it most likely is an edge case anyways.

I literally don't know how one can focus and debug at 2am after a work day or several in a row, even more with kids to take care of every morning and evening.Where does one find the energy to deal with NPEs at night? ---- By the way, aren't ADA and Haskell such languages where if it compiles, it certainly works.

Marek Vrbka

Full Stack Rust • Agentic Development • AI Consultancy

1mo

This is a language pissing contest disguised as a war story.

I can't belive Rust is really this bad, that it needs such advertisement.

Like
Reply

How about that unwrap stuff

I wish unwrap didn't exist in rust.

Like
Reply
See more comments

To view or add a comment, sign in

Explore content categories