Builder: Step by Step, Then Build

When a shipment is made with a constructor of nine arguments, half of them false or empty, nobody can read a call and a swapped pair compiles fine; a builder names each step, leaves out what you don't need, and checks the whole thing once, when you build.

By

Updated

Cheat sheet: Builder: Step by Step, Then Build
Category
Data Structures
Level
Apprentice
Tags
Builder Pattern, Code Smell, Long Parameter List, OOP