Tag

Builder

1 views collected around this technical thread.

Cognitive Technology Team
Cognitive Technology Team
Feb 26, 2025 · Backend Development

Understanding Lombok @Builder Default Value Issue and Its Solution

This article explains why Lombok's @Builder annotation ignores field default values in Java classes, demonstrates the issue with sample code, and shows how using @Builder.Default resolves the problem by generating static default methods in the compiled builder class.

AnnotationsBuilderDefaultValue
0 likes · 7 min read
Understanding Lombok @Builder Default Value Issue and Its Solution
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Jan 27, 2025 · Fundamentals

Master 7 Essential Java Design Patterns with Real-World Spring Boot Examples

This article introduces seven core design patterns—Singleton, Factory, Builder, Strategy, Observer, Proxy, and Template—explaining their purpose, typical use cases, and providing complete Java code examples that integrate with Spring Boot 3 and Java 21, helping developers write cleaner, more maintainable software.

BuilderFactoryObserver
0 likes · 20 min read
Master 7 Essential Java Design Patterns with Real-World Spring Boot Examples
Selected Java Interview Questions
Selected Java Interview Questions
Jul 31, 2024 · Backend Development

Resolving Lombok @Data and @Builder Conflict: Restoring the No‑Args Constructor

This article explains why combining Lombok's @Data and @Builder annotations can remove the automatically generated no‑args constructor, demonstrates the resulting compilation errors, and provides two practical solutions using @Tolerate or a combination of @RequiredArgsConstructor and @NoArgsConstructor, while also describing Lombok's annotation‑processing mechanism.

AnnotationsBuilderLombok
0 likes · 4 min read
Resolving Lombok @Data and @Builder Conflict: Restoring the No‑Args Constructor
Java Architect Essentials
Java Architect Essentials
Sep 29, 2023 · Backend Development

Why Lombok @Builder Is Discouraged and @Accessors Is a Better Alternative

The article explains the pitfalls of Lombok's @Builder annotation—such as loss of required‑parameter enforcement, mutable builders, and limited flexibility—and demonstrates how using @Accessors (or manually crafted fluent setters) provides a safer, more expressive way to construct Java objects.

AccessorsBackend DevelopmentBuilder
0 likes · 10 min read
Why Lombok @Builder Is Discouraged and @Accessors Is a Better Alternative
Code Ape Tech Column
Code Ape Tech Column
Sep 12, 2023 · Backend Development

Why You Should Stop Using Lombok’s @Builder and Prefer @Accessors

The article explains the pitfalls of Lombok’s @Builder annotation—such as loss of default values, mutable builders, and limited applicability—and demonstrates how using @Accessors with chainable setters provides a safer, more flexible alternative for Java backend development.

AccessorsBackend DevelopmentBuilder
0 likes · 10 min read
Why You Should Stop Using Lombok’s @Builder and Prefer @Accessors
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Aug 31, 2023 · Fundamentals

JavaScript Design Patterns: Factory Method, Abstract Factory, Singleton, Builder, Prototype and More

This article introduces JavaScript design patterns—covering creational, structural, and behavioral categories—and provides clear explanations and complete code examples for patterns such as Factory Method, Abstract Factory, Singleton, Builder, Prototype, Adapter, Decorator, Proxy, Facade, Bridge, Composite, Flyweight, Strategy, Template Method, Observer, Iterator, Chain of Responsibility, Command, Memento, State, Visitor, Mediator and Interpreter, helping developers write cleaner, more maintainable code.

BuilderFactory MethodJavaScript
0 likes · 35 min read
JavaScript Design Patterns: Factory Method, Abstract Factory, Singleton, Builder, Prototype and More
Test Development Learning Exchange
Test Development Learning Exchange
Jul 7, 2023 · Fundamentals

Common Design Patterns in Python

This article lists and briefly describes fifteen widely used design patterns in Python, including Singleton, Factory, Abstract Factory, Builder, Prototype, Adapter, Decorator, Proxy, Observer, Strategy, Template Method, Iterator, Chain of Responsibility, Command, and State patterns.

BuilderFactoryPython
0 likes · 4 min read
Common Design Patterns in Python
macrozheng
macrozheng
Dec 17, 2022 · Fundamentals

Master 9 Essential Design Patterns for Cleaner Java Code

This article explains nine widely used design patterns—Singleton, Builder, Factory, Strategy, Template Method, Chain of Responsibility, Proxy, Adapter, and Observer—detailing their concepts, typical use‑cases, and concrete Java code examples drawn from popular open‑source projects such as Spring, Dubbo, MyBatis and Guava.

BuilderFactoryObserver
0 likes · 27 min read
Master 9 Essential Design Patterns for Cleaner Java Code
Selected Java Interview Questions
Selected Java Interview Questions
Aug 28, 2022 · Backend Development

Using Lombok Annotations for ORM Entities, Builder, Wither, and Accessors in Java

This article explains how Lombok annotations such as @Data, @Builder, @Wither, and @Accessors can simplify Java bean creation for ORM entities, builder pattern utilities, wither-style object modification, and fluent accessor methods, while addressing common pitfalls like missing constructors and default values.

AccessorsBuilderLombok
0 likes · 10 min read
Using Lombok Annotations for ORM Entities, Builder, Wither, and Accessors in Java
Sohu Tech Products
Sohu Tech Products
Apr 27, 2022 · Backend Development

Design Patterns Used in the Austin Project: Chain of Responsibility, Template Method, Builder, Strategy, Producer‑Consumer, Singleton, and Proxy

This article explains how the Austin Java backend project applies several classic design patterns—including Chain of Responsibility, Template Method, Builder, Strategy, Producer‑Consumer, Singleton, and Proxy—detailing their benefits, drawbacks, and specific code locations for each pattern.

BuilderChain of Responsibilitybackend
0 likes · 6 min read
Design Patterns Used in the Austin Project: Chain of Responsibility, Template Method, Builder, Strategy, Producer‑Consumer, Singleton, and Proxy
IT Architects Alliance
IT Architects Alliance
Mar 28, 2022 · Fundamentals

A Humorous Introduction to 23 Classic Design Patterns

This article humorously explains 23 classic software design patterns—such as Factory Method, Builder, Abstract Factory, Prototype, Singleton, Adapter, Bridge, Composite, Decorator, Facade, Flyweight, Proxy, Chain of Responsibility, Command, Interpreter, Iterator, Mediator, Memento, Observer, State, Strategy, Template Method, and Visitor—using everyday dating analogies to illustrate their intent and structure.

BuilderFactory MethodObserver
0 likes · 19 min read
A Humorous Introduction to 23 Classic Design Patterns
Top Architect
Top Architect
Dec 29, 2021 · Backend Development

Detailed Guide to Lombok @Builder Annotation and Its Usage

This article provides a comprehensive tutorial on Lombok's @Builder annotation, covering basic usage, generated code details, @Singular collection handling, @Builder.Default defaults, toBuilder feature, and global configuration, with numerous Java code examples and explanations.

AnnotationsBuilderLombok
0 likes · 14 min read
Detailed Guide to Lombok @Builder Annotation and Its Usage
Sohu Tech Products
Sohu Tech Products
May 5, 2021 · Fundamentals

Common Design Patterns in Kotlin: Singleton, Factory, Builder, Prototype, Decorator, Strategy, Template Method, and Observer

This article introduces several classic design patterns—Singleton, Factory, Builder, Prototype, Decorator, Strategy, Template Method, and Observer—showing how they can be implemented concisely in Kotlin with code examples, while also explaining the underlying language features such as object declarations, companion objects, delegation, lazy initialization, and higher‑order functions.

BuilderFactoryKotlin
0 likes · 23 min read
Common Design Patterns in Kotlin: Singleton, Factory, Builder, Prototype, Decorator, Strategy, Template Method, and Observer
Architecture Digest
Architecture Digest
Mar 20, 2021 · Fundamentals

A Humorous Overview of 23 Classic Software Design Patterns

This article presents a playful yet informative walkthrough of twenty‑three classic software design patterns—Factory Method, Builder, Abstract Factory, Prototype, Singleton, Adapter, Bridge, Composite, Decorator, Facade, Flyweight, Proxy, Chain of Responsibility, Command, Interpreter, Iterator, Mediator, Memento, Observer, State, Strategy, Template Method and Visitor—using everyday analogies to illustrate their intent and structure.

BuilderFactory MethodObserver
0 likes · 18 min read
A Humorous Overview of 23 Classic Software Design Patterns
Java Captain
Java Captain
Mar 19, 2021 · Fundamentals

A Humorous Guide to 23 Software Design Patterns Using Dating Analogies

This article humorously explains 23 classic software design patterns—such as Factory Method, Builder, Abstract Factory, Prototype, Singleton, Adapter, Bridge, Composite, Decorator, Facade, Flyweight, Proxy, Chain of Responsibility, Command, Interpreter, Iterator, Mediator, Memento, Observer, State, Strategy, Template Method, and Visitor—by comparing each pattern to everyday dating scenarios.

BuilderFactory MethodObserver
0 likes · 18 min read
A Humorous Guide to 23 Software Design Patterns Using Dating Analogies
Selected Java Interview Questions
Selected Java Interview Questions
May 17, 2020 · Backend Development

Applying Strategy, Factory Method, and Builder Patterns in Spring for Reward Distribution

This article explains how to implement the Strategy, Factory Method, and Builder design patterns within a Spring application to decouple reward‑distribution logic, showing interface definitions, concrete implementations, a factory for dynamic bean selection, and a prototype‑scoped builder for request construction.

BuilderFactory MethodSpring
0 likes · 12 min read
Applying Strategy, Factory Method, and Builder Patterns in Spring for Reward Distribution
Architecture Digest
Architecture Digest
Jan 11, 2020 · Backend Development

Design Patterns Used in MyBatis Source Code

This article examines how MyBatis implements numerous classic design patterns—including Builder, Factory, Singleton, Proxy, Composite, Template Method, Adapter, Decorator, and Iterator—through its source code, explaining each pattern's role, related classes, and code examples to deepen developers' understanding of backend architecture.

BuilderFactoryIterator
0 likes · 17 min read
Design Patterns Used in MyBatis Source Code
Java Captain
Java Captain
Jul 20, 2019 · Backend Development

Performance Comparison of Java Constructors, Setters, and Builder Pattern

The article examines Java performance optimization by profiling constructor initialization, individual setter calls, and Lombok's builder pattern, showing that direct constructor usage consistently outperforms setters and builders, and provides practical coding tips for faster Java applications.

BuilderOptimizationPerformance
0 likes · 4 min read
Performance Comparison of Java Constructors, Setters, and Builder Pattern
Java Captain
Java Captain
Jan 5, 2018 · Fundamentals

Overview of Design Patterns, SOLID Principles, and Java Implementations

This article introduces the three major categories of design patterns, explains the six SOLID principles, and provides detailed Java code examples for creational patterns such as Factory Method, Abstract Factory, Singleton, Builder, and Prototype, illustrating their structure and usage.

BuilderCreationalFactory
0 likes · 14 min read
Overview of Design Patterns, SOLID Principles, and Java Implementations