bit1.uk

Java and DevOps; using Kubernetes, Terraform, and Spring

Latest writing

Anatomy of a Non-Anemic Spring Application

Domain-Driven Design (DDD) helps manage complex business logic in Spring Boot applications by enforcing a clear separation between the domain model (business rules) and the infrastructure layer (data persistence). But what does a non-anemic domain model look like?

Read post

Six Ways to Map One-to-One Relationships in Spring JPA

For a seemingly straightforward JPA annotation, @OneToOne relationships can be mapped in a surprising number of ways. The problem is not choosing a mapping — it’s understanding the trade-offs between them. I want to explore some[1] variants of these mappings using a...

Read post

Component directives in AngularJS 1.3 - Transclusion

Transclusion is the process of extracting a collection of DOM element from one part of the DOM and copying them to another part of the DOM, while maintaining their connection to the original AngularJS scope from where they were taken. ~ Angular...

Read post

Component Directives in AngularJS 1.3 - Fundamentals

With Angular directives we can build custom web components that ‘extend’ HTML to the needs of our application, or add completely new functionality using a familiar HTML-like syntax. These ‘component directives’ take the script and HTML that constitute the component, and isolate...

Read post

Mapping DDD Value Objects using JPA - Part 2

Tracking the identity of ENTITIES is essential, but attaching identity to other objects can hurt system performance, add analytical work, and muddle the model by making all objects look the same. ~ Eric Evans 2003

Read post

Creating a page-centric site using Jekyll and GitHub Pages

Jekyll is the ‘blog aware’ static site generator powering GitHub Pages. It takes Liquid templates, static assets (like CSS and JavaScript), and markdown documents, and outputs a site. While Jekyll excells at creating blog-centric static sites, its not so clear from the...

Read post