Writing

Blog

Short, focused explainers on the things that come up most often in the comments.

3 min read

Constructor Injection vs Field Injection

Why @Autowired on a field is the injection style you should stop using, and what to do instead.

  • Spring Boot
  • Java
  • Dependency injection
  • Testing

4 min read

What is a Spring Singleton?

Demystifying the default bean scope in Spring and how it differs from the Singleton Design Pattern.

  • Spring Boot
  • Java
  • Dependency injection
  • Concurrency

4 min read

Java Records Explained

A deep dive into Java Records and how they simplify data carrier classes.

  • Java
  • Core Java

4 min read

What is a Spring @Bean?

Understanding the core concept of Dependency Injection and Bean management in the Spring Framework.

  • Spring Boot
  • Java
  • Dependency injection
  • Configuration