James Williams
LinkedInMastodonGithub

Builders are addictive

Tags: Groovy

I think I read somewhere that every programming language has its weird concept that is confusing at first but makes you feel like a complete noob for not getting it earlier when you finally do. I think that concept for Groovy is the builder. I looked over the pertinent chapters in GINA, rereading, and it wasn't clicking. [It being how to create a builder.] So I started messing around with creating a builder for iText to create a really watered-down PDF builder. It finally clicked but whenever I see a class now, I'm always wondering in the back of my head if it can be optimized by using a builder.