Design Patterns - Builder - 04

  Рет қаралды 1,104

Amr Mohamed

Amr Mohamed

Күн бұрын

This is the fourth video in the design pattern series!
I hope you guys like it, I'm explaining a very useful pattern that I personally use in my code a lot when facing complex initialization of objects, the great Builder Pattern.
If you struggle in creating objects and each object requires loads of parameters in the constructor then this is the right pattern.
Here is a link to my GitHub repo that will include all the patterns in code, feel free to contribute: github.com/amr...
Leave a comment if you have a note or you want a specific pattern next time
I recommend that you guys check this website for learning about Design Patterns: refactoring.guru/
Also, I use Head First Design Patterns book to learn more about such patterns: www.amazon.com...
Check out my previous video about the Strategy Pattern here: • Design Patterns - Stra...

Пікірлер: 8
@eslammostafa2847
@eslammostafa2847 4 жыл бұрын
Your explanation is superb and so neat 💪🏾 Keep up the good work
@AhmedYasser-iw9cl
@AhmedYasser-iw9cl 4 жыл бұрын
Keep up the good work SEKABBB!!😍
@amrhaggag2629
@amrhaggag2629 4 жыл бұрын
Great explanation, this channel deserve much much more.. Keep going sir
@omniaayman2046
@omniaayman2046 4 жыл бұрын
very nice videos,.. Keep it up
@ahmed-taher
@ahmed-taher 4 жыл бұрын
You make it very clear. Nice
@lordadamson
@lordadamson 4 жыл бұрын
Great explanation bas I think you know what I think about this one :D A simple constructor that gives attributes default values and then you modify the ones that you need is what I'd do. struct House { ... }; struct House house_make(); // makes a house with default values struct House house_make_rich_people(); struct House house_make_poor_people(); ---------------- struct House myhouse = house_make(); myhouse.rooms = 5; struct House fancy = house_make_rich_people(); struct House sha7at = house_make_poor_people(); So yeah builder/factory is unnecessary complexity imho
@ahmedkhaled6791
@ahmedkhaled6791 3 жыл бұрын
Nice ❤
@King_TutanKhamun1
@King_TutanKhamun1 4 жыл бұрын
nice video keep going =D
Design Patterns -  Adapter - 05
21:55
Amr Mohamed
Рет қаралды 1,7 М.
Strategy Pattern - Design Patterns (ep 1)
35:11
Christopher Okhravi
Рет қаралды 1,5 МЛН
小路飞嫁祸姐姐搞破坏 #路飞#海贼王
00:45
路飞与唐舞桐
Рет қаралды 28 МЛН
Kluster Duo #настольныеигры #boardgames #игры #games #настолки #настольные_игры
00:47
Test-Driven Development // Fun TDD Introduction with JavaScript
12:55
Dependency Injection, The Best Pattern
13:16
CodeAesthetic
Рет қаралды 844 М.
WHY IS THE STACK SO FAST?
13:46
Core Dumped
Рет қаралды 159 М.
5 Nooby Coding Mistakes You NEED To Avoid
19:45
Tech With Tim
Рет қаралды 10 М.
Blueprints vs. C++: How They Fit Together and Why You Should Use Both
47:14
The Rust Survival Guide
12:34
Let's Get Rusty
Рет қаралды 152 М.