Strategy Pattern, Stateless or Stateful?

1. Overview Should strategy classes be stateless or stateful? This is a question related to API design and may have different meanings for differen...

Continue Reading

Comparing Builder Pattern and Fluent Interface

1. Overview The builder pattern and fluent interfaces seem similar at first glance because they both use method chaining. However, their motive and...

Continue Reading

Builder Pattern using Inheritance and Generics

1. Overview Previously, we've looked at the builder pattern in its general form. The implemented builder was a public static inner class declared i...

Continue Reading