SupportWriter space ↗
REFERENCE LIBRARY

References from other publishers

Republished articles with source attribution. This collection is separate from Diary Coding’s original guides and does not display ads.

Read original guides → · Editorial policy

FOR YOUR CURIOSITY

Latest notes.

SPRING / NOTES</>↗
Spring01 Jul 2026

How do I use dependency injection in Spring?

In Spring, Dependency Injection (DI) means you let the Spring container create and provide the objects your class depends on, instead of manually creating them with new. The recommended approach in modern Spring is constructor injection. 1. Define a dependency as a Spring bean import org.springframework.stereotype.Component; @Component public class EmailSender { public void send(String message) […]

Wayan · 4 min read
SPRING / NOTES</>↗
Spring01 Jul 2026

How do I understand what the Spring Framework actually does?

The easiest way to understand what the Spring Framework actually does is to stop thinking of it as “magic” and start thinking of it as infrastructure code that your application delegates to. At a high level: Spring creates objects, wires them together, manages their lifecycle, and adds common behavior around them so you do not […]

Wayan · 7 min read
KOTLIN / NOTES</>↗
Kotlin01 Jul 2026

How do I avoid nullable types in complex data models using sealed classes and Result wrappers?

You can avoid “nullable everywhere” in complex data models by making missing/invalid/loading/error states explicit in the type system instead of representing them with null. In Kotlin, the usual tools are: Sealed classes/interfaces for domain states and variants. Result<T>-style wrappers for success/failure. Non-nullable data classes for valid, fully constructed domain objects. Mapping layers from nullable external […]

Wayan · 8 min read
✳

Knowledge grows when shared.

Stay curious. There is always something new to learn.

Explore notes ↗
Putu Adi Guna Permana
ABOUT THE AUTHOR

Dr (C). Ir. Putu Adi Guna Permana, S.Kom., M.Kom., IPM., ASEAN Eng.

Writer and founder of Diary Coding — sharing notes, tutorials, and experiences about programming for anyone who wants to keep learning.