The Factory Method Pattern - Design Patterns in PHP

preview_player
Показать описание
In this video I walk you through the factory method design pattern, what it is, how it works, and show you a real world problem it was created to solve.

------

Рекомендации по теме
Комментарии
Автор

Great video 🤘 look forward to more in future

iice
Автор

great explanation. could you explain all design patterns? it would be really great.

renaldohida
Автор

When I usually write a factory class I don't make the method static. Is there a time where making a method static would be more beneficial then initializing the class and calling the method?

I think this is a video that developers who have implemented factories already can follow but someone who has never implemented one may not be able to understand.
The example you gave was perfect but you coding the factory class with the make/create method and showing them the interface implementation may be more beneficial.

Looking forward to more videos!

steelbreather
Автор

are great. I'm waiting for your new design pattern video. when do you think it is prepared?

mehdijafari
Автор

5:08 why do we need to create the while there is only 1 implementation of it (`TextProcessorInterface`)?

freeidol
Автор

Will there be more videos coming up soon?

harshs
Автор

Couldnt you have thought of a more complex use case to make it even 'easier'?

🙄

theman
Автор

Could you try and actually type the code and explain it while you do it? The example you used assumed a lot of knowledge and the explanation of each slide was minimal.
Good try but not very instructional.

Chesteridis
welcome to shbcf.ru