No video

Builder Design Pattern explained in Detail with Code, Real Life Examples and Applications!

  ะ ะตั‚ า›ะฐั€ะฐะปะดั‹ 43,485

Keerti Purswani

Keerti Purswani

ะšาฏะฝ ะฑาฑั€ั‹ะฝ

I am back with Design Pattern Tutorial video! BUT this is the pattern that I personally used to find most confusing!
I have tried to break it down into very simple conversation, a LOT of effort has gone behind this one video but I hope it will help clear concepts.
Let me know your feedback, it helps me improve and create better content.
Please continue your love and support for tutorials, it will motivate content creators to teach more!
Check out ๐€๐ฅ๐ฆ๐š ๐๐ž๐ญ๐ญ๐ž๐ซโ€™s website to start your Data Science journey today (bit.ly/KEERTI25). Alma Betterโ€™s programs are carefully curated to provide the best-in-class experiences for all their students. The learning cost for any student is effectively ZERO. Alma Better also has a community for over 200+ hiring partners and professionals who are Senior Data Scientists, ML, and Engineers from top-notch universities. So tap on the link to check out all their courses and further details here:
bit.ly/KEERTI25
You can get ๐ƒ๐ˆ๐’๐‚๐Ž๐”๐๐“๐’ using code "KEERTI" -
โžก๏ธ On ๐‚๐จ๐๐ข๐ง๐  ๐๐ข๐ง๐ฃ๐š๐ฌ - bit.ly/CodingN...
โžก๏ธ On ๐ˆ๐ง๐ญ๐ž๐ซ๐ฏ๐ข๐ž๐ฐ๐‘๐ž๐š๐๐ฒ - get.interviewr...
โžก๏ธ On ๐„๐๐ฎ๐œ๐š๐ญ๐ข๐ฏ๐ž - educative.io/ke...
โžก๏ธ On all ๐†๐ž๐ž๐ค๐ฌ๐…๐จ๐ซ๐†๐ž๐ž๐ค๐ฌ paid courses - practice.geeks...
Please ๐ฌ๐ฎ๐›๐ฌ๐œ๐ซ๐ข๐›๐ž here - / keertipurswani
You can also connect with me on-
๐ˆ๐ง๐ฌ๐ญ๐š๐ ๐ซ๐š๐ฆ (for not so professional, chill side of my life) - www.instagram....
๐“๐ž๐ฅ๐ž๐ ๐ซ๐š๐ฆ Channel - t.me/keertipur...
๐“๐ฐ๐ข๐ญ๐ญ๐ž๐ซ - Ke...
๐‹๐ข๐ง๐ค๐ž๐๐ˆ๐ง - / keertipurswani
๐‚๐ก๐ž๐œ๐ค ๐จ๐ฎ๐ญ ๐ญ๐ก๐ž๐ฌ๐ž ๐ฉ๐ฅ๐š๐ฒ๐ฅ๐ข๐ฌ๐ญ๐ฌ-
๐Œ๐จ๐œ๐ค ๐ˆ๐ง๐ญ๐ž๐ซ๐ฏ๐ข๐ž๐ฐ๐ฌ - โ€ข Mock Coding Interview ...
๐ƒ๐ž๐ฌ๐ข๐ ๐ง ๐๐š๐ญ๐ญ๐ž๐ซ๐ง๐ฌ -
โ€ข Intro to Design Patter...
๐ƒ๐’๐€ - โ€ข Median of 2 Sorted Arr...
๐ƒ๐ฒ๐ง๐š๐ฆ๐ข๐œ ๐๐ซ๐จ๐ ๐ซ๐š๐ฆ๐ฆ๐ข๐ง๐  - โ€ข Burst Balloon Problem ...
๐‡๐จ๐ง๐ž๐ฌ๐ญ ๐‚๐จ๐ง๐ฏ๐ž๐ซ๐ฌ๐š๐ญ๐ข๐จ๐ง๐ฌ -
โ€ข Meet Hiring Manager at...
๐‚++ - โ€ข VTable & VPointers - V...
๐๐š๐ฌ๐ข๐œ๐ฌ ๐จ๐Ÿ ๐ˆ๐ง๐ฏ๐ž๐ฌ๐ญ๐ฆ๐ž๐ง๐ญ๐ฌ - โ€ข What are IPOs? How to ...
๐‹๐ข๐Ÿ๐ž ๐š๐ญ ๐ˆ๐ง๐ญ๐ฎ๐ข๐ญ - โ€ข Meet my Manager at Int...
๐’๐ก๐จ๐ซ๐ญ๐ฌ - โ€ข Floor, Ceil use for Pr...
๐‚++ ๐’๐“๐‹ - โ€ข What is C++ STL? Why d...
๐“๐ซ๐ž๐ž๐ฌ & ๐†๐ซ๐š๐ฉ๐ก๐ฌ - โ€ข BFS, DFS|Explanation w...
๐–๐ข๐ญ๐ก ๐๐š๐ฉ๐š - โ€ข Explaining OOPs concep...
๐’๐ฒ๐ฌ๐ญ๐ž๐ฆ ๐ƒ๐ž๐ฌ๐ข๐ ๐ง - โ€ข Factory Design Pattern...
๐๐š๐ข๐ง๐ญ๐ข๐ง๐ ๐ฌ - โ€ข Wall Art | SwitchBoard...
๐•๐ฅ๐จ๐ ๐ฌ - โ€ข Best Ladakh Bike Trip ...
The video contains following parts-
0:00-3:15 - Intro with examples of applications
3:15-4:15 - AlmaBetter Promotion
4:15-7:25 - UML Diagram explained in detail
7:25-9:13 - Product Class Code
9:13-12:35 - Builder Class Code
12:35-15:40 - Concrete Builder Classes Code
15:40-20:00 - Director Class Code
20:00-23:00 - Client Code with Output
23:00-24:15 - Conclusion
#designpattern #systemdesign #code

ะŸั–ะบั–ั€ะปะตั€: 49
@KeertiPurswani
@KeertiPurswani 2 ะถั‹ะป ะฑาฑั€ั‹ะฝ
Check out ๐€๐ฅ๐ฆ๐š ๐๐ž๐ญ๐ญ๐ž๐ซโ€™s website to start your Data Science journey today (bit.ly/KEERTI25). Alma Betterโ€™s programs are carefully curated to provide the best-in-class experiences for all their students. The learning cost for any student is effectively ZERO. Alma Better also has a community for over 200+ hiring partners and professionals who are Senior Data Scientists, ML, and Engineers from top-notch universities. So tap on the link to check out all their courses and further details here: bit.ly/KEERTI25
@pearwatch1358
@pearwatch1358 2 ะถั‹ะป ะฑาฑั€ั‹ะฝ
you can improve it a bit by returning the instance in each build function. this way it's possible to chain calls: desktopBuilder->buildX->buildY->buildZ->getDesktop()
@adityatripathi1904
@adityatripathi1904 ะ–ั‹ะป ะฑาฑั€ั‹ะฝ
Actually thats an essential part of builder pattern in functional programming. That way we can create a โ€œchainโ€ for object generation through deserialisation.
@anubhavanand2432
@anubhavanand2432 ะ–ั‹ะป ะฑาฑั€ั‹ะฝ
I have one question, why do we need builder if we have setters for all attributes in java class?
@niwanshumaheshwari4534
@niwanshumaheshwari4534 ะ–ั‹ะป ะฑาฑั€ั‹ะฝ
โ€‹@@anubhavanand2432I suppose without a builder pattern we have to call Object.setProperty1() Object.setProperty2() But with a builder pattern we can do that in chaining, like one after the other. I think it's more readable like this, not sure if I'm right though.
@suchismitagoswami5609
@suchismitagoswami5609 2 ะฐะน ะฑาฑั€ั‹ะฝ
Great Video. One improvement we can make here is to encourage immutability by avoiding setters on the actual object. The intent is to allow an object to be modified during its creation phase, but avoid modifying it once created!
@jenishadsouza907
@jenishadsouza907 2 ะถั‹ะป ะฑาฑั€ั‹ะฝ
Really helpful, please continue the series!
@KishankumarPatel
@KishankumarPatel ะ–ั‹ะป ะฑาฑั€ั‹ะฝ
Inplace of just directly explain what is builder class u can explain what would be the problem we face if we don't use it. Then it ll give better understanding of it. Over all it is a good video ๐Ÿ‘
@ai4407
@ai4407 ะ–ั‹ะป ะฑาฑั€ั‹ะฝ
Hi, Please expand your series with other design pattern, there is a more than 7 design pattern. It would be grate if you do this for us.
@dipakingle6629
@dipakingle6629 2 ะถั‹ะป ะฑาฑั€ั‹ะฝ
Really Helpful video, Please keep posting series for patterns.
@THEGAMER-cc2eq
@THEGAMER-cc2eq 6 ะฐะน ะฑาฑั€ั‹ะฝ
Your voice is very attractive
@ritikjain24
@ritikjain24 6 ะบาฏะฝ ะฑาฑั€ั‹ะฝ
Doesn't this pattern have a similar problem for which we used the factory pattern? For every new type of desktop we have to create new files and separate methods for building components. Do people actually use this? I feel it must be used in combination with the factory design pattern to handle the creation of different parts.
@nareshsattineni3545
@nareshsattineni3545 2 ะถั‹ะป ะฑาฑั€ั‹ะฝ
Great video Please continue the Series.It was very helpful
@pkpanda3047
@pkpanda3047 ะ–ั‹ะป ะฑาฑั€ั‹ะฝ
Thank you for the videos. Can you please upload your codes in GIT and provide the accesss to play around the code for better understanding.
@iamnoob7593
@iamnoob7593 2 ะถั‹ะป ะฑาฑั€ั‹ะฝ
Thanks Keerti , A very good video on Builder pattern .
@souvikmukherjee2404
@souvikmukherjee2404 2 ะถั‹ะป ะฑาฑั€ั‹ะฝ
Thank You Keerti for this video, it is really helpful
@srivastavaprakharsunil9732
@srivastavaprakharsunil9732 ะ–ั‹ะป ะฑาฑั€ั‹ะฝ
These vids i am ready to pay for !!!
@umeshsurve8747
@umeshsurve8747 10 ะฐะน ะฑาฑั€ั‹ะฝ
Very good presentation madam thanks
@md.al-amin1650
@md.al-amin1650 2 ะถั‹ะป ะฑาฑั€ั‹ะฝ
Thanks. It was very helpful
@himanshuupreti4728
@himanshuupreti4728 8 ะฐะน ะฑาฑั€ั‹ะฝ
help me out for this question. Assume you are developing an API for a blogging platform using Node.js, Nestjs and GraphQL. The API has features like creating a new blog post, fetching all posts by a user, fetching single post details etc. One of the challenging requirements is to implement full text search functionality on blog posts i.e.. users should be able to search for specific keywords in the entire content of all blog posts. Given that MongoDB is your primary database, provide a detailed solution on how would you implement this requirement. Your answer should include steps from indexing data in MongoDB for text-based search to querying it using GraphQL.
@DaniiMouse8
@DaniiMouse8 ะ–ั‹ะป ะฑาฑั€ั‹ะฝ
Thank You!
@santhoshreddy1284
@santhoshreddy1284 2 ะถั‹ะป ะฑาฑั€ั‹ะฝ
can you please share the code path of all of your coding.
@hitengarg3167
@hitengarg3167 2 ะถั‹ะป ะฑาฑั€ั‹ะฝ
Nice Explaination๐Ÿ”ฅ๐Ÿ”ฅ
@learntocode8012
@learntocode8012 2 ะถั‹ะป ะฑาฑั€ั‹ะฝ
Awesome explanation
@anuraagkhandagle5130
@anuraagkhandagle5130 8 ะฐะน ะฑาฑั€ั‹ะฝ
Why can we not create 2 derived class directly from desktop (HP and Dell)? That would allow us to customise the building process. What is the rationale behind creating a builder class separately?
@gauravbagul7580
@gauravbagul7580 2 ะถั‹ะป ะฑาฑั€ั‹ะฝ
While building the object, can we have the DB calls to save the object parts into multiple tables? Because if we write the DB insertion code in the main code where director gives the final object, we may have to iterate object again
@AnuragKumar-cb5lr
@AnuragKumar-cb5lr 2 ะถั‹ะป ะฑาฑั€ั‹ะฝ
Thanks a lot! Please increase video frequency.
@ngneerin
@ngneerin 2 ะถั‹ะป ะฑาฑั€ั‹ะฝ
Builder pattern definition: Taking a simple task, making it complex, so that you as a developer can become obsolete quickly.
@gauravagnihotri4912
@gauravagnihotri4912 2 ะถั‹ะป ะฑาฑั€ั‹ะฝ
Hi, Thanks for this nice video, May I know, which tool do you use used for video editing, recording or PPT design?
@chaitanya5885
@chaitanya5885 2 ะถั‹ะป ะฑาฑั€ั‹ะฝ
Hi Keerti , please upload structural and behavioral patterns also
@joed8805
@joed8805 2 ะถั‹ะป ะฑาฑั€ั‹ะฝ
Nice, Can give an example of a real case scenario at the end.
@saoravsaha
@saoravsaha 2 ะถั‹ะป ะฑาฑั€ั‹ะฝ
One request, if you can kindly add equivalent code for JAVA too, especially for design pattern videos. It will help a lot. As usual, great video.
@Kaushikraj9845
@Kaushikraj9845 2 ะถั‹ะป ะฑาฑั€ั‹ะฝ
Wondering why we need additional BuildDirector class?We can use only Builder and ConcreteBuilder class right..Because the core interface definition and implementation is present in these 2..
@cristianouzumaki2455
@cristianouzumaki2455 2 ะถั‹ะป ะฑาฑั€ั‹ะฝ
Same here.
@colinmaharaj
@colinmaharaj 2 ะถั‹ะป ะฑาฑั€ั‹ะฝ
I've been doing coding for 30 years, and can't understand the use of design patterns. I am lone developer. Only a few times I had to put pen to paper to help visual then code complex ideas, but I mostly start coding after hearing a concept.
@220596Animesh
@220596Animesh 2 ะฐะน ะฑาฑั€ั‹ะฝ
Bit coomplicated to understand during 19:10 time frame because of different actors having different data.
@ashutoshjadhav
@ashutoshjadhav 2 ะถั‹ะป ะฑาฑั€ั‹ะฝ
Thanks for doing this in C++ . I am crawling the internet for LLD course with C++ so that I can prepare for system design round . Do you know any learning path for system design High level ( I have bought grokking the system design interview from educative.io ) and for low level design. Your videos are surely helping a lot ๐ŸŒผ๐ŸŒฑ๐Ÿ’š
@niladripaul7032
@niladripaul7032 8 ะฐะน ะฑาฑั€ั‹ะฝ
Put the code in a repo and please share it as well. Helps. Thanks..
@jitendraraghuwanshi1365
@jitendraraghuwanshi1365 2 ะถั‹ะป ะฑาฑั€ั‹ะฝ
While I understood the design pattern , I am having a bit of hard time in grasping where this should be used , as we could have used multiple constructors , and also even while using this pattern if the individual parts like cpu, monitor etc requires any arguments that anyway we'll need to pass , only thing is that the order of the arguments might not matter.
@monicachhabria3406
@monicachhabria3406 2 ะถั‹ะป ะฑาฑั€ั‹ะฝ
you forgot to tell about creating singleton object using enum and inner class
@RiyaSingh-nj1fx
@RiyaSingh-nj1fx 2 ะถั‹ะป ะฑาฑั€ั‹ะฝ
Hey why do you left intuit ???
@kx01
@kx01 2 ะถั‹ะป ะฑาฑั€ั‹ะฝ
When that happened?
@RiyaSingh-nj1fx
@RiyaSingh-nj1fx 2 ะถั‹ะป ะฑาฑั€ั‹ะฝ
@@kx01 check her linkedin
@raishasingh8130
@raishasingh8130 2 ะถั‹ะป ะฑาฑั€ั‹ะฝ
Hey, can you plz make one video on walmart codehers? Last year also I had applied but couldn't make it . Need ur proper guidance for this as walmart is my dream company๐Ÿ˜ Plz help me get this job๐Ÿ™๐Ÿป
@premmane9816
@premmane9816 ะ–ั‹ะป ะฑาฑั€ั‹ะฝ
Ye sab toh College may nhi padate hai , pakka didi ne course se sikha hoga , lekin batayegi nhi konse course se sikha hy , direct padayenge ๐Ÿ˜•
@tech_wizard9315
@tech_wizard9315 2 ะถั‹ะป ะฑาฑั€ั‹ะฝ
Please provide 4-5 good resume template for freshers to apply for tech giant's like Microsoft linkedin level companies etc๐Ÿ™๐Ÿป๐Ÿ™๐Ÿป,i requested 2-3times but hasn't been uploaded ๐Ÿ˜… just a request keerti ๐Ÿ˜‡
@KeertiPurswani
@KeertiPurswani 2 ะถั‹ะป ะฑาฑั€ั‹ะฝ
I am sorry for the delay, will do this soon for sure!
@MrAmitparida
@MrAmitparida ะ–ั‹ะป ะฑาฑั€ั‹ะฝ
The main function should look like this. If you don't want to delete, just create your objects on stack like, LenovoDesktopBuilder objLenovoDesktopBuilder; then call DesktopDirector Director1(&objLenovoDesktopBuilder). int main() { HpDesktopBuilder* pHpDesktopBuilder = new HpDesktopBuilder; DesktopDirector* pDirector1 = new DesktopDirector(pHpDesktopBuilder); Desktop* pDesktop1 = pDirector1->BuildDesktop(); pDesktop1->showSpecs(); delete pHpDesktopBuilder; delete pDirector1; DellDesktopBuilder* pDellDesktopBuilder = new DellDesktopBuilder; DesktopDirector* pDirector2 = new DesktopDirector(pDellDesktopBuilder); Desktop* pDesktop2 = pDirector2->BuildDesktop(); pDesktop2->showSpecs(); delete pDellDesktopBuilder; delete pDirector2; return 0; }
Observer Design Pattern explained in EASY way with CODE and Real Examples!! โœŒ๏ธ
11:06
Keerti Purswani
ะ ะตั‚ า›ะฐั€ะฐะปะดั‹ 38 ะœ.
Singleton Design Pattern | Implementation with details & code โœŒ๐Ÿป
21:09
Keerti Purswani
ะ ะตั‚ า›ะฐั€ะฐะปะดั‹ 60 ะœ.
The child was bullied and almost drowned in the swimming pool#Short #Officer Rabbit #angel
00:40
ๅ…”ๅญ่ญฆๅฎ˜
ะ ะตั‚ า›ะฐั€ะฐะปะดั‹ 19 ะœะ›ะ
How I Did The SELF BENDING Spoon ๐Ÿ˜ฑ๐Ÿฅ„ #shorts
00:19
Wian
ะ ะตั‚ า›ะฐั€ะฐะปะดั‹ 33 ะœะ›ะ
Comfortable ๐Ÿคฃ #comedy #funny
00:34
Micky Makeover
ะ ะตั‚ า›ะฐั€ะฐะปะดั‹ 15 ะœะ›ะ
A little girl was shy at her first ballet lesson #shorts
00:35
Fabiosa Animated
ะ ะตั‚ า›ะฐั€ะฐะปะดั‹ 20 ะœะ›ะ
How do Databases work? Understand the internal architecture in simplest way possible!
29:30
Keerti Purswani
ะ ะตั‚ า›ะฐั€ะฐะปะดั‹ 29 ะœ.
8 Design Patterns EVERY Developer Should Know
9:47
NeetCode
ะ ะตั‚ า›ะฐั€ะฐะปะดั‹ 1 ะœะ›ะ
Builder Design Pattern in detail with Code and Explanation | Interview Question
16:14
Daily Code Buffer
ะ ะตั‚ า›ะฐั€ะฐะปะดั‹ 18 ะœ.
Factory Design Pattern - Why and How with Code!!
15:35
Keerti Purswani
ะ ะตั‚ า›ะฐั€ะฐะปะดั‹ 81 ะœ.
Adapter Design Pattern | Explanation with Code in Easy Way! โœŒ๐Ÿป
19:04
Keerti Purswani
ะ ะตั‚ า›ะฐั€ะฐะปะดั‹ 21 ะœ.
The Smart Way of Using the Decorator Pattern in C#
12:37
Nick Chapsas
ะ ะตั‚ า›ะฐั€ะฐะปะดั‹ 67 ะœ.
Java Design Pattern Interview Questions and Answers [ MOST ASKED DESIGN PATTERN INTERVIEW QUESTIONS]
40:33
Code Decode
ะ ะตั‚ า›ะฐั€ะฐะปะดั‹ 291 ะœ.
how Google writes gorgeous C++
7:40
Low Level Learning
ะ ะตั‚ า›ะฐั€ะฐะปะดั‹ 846 ะœ.
The Factory Pattern in Python // Separate Creation From Use
14:58
ArjanCodes
ะ ะตั‚ า›ะฐั€ะฐะปะดั‹ 169 ะœ.
The child was bullied and almost drowned in the swimming pool#Short #Officer Rabbit #angel
00:40
ๅ…”ๅญ่ญฆๅฎ˜
ะ ะตั‚ า›ะฐั€ะฐะปะดั‹ 19 ะœะ›ะ