Java fundamentals
- java-fundamentals
Use Optional as a Clear Absence Contract
Learn to use Optional to signal potential absence and manage expensive fallbacks using lazy evaluation.
Read the article - java-fundamentals
Use the Observer Pattern When Notifications Need Subscribers
A deep dive into managing local subscribers, lifecycle leaks, and failure handling in a desktop music player scenario.
Read the article - java-fundamentals
Java Type Identity Depends on Packages and Class Loaders
Explaining why classes with identical names are distinct types and how to handle boundary-safe mapping.
Read the article - java-fundamentals
Checked and Unchecked Exceptions Express Handling Contracts
A deep dive into Java exception hierarchies to distinguish between recoverable business failures and programming errors using an import tool scenario.
Read the article - java-fundamentals
Choose Loops, Streams and Method References by Readability
A technical comparison of iterative and functional styles in Java using sensor data processing to evaluate readability and side effects.
Read the article - java-fundamentals
Records and Immutable Value Objects: What Is Really Immutable?
An analysis of shallow vs deep immutability in Java records and classes, focusing on defensive copying of mutable collections.
Read the article - java-fundamentals
Objects, References and new in Java
A deep dive into heap allocation, reference aliasing, and the mechanics of pass-by-value in Java.
Read the article