Facade Design Pattern in PHP
HTML-код
- Опубликовано: 18 окт 2024
- Facade allows you to hide the complexity of the subsystem behinds the simple interface. For now, we are going to implement a hash interface with different hashing algorithms using PHP.
GitHub Repo:
github.com/maj...
Follow me on LinkedIn:
/ majid-karimizadeh
Thank you Mr Karimizadeh, I hope to see you someday.
The best tutorial about Facade PHP pattern so far, thumbs up !!! 👍
Lovely 🌹
Another great video Majid, thankyou. If possible, 1080p would make these much easier to watch.
Correct me if I'm wrong but for me this is an implementation of a factory pattern not facade, facade tends to hide complexity of APIs not building concrete classes instances
I think it's a Strategy implementation.
Great job Majid. motesekkeram
Excellent tutorial. Where did you learn about PHP Facades?
Nice example Majid
Thanks
thnks for this tutorial
Hello, once again, I do really enjoy this tutorial. Simple and well explained :)
I have a question for you ...
Let's say I'd like to refactor one of my PHP class which does use PHP PDO to connect to both SQLite, MySQL and PostgreSQL.
I would also potentially need to be able to extend to other DBMS like Oracle or anyone else in the future.
What would be the best design pattern to use ? Bridge or Facade ?
Thanks for your feedback
Adapter design pattern would be good for these kinds of requirements.
Also, you can watch a light tutorial about adapter in the following link.
ruclips.net/video/RpzIuPOF4SM/видео.html
@@majidkarimizadeh234 thanks a lot, I’ll have a look
Damn, nice tutorial but there are some clues that I think prove you didn't do this tutorial:
1. Your voice-over is out of sync with the video
2. Somewhere around 8:50 you actually unmute the video and the real person is heard talking...
It's pretty nice tutorial but because of that stunt you get thumbs down.
Thanks for your comment. In next tutorials, I'll consider them.