JavaScript Design Patterns #10 - Builder Pattern

preview_player
Показать описание
The builder design pattern is a creational pattern that enables you to construct complex objects simply and more declaratively.

📚 Materials/References:

🌎 Find Me Here:

Рекомендации по теме
Комментарии
Автор

Very very awesome demonstration, straight to the point.thank you so much.

qlpwldn
Автор

I'm learning so much from your channel. I love the clear direct way you teach. I studied design patterns for awhile, and it never really clicked. You give a good clear use case that is easily understandable.

dmoney_thegreat
Автор

Thanks Patrick,
This is the easiest ever explanation

techbygul
Автор

could we have done all the getter and build methods directly on the Person function itself?

leolowe
Автор

📑Homework Challenge: See if you can implement this builder pattern using classes!

DevSage
Автор

I am watching this Under 51°c (123.8F) my brain almost boiled, I got this lesson very well and yes I understood all of it 🥵

aaf
Автор

Another excellent vid! Thanks so much! Do you have any content on Udemy?

kerrykreiter
Автор

Is there a reason why you can't just pass an object into your Person constructor like so?: let devsage = new Person({ name: "devsage", gender: "male", height: 100, weight: 20 })?

And then inside Person(option) this.weight = option.weight etc.

I wonder what's like a very good reason not to do this since I do this often in my own code.

canepaper
Автор

Is design pattern a must to implement?

aaf