3 ms·
Nice article, liked it. One more thing that should at least be mentioned so a newcomer could investigate further is the Builder pattern. People start using sett
by salex89 12y ago
Nice article, liked it. One more thing that should at least be mentioned so a newcomer could investigate further is the Builder pattern. People start using setters to set necessary dependencies (instead of using constructors) often when they have a lot of dependencies or when multiple different dependencies can be injected. This can be fatal when anyone besides the class creator is going to use it. So the builder pattern can really clear things up a bit and at least hide the messy things (if not making them clearer).