Skip to main content

Java

Mastering Maven: How to Create Your Own Custom Archetypes

Build a custom Maven archetype from scratch: create the descriptor, add Velocity-templated source files, install locally, generate a new Spring Boot project from it, and deploy to a team-shared repository. Step-by-step with working code.

A Practical Guide to Formatting ZonedDateTime in Java

Master formatting ZonedDateTime in Java with DateTimeFormatter: ISO formatters, custom ofPattern() strings, timezone conversion, parsing, and a full pattern reference table — with annotated code and sample output.

Java Comparable vs Comparator: The Definitive Guide with Examples

Understand the difference between Java Comparable and Comparator with side-by-side examples, a decision guide, and modern Java 8 Comparator chaining techniques. Covers naturalOrder, reversed(), thenComparing(), nullsFirst(), and common pitfalls.

Complete Guide to Logback RollingFileAppender

Master Logback RollingFileAppender with time-based, size-and-time, and fixed-window rolling policies. Includes production-ready logback.xml examples, Spring Boot integration, async logging, and a complete FAQ.

Implementing Vector Embeddings and Semantic Search in Pure Java

A complete implementation of a semantic search engine in pure Java — no external libraries. Covers TF-IDF vectorisation, cosine similarity, and document ranking by meaning. Explains the mathematics behind vector embeddings, how they power RAG and AI search systems, and provides a working query engine with annotated code and sample output. The same architecture used by Pinecone, Weaviate, and Elasticsearch — built from scratch.