← all chapters

chapter 02 · 2023–2024

a language that doesn’t hide things

Second semester, a verbose language, and the first time the code and the machine felt like the same thing.

I started with Java in my second semester. At first it felt verbose, and I did not enjoy writing it.

I got used to it. After some time with Python and JavaScript I liked Java more, and the reason was not the syntax.

Java is a balanced language. With C++ I would be the one managing memory. With Python or JavaScript I am often guessing at what happens after I press run. Java sits between them. If I write a stream pipeline, I can read it and say what each stage does to the value going through it: where it is converted, where it is filtered, where it is collected. I am not guessing.

The architecture helped as well. JDK, JRE, JVM: the source, the libraries, and the machine that runs it. Once I could see where my code stopped and the runtime started, a lot of things stopped being magic.

Data structures came next, in the third semester. Then Spring Boot, which took longer than Java did.

Spring Boot has a steep curve because it hands you a great deal before you understand any of it. Beans. The application context. Dependency injection. Inversion of control. For a while I could use them without being able to say what they were for.

What made it click was following a single bean from its definition to the moment something asks for it and receives it. The container builds the graph. I describe the nodes.

That is the arc of those two years. Not the language or the framework, but the fact that when I write Java, the code in front of me and the thing that runs are close to the same.