A Developer's Experience
Home Posts Articles Authors Wiki TIL Slashes Search About

Posts

Blog posts on tech, engineering, and more.

Type Gymnastics with Builders - Part 7 - Why bother?

Oct 13, 2025 scalabuildertypesseries

While the builder pattern is a powerful tool for creating complex objects in a type-safe manner, it is easy to discard it given its complexity and boilerplate. This post details the situations where …

Read more →

Type Gymnastics with Builders - Part 6 - Can You Hold This For Me?

Oct 13, 2025 scalabuildertypesseries

This post takes the ideas from previous posts to get rid of some boilerplate, and concluding the “how” portion of the series.

Read more →

Type Gymnastics with Builders - Part 5 - Order, Order, I Say!

Oct 13, 2025 scalabuildertypesseries

This post adds type-level ordering to the builder, enforcing when fields can be set. It introduces explicit constraints on configuration order: host/port first, maxConnections/connectionTimeout before …

Read more →

Type Gymnastics with Builders - Part 4 - Flexibility

Oct 13, 2025 scalabuildertypesseries

This post makes the builder API more flexible by allowing incremental health check additions without losing type safety. We will see how withHealthChecks is changed from replace to append, so calls …

Read more →

Type Gymnastics with Builders - Part 3 - Errors Are UX Too

Oct 13, 2025 scalabuildertypesseries

This post talks about making the error messages cleaner and clearer. You might want to read this one since it involves typeclasses. 😉

Read more →
  • ««
  • «
  • 1
  • 2
  • 3
  • 4
  • 5
  • »
  • »»
RSS-color Created with Sketch.

© 2026 A Developer's Experience.