The Factory Method - Programming Design Patterns - Ep 1 - C++ Coding

preview_player
Показать описание
In this episode we introduce the series and talk about the first pattern, which is a pattern to help create and manage things in your program.
---
Chapters:
0:00 Intro
2:10 New CMake Project
3:53 Theory
5:39 Coding A Factory
35:55 The Clone Variant
42:22 Outro
---
Errata:
---
Supplement book links
---
Notable Video Resources:
---
Video Written, Edited, & Produced By:
▶ Matthew Early
---
Thanks for watching! I appreciate any and all support!
---
Some of Matt's Other Stuff (feel free to follow!):

_support:
Patrons help this channel go round and keep creating. If you don't like patreon but still would like to support regularly, you can do a similar subscription via the YouTube Join, or through Github's sponsor button.

This is were I most the majority of the code seen on the channel.

We have a Discord! We welcome all various code and tech chatter.

I stream code and/or gaming every Thursday! I also randomly stream a time or two throughout most weeks.
Рекомендации по теме
Комментарии
Автор

I learned a lot from your cmake series. I believe this will be also great.

dpatar
Автор

great video !, loved the explanations,
14:45 Catdawg!

IsaacCode
Автор

Glad I paid attention to your pointer lesson... this needs some cleanup. :D Factory Pattern is pretty cool! The Clone() method was pretty dope.

reverse_shell
Автор

Isn't it possible to make a spawner interface with a spawn() method and then the spawn classes define it (like dogSpawner and catSpawner) so you can have just a specific creature spawner be used as a generic creature spawner?

cesarb.yamasato
Автор

maybe my question is very noob, but I saw in the github, the author uses many times new operator, but he never uses delete them or it? So why? Because normally when I read the book they always say that we have to delete the raw pointers to avoid memory leak, but it seems that this problem is not big, because I see that many tutorials, they never care about it.

muonline
Автор

Is not against oop principles doings cast?

sam-pdsu
Автор

This is a simple factory / factory object example. It's not a pattern.
Congrats on not calling it the factory method pattern or the abstract factory pattern but since this is the first video in a design patterns series, you really need to get this right.
And at least 2/3 of the videos on youtube are wrong about factories and factory patterns. Stick to the GoF book.

prezadent
visit shbcf.ru