General statistics
List of Youtube channels
Youtube commenter search
Distinguished comments
About
Brent Jacobs
ThePrimeTime
comments
Comments by "Brent Jacobs" (@br3nto) on "8 Design Patterns | Prime Reacts" video.
6:31 Builder is just an wordy constructor. Sure it's fun to return self or this but you could just create a constructor that’s signature is in the shape of how things are needed. Pass in a new Bun With Sesame, and new Toppings with new Swiss Cheese and new Fish Patty. Works the same, but without this intermediary builder class.
1
6:54 singletons are awesome until you need two or you realise that client apps may have two or more contexts in which they are using your library, but you're forcing them to singletons. It's basically always a bad idea. Why bother going to extremes to make sure only ever one is created? Just create one instance. Super easy and scalable.
1