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

Комментарии • 16

  • @behnambahrami7175
    @behnambahrami7175 2 года назад +1

    Thank you Mr Karimizadeh, I hope to see you someday.

  • @davide_franco
    @davide_franco 2 года назад +2

    The best tutorial about Facade PHP pattern so far, thumbs up !!! 👍

  • @codeblood87
    @codeblood87 2 года назад +1

    Lovely 🌹

  • @MrWilde
    @MrWilde 2 года назад +1

    Another great video Majid, thankyou. If possible, 1080p would make these much easier to watch.

  • @JacklapottTv
    @JacklapottTv Год назад +3

    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

    • @coran7122
      @coran7122 4 месяца назад

      I think it's a Strategy implementation.

  • @Quynn-Oneal
    @Quynn-Oneal 3 года назад +1

    Great job Majid. motesekkeram

  • @NoahNobody
    @NoahNobody 3 года назад

    Excellent tutorial. Where did you learn about PHP Facades?

  • @ApplicableProgramming
    @ApplicableProgramming 3 года назад

    Nice example Majid

  • @SepehrRadfar
    @SepehrRadfar 3 года назад

    thnks for this tutorial

  • @davide_franco
    @davide_franco 2 года назад

    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

    • @majidkarimizadeh234
      @majidkarimizadeh234  2 года назад +1

      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

    • @davide_franco
      @davide_franco 2 года назад +1

      @@majidkarimizadeh234 thanks a lot, I’ll have a look

  • @mevkok
    @mevkok 2 года назад

    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.

    • @majidkarimizadeh234
      @majidkarimizadeh234  2 года назад +1

      Thanks for your comment. In next tutorials, I'll consider them.