Builder Design Pattern In C++

  Рет қаралды 27,723

CppNuts

CppNuts

Күн бұрын

Пікірлер: 70
@CppNuts
@CppNuts 5 жыл бұрын
Hi everyone, Don't forget to hit LIKE and SUBSCRIBE button for more videos like this!! And this will help me a-lot.
@aseemsameer7281
@aseemsameer7281 2 жыл бұрын
How is this constructing a complex object using other objects? No other complex objects being created to create a single complex object, whatsoever. Just implementing the Factory-similar setup, with the virtual constructor, isn't rather convincing, than justified as a new design pattern. Appreciate the simplicity in explanation, though.
@spicytuna08
@spicytuna08 6 жыл бұрын
i will vote you for the best actor in tech teaching category. your voice goes up and down and be really emotional. you really get into it.
@CppNuts
@CppNuts 6 жыл бұрын
Thank you so much for such a great comment!! :)
@anantupadhyay4884
@anantupadhyay4884 2 жыл бұрын
as per your explanation , each and every builder needs to override all functions. Builder don't behaves in this way. Suppose if some concrete builder only needs 2 composite objects and other concrete builder needs 3 composite objects. For simple example, Manual Car needs Seat, Engine and Automatic Car needs Seat , Engine, any other feature(Sun Roof). How will your explanation handle this ? Please explain
@SajalKishoreRastogi
@SajalKishoreRastogi 2 жыл бұрын
Exactly. What is described in the video is (partly) Abstract Factory Design Pattern with a few elements of Builder Design Pattern sprinkled on it. It is a completely new design patterns which seems to accomplish nothing - neither the easy maintenance of Abstract Factory, nor the flexible (and consistent) object creation of Builder.
@anuraagkhandagle5130
@anuraagkhandagle5130 11 ай бұрын
Hi, it was a good explanation. I'm struggling to find the difference between abstract factory and builder pattern here. Can you make a video where you take the same example for both Abstract Factory and Builder pattern and tell us which to use when? I'm seeing this as an analogy to abstract factory. Where Director is equivalent to Factory class. Jet Builder and Propellor Builder can be considered as two Factories. I'm not understanding what the difference would be.
@varunsingh3825
@varunsingh3825 7 жыл бұрын
Hi, Nicely explained, can you please UML diagrams also, at least for design pattern related topics? Please keep helping :)
@CppNuts
@CppNuts 7 жыл бұрын
Hi Varun Singh, UML Link is in the description field.
@habibyama
@habibyama 6 жыл бұрын
You make me understand in 8 minutes. Lots of love :)
@sandrok14
@sandrok14 5 жыл бұрын
Nice explanation as always. But I don't think we need to delete jet and pro pointers, because they are just stack pointers no heap memory used. Correct me if I am wrong.
@CppNuts
@CppNuts 5 жыл бұрын
delete is required, notice that we are returning heap pointer and assigning into jet and pro pointers. If it is hard to find whether you need to use delete or not then just check do you have any new operator in your program if yes then you actually need to have delete keyword in your program somewhere which is delete the heap memory created using new operator.
@sandrok14
@sandrok14 5 жыл бұрын
@@CppNuts Ok.. Now following the hierarchy I get it. But from main() perspective it seemed like stack pointers, a bit confusing
@ankitgupta8215
@ankitgupta8215 7 жыл бұрын
Hey please add UML or class diagram for same..it will be an added advantage to viewers,design patterns should start with some class diagram...its a great help....thanx.
@ankitgupta8215
@ankitgupta8215 7 жыл бұрын
thanks..it will work for many.
@shibisaketh
@shibisaketh 6 жыл бұрын
Abstract factory and factory method also very similar to builder. So can u compare this 3 and tell when to use what
@trodisdeer5281
@trodisdeer5281 5 жыл бұрын
Please add more videos about Design Patterns in C++. Thank you .
@CppNuts
@CppNuts 5 жыл бұрын
Yes it is planned, but will take time.
@varunsingh3825
@varunsingh3825 7 жыл бұрын
Hi Ethan, I really liked your question and explanation, thanks alot :) Can you please add a detail video explaining the internals of virtual table implementation I mean how table created, how functions stored, how vptr iterate through table, whats if offset , how exactly it find to which tale and which will be called at runtime using vtable??
@CppNuts
@CppNuts 6 жыл бұрын
Hi Varun, You can expect in coming videos!!
@techademy9354
@techademy9354 2 жыл бұрын
Hey sir, you have any plans to complete the design patterns course? or any plans to make like full course on sites like Udemy or anything like that? Thanks :)
@vhxhao
@vhxhao 3 жыл бұрын
Thanks for the nice video. What happens if Jetbuilder needs an extra step than PropellerBuilder? what do we do in the Director class?
@mayur07ec78
@mayur07ec78 6 жыл бұрын
Nice explanation of all the creational design patterns but not able to find structural and behavioral design patterns. May I know are you planning to upload in short time or have to wait long time ?
@CppNuts
@CppNuts 6 жыл бұрын
Hi mayur patel, I am trying my best to upload videos ASAP. But i think you may have to wait for little longer i guess. i have few play lists to complete first.
@mayur07ec78
@mayur07ec78 6 жыл бұрын
CppNuts Sure, take your time, awaiting for more videos, Thank you ...
@hsaidinsan6345
@hsaidinsan6345 4 жыл бұрын
Great work man But why have you stopped making more design patterns videos If because of your busy program, then pls try to assign some of your time for this important topic
@CppNuts
@CppNuts 4 жыл бұрын
Sure, i will think about it, thanks man!
@saikumarpeddireddy7079
@saikumarpeddireddy7079 4 жыл бұрын
completed your design pattern playlist thank you for your videos
@CppNuts
@CppNuts 4 жыл бұрын
Glad you like them!
@habibyama
@habibyama 6 жыл бұрын
Thanks man. Very good explanation. Great job!
@CppNuts
@CppNuts 6 жыл бұрын
Thanks man..
@kirannarayanaswamy2016
@kirannarayanaswamy2016 5 жыл бұрын
Trust me you are awesome in teaching :)
@CppNuts
@CppNuts 5 жыл бұрын
Thanks man, for boosting me.
@lakshminarayan1564
@lakshminarayan1564 4 жыл бұрын
Nice explanation but I don't see a link to the code in description or any UML links?
@CppNuts
@CppNuts 4 жыл бұрын
Sorry for that i jus updated the description so forgot to add. Now check it please..
@lakshminarayan1564
@lakshminarayan1564 4 жыл бұрын
@@CppNuts Thanks a lot! Your explanation along with reasoning is great!
@CppNuts
@CppNuts 4 жыл бұрын
Thanks for appreciation..
@krantimadineni585
@krantimadineni585 7 жыл бұрын
At last one Indian is making some great videos in C++...
@spicytuna08
@spicytuna08 6 жыл бұрын
only one? i have seen many.
@mohammedimrankhan6265
@mohammedimrankhan6265 5 жыл бұрын
Composing spelling is correct
@vaibhavdangayachvd
@vaibhavdangayachvd 5 жыл бұрын
In the PlaneBuilder abstract class there should be a destructor to deallocate _plane
@SajalKishoreRastogi
@SajalKishoreRastogi 2 жыл бұрын
Hi, I like all your videos but this one is misleading. What is described in the video is (partly) Abstract Factory Design Pattern with a few elements of Builder Design Pattern sprinkled on it. It is a completely new design patterns which seems to accomplish nothing - neither the easy maintenance of Abstract Factory, nor the flexible (and consistent) object creation of Builder.
@وليدايمن-ث2م
@وليدايمن-ث2م 3 жыл бұрын
شغلك جميل اعمل دورات دبلوم فوتوشوب ودمجها مع ال++c ان استطعت الله يوفقك
@FabioBannet
@FabioBannet 6 жыл бұрын
Very useful lesson, but - please speak slowly (because you tong like " do know do way" ), and please don`t repeat all time word - " OK" it`s not good. Thank you ^)
@CppNuts
@CppNuts 6 жыл бұрын
Thanks for your suggestion, i have already tried to take care of these two problems. :😀
@rohitashkumar781
@rohitashkumar781 6 жыл бұрын
in your github code code showing error:- BuilderDesginPattern.cpp:58:5: error: ‘Builder’ does not name a type; did you mean ‘JetBuilder’? Builder *builder; ^~~~~~~ JetBuilder
@CppNuts
@CppNuts 6 жыл бұрын
Thanks!! Its corrected please check!!
@TriNguyen-og1ws
@TriNguyen-og1ws 4 жыл бұрын
Nice vid, thanks alot bro
@aswinsree3570
@aswinsree3570 4 жыл бұрын
Your C++ and STL videos are superb but those on Design Patterns are junk (considering the high standard you have set before). Showing code doesn't even help. My suggestion is to explain with diagrams first. UML diagrams do help.
@CppNuts
@CppNuts 4 жыл бұрын
Design patterns videos r the one i recorded in the beginning, and i was learning that time. I hope you will understand.
@aswinsree3570
@aswinsree3570 4 жыл бұрын
@@CppNuts Sorry I didn't notice the posted date. May bad! You have come a long way bro. Keep posting. Waiting for your videos on Algorithms :)
@CppNuts
@CppNuts 4 жыл бұрын
Sure bro..
@sudheerinbloom
@sudheerinbloom 4 жыл бұрын
Very nicely explained. Keep it up!
@CppNuts
@CppNuts 4 жыл бұрын
Thanks, will do!
@rakeshmane3617
@rakeshmane3617 5 жыл бұрын
Nice explanation
@CppNuts
@CppNuts 5 жыл бұрын
Thanks.
@TheMynameismax
@TheMynameismax 7 жыл бұрын
Great vid!!
@TheMynameismax
@TheMynameismax 7 жыл бұрын
cppnuts will do! Make sure you keep up the fantastic work. Feel like this channel will be really huge
@TheMynameismax
@TheMynameismax 7 жыл бұрын
CppNuts lol I honestly mean it, keep going!!!
@rsundeep85
@rsundeep85 7 жыл бұрын
Super Bayya...
@CppNuts
@CppNuts 7 жыл бұрын
+Sundeep R Thanks... :)
@engineersdeskcreativity
@engineersdeskcreativity 4 жыл бұрын
Good video. Only suggestion is don't use fake accents be yourself.
@CppNuts
@CppNuts 4 жыл бұрын
Thanks..
@revanasiddheshwarhiremath9274
@revanasiddheshwarhiremath9274 5 жыл бұрын
Ur font is very smalll
@CppNuts
@CppNuts 5 жыл бұрын
Sorry for that man, i have to cover so much of code in one screen so that people can visualize at once.
@aldrinaldrin4618
@aldrinaldrin4618 4 жыл бұрын
Great video but calm down.
@CppNuts
@CppNuts 4 жыл бұрын
Hahahahahah
@aldrinaldrin4618
@aldrinaldrin4618 4 жыл бұрын
@@CppNuts So you've got awesome videos and a sense of humor. You're my hero.
@CppNuts
@CppNuts 4 жыл бұрын
Thanks..
Why Factory Design Pattern
5:04
CppNuts
Рет қаралды 5 М.
Singleton Design Pattern In C++
24:09
CppNuts
Рет қаралды 79 М.
How I Turned a Lolipop Into A New One 🤯🍭
00:19
Wian
Рет қаралды 12 МЛН
Human vs Jet Engine
00:19
MrBeast
Рет қаралды 153 МЛН
НАШЛА ДЕНЬГИ🙀@VERONIKAborsch
00:38
МишАня
Рет қаралды 3,1 МЛН
SINGLETONS in C++
19:16
The Cherno
Рет қаралды 203 М.
Static Data Member And Static Member Function In C++
17:19
CppNuts
Рет қаралды 52 М.
Singleton Design Pattern | C++ Example
13:24
Portfolio Courses
Рет қаралды 16 М.
Mutex In C++
16:22
CppNuts
Рет қаралды 109 М.
Adapter Pattern - Design Patterns (ep 8)
26:36
Christopher Okhravi
Рет қаралды 244 М.
Factory Method Pattern Visualized
23:54
Kantan Coding
Рет қаралды 9 М.
Proxy Pattern - Design Patterns (ep 10)
37:35
Christopher Okhravi
Рет қаралды 164 М.