Это видео недоступно.
Сожалеем об этом.

JavaScript Design Patterns #10 - Builder Pattern

Поделиться
HTML-код
  • Опубликовано: 7 июн 2022
  • The builder design pattern is a creational pattern that enables you to construct complex objects simply and more declaratively.
    📚 Materials/References:
    "Design Patterns Explained Simply" Ebook: payhip.com/b/MLtJ
    🌎 Find Me Here:
    Twitter: / realdevsage
    Ebooks: payhip.com/devsage
    Discord: / discord
    Merch: cottonbureau.com/people/devsage

Комментарии • 20

  • @DevSage
    @DevSage  2 года назад

    📕 "Design Patterns Explained Simply" Ebook: payhip.com/b/MLtJ
    💙 Twitter: twitter.com/realDevSage
    📙 Ebooks: payhip.com/devsage
    💥 Discord: discord.gg/BP8wPv6raA

  • @user-ql7pw7ld1n
    @user-ql7pw7ld1n 9 часов назад

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

  • @dmoney_thegreat
    @dmoney_thegreat 2 года назад +3

    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.

    • @DevSage
      @DevSage  2 года назад

      Glad you're able to find value!

  • @techbygul3303
    @techbygul3303 10 месяцев назад

    Thanks Patrick,
    This is the easiest ever explanation

  • @changl1198
    @changl1198 Год назад

    so clearly ,thanks!

  • @leolowe22
    @leolowe22 Год назад +3

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

  • @DevSage
    @DevSage  2 года назад +4

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

  • @aaf2011
    @aaf2011 2 года назад +1

    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 🥵

  • @kirillpavlovskii8342
    @kirillpavlovskii8342 Год назад +1

    Thanks

  • @kerrykreiter445
    @kerrykreiter445 Год назад +1

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

    • @DevSage
      @DevSage  Год назад +1

      Thank you Kerry. I don't have any courses specifically on Udemy. But I do have one course out there about how to recreate React.js from scratch:
      buildreactjs.io

  • @canepaper967
    @canepaper967 11 месяцев назад

    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.

  • @danielfrimu1996
    @danielfrimu1996 5 месяцев назад

    what theme are you using?

    • @DevSage
      @DevSage  2 месяца назад +1

      I think it's Synthwave '84

  • @aaf2011
    @aaf2011 2 года назад +1

    Is design pattern a must to implement?

    • @DevSage
      @DevSage  2 года назад +1

      No you don't *have* to use a design pattern in your code if it doesn't make sense. But they are helpful tools to help you get around common problems.

    • @DevSage
      @DevSage  2 года назад

      If you would have to go out of your way to use a design pattern in your code, you probably shouldn't use one. Patterns should make your job easier, not harder

  • @gregorychamekh8143
    @gregorychamekh8143 2 года назад