Immutable, the Builder Pattern vs Messy POJOs (or POCOs)
3 min readNov 15, 2018
Learn how these design patterns made famous by the GoF (Gang of Four) can help you achieve more reliable and cleaner code.
One of the 3 line of codes has a _bad bad_ bug. Can you tell?
1. new Phrase(“how are you?”, “en-US”);2. new Phrase()
.setText(“how are you?”)
.setLocale(“en-US”);