Java Clean Code Tutorial #3 - Builder Design Pattern Example
Episode 3 of the free Java Clean Code Training Series.
So what is the builder pattern and why is it needed?
The Gang of Four Builder pattern is an object creation software design pattern.
It solves many problems and challenges such as the never-ending constructor parameter anti-pattern.
Benefits of the java builder pattern:
- No need to pass Null objects into the constructor.
- You don’t need to guess or try to work out which constructor parameter maps to a certain object’s field. Error prone!
- Easily made into an Immutable class. You can now share the object safely between threads or in a multi-threaded environment as you don’t need to worry about mutation of variable state.
- Provides control over object construction steps and provides meaningful semantic method names.
- Increases the use-ability, maintainability and readability of code when creating objects.
Software is written once and read hundreds of times. So let’s make our fellow developers life easier.
Why clean code?
Simple. Clean code allows us to confidently make changes and deliver more features quickly to our customers.
Don’t forget to subscribe for your regular dose of Java Tutorials!
STOP THE ROT.
Till episode 4,
Philip
Видео Java Clean Code Tutorial #3 - Builder Design Pattern Example канала Philip Starritt
So what is the builder pattern and why is it needed?
The Gang of Four Builder pattern is an object creation software design pattern.
It solves many problems and challenges such as the never-ending constructor parameter anti-pattern.
Benefits of the java builder pattern:
- No need to pass Null objects into the constructor.
- You don’t need to guess or try to work out which constructor parameter maps to a certain object’s field. Error prone!
- Easily made into an Immutable class. You can now share the object safely between threads or in a multi-threaded environment as you don’t need to worry about mutation of variable state.
- Provides control over object construction steps and provides meaningful semantic method names.
- Increases the use-ability, maintainability and readability of code when creating objects.
Software is written once and read hundreds of times. So let’s make our fellow developers life easier.
Why clean code?
Simple. Clean code allows us to confidently make changes and deliver more features quickly to our customers.
Don’t forget to subscribe for your regular dose of Java Tutorials!
STOP THE ROT.
Till episode 4,
Philip
Видео Java Clean Code Tutorial #3 - Builder Design Pattern Example канала Philip Starritt
Показать
Комментарии отсутствуют
Информация о видео
Другие видео канала
![Java Clean Code Tutorial #4 - Avoid Boolean Parameters (Flag Arguments)](https://i.ytimg.com/vi/fiiEr0h9ChQ/default.jpg)
![Builder Pattern - Design Patterns](https://i.ytimg.com/vi/M7Xi1yO_s8E/default.jpg)
![Builder Pattern - Design Patterns | Object Oriented Design | OOPs | Java](https://i.ytimg.com/vi/6Wi2XZeAf-Q/default.jpg)
![Java Clean Code Tutorial #1 - Eclipse Compiler Build Errors & Warnings Preferences](https://i.ytimg.com/vi/EHBXTQVrzPw/default.jpg)
![Java Clean Code Tutorial #2 - Static Analysis FindBugs Eclipse Plugin Setup](https://i.ytimg.com/vi/IvNC6-k5xT8/default.jpg)
![Strategy Pattern – Design Patterns (ep 1)](https://i.ytimg.com/vi/v9ejT8FO-7I/default.jpg)
![How to use the Builder Pattern in Java - 035](https://i.ytimg.com/vi/mFCk31FoUg4/default.jpg)
![Builder Design Pattern](https://i.ytimg.com/vi/9XnsOpjclUg/default.jpg)
![Builder Pattern - design patterns (ep 11)](https://i.ytimg.com/vi/Q7bHo1P0h_4/default.jpg)
![3 Tips To Write Clean Code (from an ex-Google software engineer)](https://i.ytimg.com/vi/HcijbAI4eB0/default.jpg)
![Clean Code with Java: Learn Simple Design, Refactoring & TDD](https://i.ytimg.com/vi/Y7StNOlRc5Q/default.jpg)
![Builder Design Pattern | Implementation and Disadvantages | Clean Code Series](https://i.ytimg.com/vi/YmEVYvELt28/default.jpg)
![Clean Code Tutorial: Clean Function with Java - Beginner Friendly](https://i.ytimg.com/vi/gAiIKpO8cPg/default.jpg)
![Implementing the Builder Design Pattern in Java (and refactoring with Lombok)](https://i.ytimg.com/vi/GnEsAt3q6RY/default.jpg)
![Builder Design Pattern in Java Theory](https://i.ytimg.com/vi/KbIdk5BRn0w/default.jpg)
![Apprendre le Java #20 Design Pattern - Fluent Pattern Builder](https://i.ytimg.com/vi/_vKn4ntUzWM/default.jpg)
![5 Design Patterns Every Engineer Should Know](https://i.ytimg.com/vi/FLmBqI3IKMA/default.jpg)
![Lombok @Builder Annotation - Builder Pattern](https://i.ytimg.com/vi/FPeOxVtpHDA/default.jpg)
![Use Builders... Cautiously - Effective Java, Item 2](https://i.ytimg.com/vi/2GMp8VuxZnw/default.jpg)
![Becoming a better developer by using the SOLID design principles by Katerina Trajchevska](https://i.ytimg.com/vi/rtmFCcjEgEw/default.jpg)