11. Php Interface Tutorial - How and When to use Interfaces | Build CMS using OOP CMS tutorial MVC

แชร์
ฝัง
  • เผยแพร่เมื่อ 19 มิ.ย. 2024
  • Interfaces are contracts between your classes. You might think that interfaces are not needed in your project, and I will try to explain in this PHP Interface Tutorial when you should consider using them. Lets get PHP Interfaces explained.
    Interested in learning real-life PHP design patterns?
    ➡️ www.ApplicableProgramming.com/
    Join our Facebook group to follow the news and join discussion
    ➡️ / applicableprogrammers
    or discord group if that is more your thing
    ➡️ / discord
    If you are interested in programming courses related to web, please visit www.applicableprogramming.com/ to view courses where we show the problem, then we try to solve it the hard way, and then we show how we can benefit from proven solutions.
    ➤ LINKS
    ➡️ Source on github: github.com/applicable-program...
    (use tags to navigate between lessons)
    ➡️ Lesson on abstract classes: • 8. Modules and PHP Abs...
    ➡️ Other tutorials: www.ApplicableProgramming.com
    Timestamps:
    Intro (00:00)
    Traditional solution and problems (01:08)
    Interfaces - introduction and theory (13:45)
    Interfaces - Implementation (20:48)

ความคิดเห็น • 32

  • @3266711732665514
    @3266711732665514 2 ปีที่แล้ว +2

    Sir, your content is pure gold, the explanation made total sense, and, while I was writing the code it was very clear what was the problem, having to go around the application to remember which exact method to implement, the name and so on, in this manner the code itself helps to build the program!

    • @ApplicableProgramming
      @ApplicableProgramming  2 ปีที่แล้ว

      Thank you very much Lucas, I am really glad you are enjoying the tutorial, comments like yours make all of this worth it :)
      Any ideas of what you would like to see covered in future videos?

  • @vilhemleshi7222
    @vilhemleshi7222 ปีที่แล้ว +1

    Najboolji, gledam tvoja videa i ucim se. You are the best. Please continue with your amazing educational videos. 🦾🦾🦾

  • @skywatcher496
    @skywatcher496 ปีที่แล้ว

    Such a great explanation!
    Thank you Dalibor!

  • @patrykojewski298
    @patrykojewski298 ปีที่แล้ว +1

    Thank You very much. Great job as always !

  • @zakelijkvoordeel5437
    @zakelijkvoordeel5437 3 ปีที่แล้ว +2

    I am coding along and watching the project. Thanks a lot, I knew procedural PHP but the principle OOP programming is indeed a little difficult to understand but i find it much easier. About the homework and trying to autoload the classes into the project, I tried to autoload it using composer and psr-4 autoloading. But when i require_once the autoload.php generated by composer it doesn't recognize the classes. (Because I used Github a long time ago and don't have access to my old Github account, I will make a new one and upload the project in it).
    Note: I know the framework is not applicable to real-live use, but I am planning on securing it against session hijacking and XSS scripting. So maybe in the future I could take it to a real live environment.
    Again thank you for making the video's, it is easy to follow and very nice explained!

    • @ApplicableProgramming
      @ApplicableProgramming  3 ปีที่แล้ว

      Hei Zakelijk, your comment ended up in the youtube spam folder, not sure why (didn't even know there is one, but... apparently there is).
      So sorry for not replying before, I didn't even see it. Thank you for positive feedback, about your issue, if you didn't solve it by now, it has been a while since I created a autoload manually, I sort of always used it with some framework where all is set up. So I do not know answer from my head without running up the code and dumping all bunch of variables and see what the problems is. But you gave me a good idea about the video, I was planning on making a simple autoloader in future, I might do that with composer as well because that is pretty much the standard.
      Anyway, as mentioned, just dump around all variables you can think of and try to understand what the autoloader is trying to do, and where is it failing.

  • @hamidalizadeh
    @hamidalizadeh 3 ปีที่แล้ว +1

    great as always

    • @ApplicableProgramming
      @ApplicableProgramming  3 ปีที่แล้ว +1

      Thank you Hamid, glad to see you around :)
      How is your progress with learning going?

    • @hamidalizadeh
      @hamidalizadeh 3 ปีที่แล้ว +1

      @@ApplicableProgramming It is going good, thank you

  • @MrBrankovicv
    @MrBrankovicv 3 ปีที่แล้ว +1

    Druze, svaka cast. Sve najbolje i samo tako nastavi.

    • @ApplicableProgramming
      @ApplicableProgramming  3 ปีที่แล้ว

      Hehe, hvala hvala :)
      Jel ti iskocio video sam ili si trazio nesto pa si nasao?

    • @MrBrankovicv
      @MrBrankovicv 3 ปีที่แล้ว +1

      @@ApplicableProgramming YT algoritam te je izbacio sam :)

    • @ApplicableProgramming
      @ApplicableProgramming  3 ปีที่แล้ว

      @@MrBrankovicv eto ti slucajnosti :)
      A jel uopste koristis php i programiranje? ili je samo pogodio demografiju

    • @MrBrankovicv
      @MrBrankovicv 3 ปีที่แล้ว

      Korisim PHP, da :-)

  • @rgryczan83
    @rgryczan83 3 ปีที่แล้ว +2

    I watched the whole tutorial in two days. I'm really impressed of your knowledge sir. Right now I have to watch it again, but right now I'll write code to better recognize of app. Waiting for new videos! :)

    • @ApplicableProgramming
      @ApplicableProgramming  3 ปีที่แล้ว

      Well thank you, glad that you like it. Are you working, and switching career? Or are you a student?

    • @rgryczan83
      @rgryczan83 3 ปีที่แล้ว

      @@ApplicableProgramming I'm still studying, but I work as mailbox & website administrator. My knowledge about programming in PHP ends at making WordPress themes. Right now I want to learn something about programming bare PHP apps, so I am very glad that i discovered Your channel sir.

    • @ApplicableProgramming
      @ApplicableProgramming  3 ปีที่แล้ว +1

      @@rgryczan83 cool, glad that you want to learn more :) one can get addicted to learning...

  • @wojciechhaase
    @wojciechhaase 3 ปีที่แล้ว +1

    Just wanted to say thank you for making these videos. +1

    • @ApplicableProgramming
      @ApplicableProgramming  3 ปีที่แล้ว +1

      Thank you Wojciech, glad you like them :)
      Are you already working as developer, or are you learning to become one?

    • @wojciechhaase
      @wojciechhaase 3 ปีที่แล้ว +1

      @@ApplicableProgramming I am a professional programmer of a few decades (my main job as a freelance developer). My main area is SAP development, but I have never really worked on web development and it is a different beast with all the HTML/CSS/javascript/php etc.
      You describe everything in my native language where various concepts are logically sequenced and flow nicely between each episode. Keep up the good work.

    • @ApplicableProgramming
      @ApplicableProgramming  3 ปีที่แล้ว

      @@wojciechhaase To be honest I had to google now about SAP development, and yeah, it looks like a different beast :D But are you switching to web or just expending the meny?
      I am trying to know what brings people here :) You mentioned structure, and I can only imagine your frustration with the web that is pretty much founded on the premise that it is without any structure or "order", so just curious on your motivation :)

    • @wojciechhaase
      @wojciechhaase 3 ปีที่แล้ว +1

      ​@@ApplicableProgramming I am definitely not switching the career path. My aim is to have fun building a CMS tool that will help my wife's arts & crafts shop.

    • @ApplicableProgramming
      @ApplicableProgramming  3 ปีที่แล้ว

      @@wojciechhaase oh the typical "doing some programming after a days job as a programmer" thing :) that is how we learn basically..

  • @cesaresqueda3108
    @cesaresqueda3108 ปีที่แล้ว +1

    Es una lastima que esta desactivado los subtitulos del video para usar la traduccion y entender mejor ya que mi idioma en venezuela es español, pero igual transcribi el codigo y seguimos adelante con el tutorial...

    • @ApplicableProgramming
      @ApplicableProgramming  ปีที่แล้ว

      Hey man, unfortunately subtitles and translations are outside of my control, it is youtube who makes them and offers them to the viewers. Glad you could continue with the course anyway

  • @rajabhishek2936
    @rajabhishek2936 3 ปีที่แล้ว +1

    Awosem