Object Oriented PHP

แชร์
ฝัง
  • เผยแพร่เมื่อ 19 ก.ย. 2024

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

  • @derekbanas
    @derekbanas  5 ปีที่แล้ว +5

    Learn in One Videos for Every Programming Language
    Subscribe to Bookmark them: bit.ly/2FWQZTx
    C++ : th-cam.com/video/Rub-JsjMhWY/w-d-xo.html
    Python : th-cam.com/video/N4mEzFDjqtA/w-d-xo.html
    Java : th-cam.com/video/n-xAqcBCws4/w-d-xo.html
    PHP : th-cam.com/video/7TF00hJI78Y/w-d-xo.html
    MySQL : th-cam.com/video/yPu6qV5byu4/w-d-xo.html
    JavaScript : th-cam.com/video/fju9ii8YsGs/w-d-xo.html
    C# : th-cam.com/video/lisiwUZJXqQ/w-d-xo.html
    HTML5 : th-cam.com/video/kDyJN7qQETA/w-d-xo.html
    CSS3 : th-cam.com/video/CUxH_rWSI1k/w-d-xo.html
    JQuery : th-cam.com/video/BWXggB-T1jQ/w-d-xo.html
    TypeScript : th-cam.com/video/-PR_XqW9JJU/w-d-xo.html
    ECMAScript : th-cam.com/video/Jakoi0G8lBg/w-d-xo.html
    Swift : th-cam.com/video/dKaojOZ-az8/w-d-xo.html
    R : th-cam.com/video/s3FozVfd7q4/w-d-xo.html
    Haskell : th-cam.com/video/02_H3LjqMr8/w-d-xo.html
    Handlebars : th-cam.com/video/4HuAnM6b2d8/w-d-xo.html
    Bootstrap : th-cam.com/video/gqOEoUR5RHg/w-d-xo.html
    Rust : th-cam.com/video/U1EFgCNLDB8/w-d-xo.html
    Matlab : th-cam.com/video/NSSTkkKRabI/w-d-xo.html
    Arduino : th-cam.com/video/QO_Jlz1qpDw/w-d-xo.html
    Crystal : th-cam.com/video/DxFP-Wjqtsc/w-d-xo.html
    Emacs : th-cam.com/video/Iagbv974GlQ/w-d-xo.html
    Clojure : th-cam.com/video/ciGyHkDuPAE/w-d-xo.html
    Shell : th-cam.com/video/hwrnmQumtPw/w-d-xo.html
    Perl : th-cam.com/video/WEghIXs8F6c/w-d-xo.html
    Perl6 : th-cam.com/video/l0zPwhgWTgM/w-d-xo.html
    Elixir : th-cam.com/video/pBNOavRoNL0/w-d-xo.html
    D : th-cam.com/video/rwZFTnf9bDU/w-d-xo.html
    Fortran : th-cam.com/video/__2UgFNYgf8/w-d-xo.html
    LaTeX : th-cam.com/video/VhmkLrOjLsw/w-d-xo.html
    F# : th-cam.com/video/c7eNDJN758U/w-d-xo.html
    Kotlin : th-cam.com/video/H_oGi8uuDpA/w-d-xo.html
    Erlang : th-cam.com/video/IEhwc2q1zG4/w-d-xo.html
    Groovy : th-cam.com/video/B98jc8hdu9g/w-d-xo.html
    Scala : th-cam.com/video/DzFt0YkZo8M/w-d-xo.html
    Lua : th-cam.com/video/iMacxZQMPXs/w-d-xo.html
    Ruby : th-cam.com/video/Dji9ALCgfpM/w-d-xo.html
    Go : th-cam.com/video/CF9S4QZuV30/w-d-xo.html
    Objective C : th-cam.com/video/5esQqZIJ83g/w-d-xo.html
    Prolog : th-cam.com/video/SykxWpFwMGs/w-d-xo.html
    LISP : th-cam.com/video/ymSq4wHrqyU/w-d-xo.html
    Express : th-cam.com/video/xDCKcNBFsuI/w-d-xo.html
    Jade : th-cam.com/video/l5AXcXAP4r8/w-d-xo.html
    Sass : th-cam.com/video/wz3kElLbEHE/w-d-xo.html

    • @knightzskye5637
      @knightzskye5637 5 ปีที่แล้ว

      hi derek i just started learning php and mysq. i have question on php and mysql coding. can i email you the code to you could tell me what i did wrong. I don't know how to fix the error. much appreciated 🙏

  • @tomasbartninkas7957
    @tomasbartninkas7957 6 ปีที่แล้ว +8

    11:00-11:03 best programmer quote of the year. I enjoy your videos though, best i could find on youtube for my tastes, hope you don't quit anytime soon. In general, great work!

  • @PhilSmulian
    @PhilSmulian 8 ปีที่แล้ว

    You're the first tut video maker I've seen that doesn't take forever to spit the words out, or constantly digress with side-thoughts. You effortlessly compacted an enormous amount of info into this vid, in record time. Thanks Derek I now have an almost complete understanding of classes & objects!

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

      +Phil Smulian Thank you for the compliment :) I do my best to not waste peoples time.

  • @zewtorious
    @zewtorious 8 ปีที่แล้ว

    I can not stress enough how much this has helped. I am a long time PHP coder who has always had a mental block with classes OOC. This will help greatly in me writing more secure code, using less variables being passed in the URL.

    • @derekbanas
      @derekbanas  8 ปีที่แล้ว

      +zewtorious I am very happy that it helped :)

  • @arvilmena6203
    @arvilmena6203 9 ปีที่แล้ว

    I came from the plain old procedural PHP programming and had been struggling to find a decent tut to make me understand OOP design and this is far the best tut i ever found on the internet. Thank you! Subscribed.

    • @derekbanas
      @derekbanas  9 ปีที่แล้ว

      Zirius Ang Dakila Thank you :) I'm very happy that I could help

    • @arvilmena6203
      @arvilmena6203 9 ปีที่แล้ว

      btw, if I may suggest, can you pursue this series by adding OOP PHP-MySQL tutorial video. I honestly want to know how would OOP design be considered once you will need to have the interaction with database. Should there be a class for all sql query? something like that maybe?

  • @turboromy
    @turboromy 7 ปีที่แล้ว

    Watched this again for a review as I get deeper into Wordpress. All of the unsure things of php were already all explained here. Thanks for making such a compact and info-rich videos.

    • @derekbanas
      @derekbanas  7 ปีที่แล้ว

      Thank you :) I'm very happy that it helped

  • @davematthews414
    @davematthews414 8 ปีที่แล้ว

    Fantastic! I absolutely love the way you present information and the speed of your videos! Please do NOT change! I understand that those who are not familiar with the terminology will find it difficult to follow, but once you have progressed beyond that stage it can get so tiring and time-consuming to wade through these basics in order to get the real information. Your videos are like a breath of fresh air. Thank you.

    • @derekbanas
      @derekbanas  8 ปีที่แล้ว

      Thank you for all the nice compliments :) Don't worry I won't change.

  • @randzgonzable
    @randzgonzable 6 ปีที่แล้ว

    Hello Derek.. I just want to personally thank you for creating quality videos about programming and stuff that are relevant to it. This way we can learn from your videos without paying and going to school. Hopefully, we can pay it forward to many people in the future. Thank you very much! :)

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

      Thank you for taking the time to tell me they help :) The goal is always to provide a free education for all

    • @randzgonzable
      @randzgonzable 6 ปีที่แล้ว

      May God bless us all.

  • @veetoutas
    @veetoutas 6 ปีที่แล้ว

    Derek, not only Your tutorials are extremely efficient and professional, but i love the mood You are presenting it all with. Some kind of a funny sarcastic comedy type positive voice that makes it feel as if everything is easier than it seems and so it puts my mind in a way that it is fun to learn and makes me hungry for this knowledge. Thank You so much, i hope You are getting at least something out of these videos, because what You give us is priceless. Big fan and a learner from Lithuania! :)

  • @d13x001
    @d13x001 7 ปีที่แล้ว

    I honestly feel that Derek has helped change the face of the internet. He is teaching and inspiring the developers of today to develop the internet for tomorrow. Bravo.

    • @derekbanas
      @derekbanas  7 ปีที่แล้ว

      Thank you for the very nice compliment :) Wow, that was very nice. I hope that I have been able to help. I'm very lucky to be in the position to do this.

  • @snorky500
    @snorky500 7 ปีที่แล้ว

    I have been programming in php in a functional style, not OOP. This tutorial really filled in a lot of gaps that I did not understand before. Thank you!!!

    • @derekbanas
      @derekbanas  7 ปีที่แล้ว

      You're very welcome :) I'm happy it helped

  • @SJ-ci8oi
    @SJ-ci8oi 9 ปีที่แล้ว +1

    Thank you so much for this! This is the best, most coherent and comprehensive tutorial on php classes I have been able to find! I finally understand so much more and see possibilities and flexibility where I was once confused. I will be watching more of your tutorials! Thank you!

    • @derekbanas
      @derekbanas  9 ปีที่แล้ว

      +Sarah Elizabeth Thank you for the nice compliment :) I'm very happy that it helped.

  • @programthis3805
    @programthis3805 9 ปีที่แล้ว +121

    This is why i hate college... these two php videos would take months to learn in school and cost a $hit ton of $$$...

    • @derekbanas
      @derekbanas  9 ปีที่แล้ว +47

      ProgramThis! Thank you :) I'm doing my best to make education available for free.

    • @crazybuzz100
      @crazybuzz100 9 ปีที่แล้ว +25

      Derek Banas The world of education is slowly changing for the better... And it's all thanks to people like you and videos like these.

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

      Your Videos are great.... Thank You! May God Bless You!

    • @pockettraveldiaries
      @pockettraveldiaries 7 ปีที่แล้ว +4

      so true

    • @pockettraveldiaries
      @pockettraveldiaries 7 ปีที่แล้ว +5

      +Derek Banas that is so noble task. We need more people like you in the world! Keep the good work going! :)

  • @cengologin
    @cengologin 7 ปีที่แล้ว +8

    One of the best OOP tutorial I've seen, thanks a lot!

    • @derekbanas
      @derekbanas  7 ปีที่แล้ว

      Thank you very much :)

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

    Been with you since the first week. You are a savage my man Mr. Banas.

  • @mmb811
    @mmb811 10 ปีที่แล้ว

    Your tuts are to the point and does not waste time with all kinds of rubbish info or slow typing and you don't waste time. Your tut videos are AWESOME, keep up the GREAT work !.

    • @derekbanas
      @derekbanas  10 ปีที่แล้ว

      mmb811 Thank you for the nice compliments :)

  • @nickmacdonald7
    @nickmacdonald7 8 ปีที่แล้ว +51

    WHY WAS SPOT DESTROYED? RIP SPOT :'(

  • @jonedue4260
    @jonedue4260 5 ปีที่แล้ว

    Like any other PHP static variable, static properties may only be initialized using a literal or constant before PHP 5.6; expressions are not allowed. In PHP 5.6 and later, the same rules apply as const expressions: some limited expressions are possible, provided they can be evaluated at compile time.

  • @phonerenew
    @phonerenew 4 ปีที่แล้ว

    Great video! This quick and generalized style of teaching is exactly what works for me. Now I just need one for Doctrine ORM and Symfony.

    • @derekbanas
      @derekbanas  4 ปีที่แล้ว

      Happy I could help :) I'll see what I can do about the requests

  • @MayurVirkar
    @MayurVirkar 10 ปีที่แล้ว

    Irakli Khakhviashvili speed is fine.
    This is the best thing about Derek Banas . He keeps it fast so viewers wont get bored.
    And you always have a "Replay" Option.
    Dont want to be a jerk, but all i am saying is Speed is fine. Its perfect!

  • @Her_Viscera
    @Her_Viscera 7 ปีที่แล้ว +3

    Great video, as a Web Developer I find theres a real lack of quality educational videos online. Keep it up!

    • @derekbanas
      @derekbanas  7 ปีที่แล้ว +3

      Thank you for the compliment :) I do my best

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

    This seems like a great video for someone who already has some knowledge about coding and not for beginners... but since I belong to the first group THANKS!!

    • @derekbanas
      @derekbanas  7 ปีที่แล้ว

      You're welcome :) Yes it is for people that have experience in programming other languages.

  • @highway-sniper
    @highway-sniper 7 ปีที่แล้ว

    You are awesome. I thought to subscribe in the middle of this video specifically but guess what I already have your channel subscription. Thank you for such a cool video. It's like easing out pain and putting me in a situation to know more PHP OOP.

    • @derekbanas
      @derekbanas  7 ปีที่แล้ว

      Thank you for the nice compliment :) I'm very happy that it helped

  • @TheAmbush9999
    @TheAmbush9999 7 ปีที่แล้ว

    Just coming back to my original PHP tutorials I followed a while ago. Thanks Derek for making these videos! I'm now a Web developer and it all started from these videos.
    marcus

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

      That's awesome!!! Congratulations on your job :)

  • @kristinehelms5381
    @kristinehelms5381 8 ปีที่แล้ว

    The thing you do, starting with an visual and simple example of the subject, is what makes this video better than the others. Thank you :-)

    • @derekbanas
      @derekbanas  8 ปีที่แล้ว

      +Kristine Helms Thank you very much for the compliment :)

  • @ramsesperez200
    @ramsesperez200 5 ปีที่แล้ว

    I love this video because I already have knowledge of Classes in other programming language, and I just needed a summary of it in PHP. This makes it so easy to compare and translate from one to another. Awesome Video! Thank you!

    • @derekbanas
      @derekbanas  5 ปีที่แล้ว

      Thank you very much :) I'm glad it helped

  • @GohersWay
    @GohersWay 6 ปีที่แล้ว

    Definition: An object is a software bundle of variables and related methods.
    Note : Before watching this videos I have wrote the following example hoping I am right.
    $somevariable = new SomeClass(); // probably the protected variables inside class called attributes?
    // and here $somevariable is
    // an object of SomeClass()
    echo $somevariable - > functionInsideSomeClass(); // functionInsideSomeClass(); have to return something to display

  • @nykachuu
    @nykachuu 7 ปีที่แล้ว

    with all the programming languages I've learned, I have never really understood how it works and where its needed, but now I do, thanks so much!

    • @derekbanas
      @derekbanas  7 ปีที่แล้ว

      Thank you :) I'm very happy it helped

  • @solarek26
    @solarek26 8 ปีที่แล้ว +4

    Very very useful tutorial. Someone who haven't know OOP yet should watch this to learn. It's pefect.

    • @derekbanas
      @derekbanas  8 ปีที่แล้ว

      +Patryk Wojciechowski Thank you for the very nice compliment :)

  • @narval6108
    @narval6108 5 ปีที่แล้ว

    WOW that was a bunch of information in 26 minutes! You are good! I am a beginer so I will need to watch this a couple of times. Thanks for the tutorial, dude!

    • @derekbanas
      @derekbanas  5 ปีที่แล้ว

      Thank you very much :) When I promise something in the title I do my best to meet it

  • @NeomeniaXXVI
    @NeomeniaXXVI 8 ปีที่แล้ว

    Hi Derek, I'm glad to say you I'm learning a lot of programming just watching your videos. Thank you very much!

  • @apseh721
    @apseh721 8 ปีที่แล้ว

    Hi Derek, I am absolute fan of yours and I think you have the most perfect & impressive voice for these tutorials. I follow your tutorials and just love your explanations. I would be most glad to see a tutorial on php exception handling with their actual implementation in websites.Now while there are many tutorials on that, one from you would be the best. I would particularly like to see how to implement / display an error page that is displayed every time an error occurs and display those errors keeping in mind whether it is running in the design or production mode. Thanks and I really hope you will consider to do this tutorial soon. Thank you.

    • @derekbanas
      @derekbanas  8 ปีที่แล้ว

      +Ap Seh Thank you for the very nice compliment :) I hope to get back to PHP very soon.

    • @apseh721
      @apseh721 8 ปีที่แล้ว

      Hi Derek, Thanks for the reply and looking forward to seeing you there soon !

  • @princessgohar140
    @princessgohar140 10 ปีที่แล้ว

    I am completely new to JAVA. Your videos are really amazing & BEST IN THE WORLD and they are helping me a lot. Thank you soooo much.

    • @derekbanas
      @derekbanas  10 ปีที่แล้ว

      Princess Gohar Thank you for the nice compliment :) You're very welcome

  • @mikopiko
    @mikopiko 5 ปีที่แล้ว

    Instead of:
    function __set($attribute, $value)
    {
    switch ($attribute) {
    case type:
    $this->type = $value;
    break;
    case name:
    $this->name = $value;
    break;
    case age:
    $this->age = $value;
    break;
    default:
    echo $attribute . " not found ";
    }
    }
    you can do:
    function __set($attribute, $value)
    {
    $this->$attribute = $value;
    }

  • @gilsonviana4936
    @gilsonviana4936 7 ปีที่แล้ว

    That's what I call - fast paced tutorial.
    Derek your videos are the best.

    • @derekbanas
      @derekbanas  7 ปีที่แล้ว

      Thank you very much :)

  • @TomSkinner
    @TomSkinner 7 ปีที่แล้ว

    For me this was a very good synopsis of PHP OOP. Thanks.

    • @derekbanas
      @derekbanas  7 ปีที่แล้ว

      Thank you :) I'm glad you liked it

  • @niccolamborghini
    @niccolamborghini 4 ปีที่แล้ว

    Love the :-( in the destructor. Its sooo nice

  • @freightuk
    @freightuk 8 ปีที่แล้ว

    Thanks, very good overview of what PHP provides for OOD, JIm

    • @derekbanas
      @derekbanas  8 ปีที่แล้ว

      +freightuk Thank you :)

  • @Badprop7
    @Badprop7 9 ปีที่แล้ว

    This is great for a procedural programmer like me that needs to work in a OOP environment. Thanks a million. This helped a lot.

    • @derekbanas
      @derekbanas  9 ปีที่แล้ว

      Johan Potgieter You're very welcome :)

  • @alexandru2882
    @alexandru2882 7 ปีที่แล้ว

    I would like to see videos that break down the concept of object programming, so that I could take in one concept at a time in small steps. The first part of this video is easy to understand. When it gets complicated, I can't grasp any of the concepts. It would help to go in depth on every concept, one at a time. Thank you.

  • @avhd187
    @avhd187 7 ปีที่แล้ว +5

    Am I seeing something? Class constants use "const" and Classless constant use "define" but why?

  • @otubeify
    @otubeify 7 ปีที่แล้ว

    Love it. Compact, concise and complete. Very refreshing and easy to follow.

  • @Shadowguy98
    @Shadowguy98 8 ปีที่แล้ว

    If you're a C# or Java programmer who knows some typescript... set this bad boy to 2x play speed and you'll know OO PHP in 15 minutes.

    • @derekbanas
      @derekbanas  8 ปีที่แล้ว

      +Brett Fleming Thank you :)

  • @33mauriciom
    @33mauriciom 9 ปีที่แล้ว

    I really like your videos, man ! I learnt lots of things in your videos instead of my college course in a short period of time ! Thank you very much for sharing your knowledge !

    • @derekbanas
      @derekbanas  9 ปีที่แล้ว

      Mauricio Ferreira Thank you :) I'm very happy that I could help.

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

    wow, i literally learned php and mySQL in 2 hours :D (since i can program in C and C++ this was everything needed), thak you so much

    • @derekbanas
      @derekbanas  7 ปีที่แล้ว

      I'm very happy that I could help :)

  • @superjen4850
    @superjen4850 4 ปีที่แล้ว

    You forgot to realise the future of PHP and include a tutorial on traits for better PHP OOP

  • @patrasculucian2403
    @patrasculucian2403 6 ปีที่แล้ว

    20:00 - Another example of polymorphism is
    where we're going to be able to define functions
    that are going to be able to accept classes
    that extends a specific class or a specific interface
    I had to write this down man xD

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

      Sorry if I made that to complicated. I try to use normal words most of the time

  • @MJ_on_YouTube
    @MJ_on_YouTube 9 ปีที่แล้ว +5

    I love your vids! I love the fact that you pump out a $h!+ load of information in a short period of time....
    Thank you soooooo much!

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

      Matt Dixon Thank you :) I did my best to make original videos. I'm glad you like them.

    • @MJ_on_YouTube
      @MJ_on_YouTube 9 ปีที่แล้ว

      Derek Banas I like you even more that you took the time to respond to me.... I am a new developer that came from a CAD/CAM background.... Crazy eh? Here is something I made as a CAD person, but only for fun.....
      scontent-a-iad.xx.fbcdn.net/hphotos-xap1/t31.0-8/1400593_10200845606214754_1716709710_o.jpg

    • @crazybuzz100
      @crazybuzz100 9 ปีที่แล้ว

      Matt Dixon Nice!

  • @dannyboy9613
    @dannyboy9613 9 ปีที่แล้ว

    Also at 0:46 he say "He may have an ARRAY of ties, shirts, pants, and shoes."
    Well if he say an ARRAY as we thought the ARRAY as a variable ?

  • @Reebox32
    @Reebox32 8 ปีที่แล้ว

    Note: The oop tutorials are based in real objects with solid examples, the real life in programation is very abstract and most times you have to think strange way, is normal.

  • @programthis3805
    @programthis3805 9 ปีที่แล้ว

    I love these one video series so much! this is a fantastic channel!

    • @derekbanas
      @derekbanas  9 ปีที่แล้ว

      ProgramThis! Thank you :) Rails are coming next.

  • @nigelnasis810
    @nigelnasis810 7 ปีที่แล้ว

    I love this Tutorial. In a way if the person who is watching this already read some info about OOP PHP.

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

      Thank you :) I'm glad it helped

  • @SomebodyOutTh3re
    @SomebodyOutTh3re 5 ปีที่แล้ว

    Your videos are pure Gold

    • @derekbanas
      @derekbanas  5 ปีที่แล้ว

      Thank you :) I try to do my best

  • @russelldicken9930
    @russelldicken9930 8 ปีที่แล้ว

    Very useful refresher. I'd like to see you cover Cakephp too.

    • @derekbanas
      @derekbanas  8 ปีที่แล้ว

      +Russell Dicken Thank you :) It is on the list

  • @TheITWarrior
    @TheITWarrior 9 ปีที่แล้ว

    Could you make a small video covering PHP Namespaces, anonymous functions, traits? Especially traits and namespaces are topics that I have struggled with.

    • @derekbanas
      @derekbanas  9 ปีที่แล้ว

      +ITWarrior I'll see what I can do. Thank you for the request.

  • @Maxformidable
    @Maxformidable 7 ปีที่แล้ว

    He's a genius yer man Derek, brill vid, brill tutorial, well worth checking out the links, rewrite the code line by line and try to understand it. One of the best channels on youTube

    • @derekbanas
      @derekbanas  7 ปีที่แล้ว

      Thank you for the nice compliment :)

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

    You should try Brackets an Open Source software from Adobe actively being contributed to by many people.

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

    Hey Derek, this helped me, thank you so much! :)
    One request though, could you please show abstract classes in action? And does every method and attribute in an abstract class need the keyword 'abstract' before it?

  • @bigmax1839
    @bigmax1839 7 ปีที่แล้ว

    I love you! you always keep me way more advanced than my classes !

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

      Thank you :) I'm very happy to be able to help

  • @Iminic1990
    @Iminic1990 10 ปีที่แล้ว

    Nice summary of the basics of OOPHP. Next time: namespaces, auto-loading, package management, reflection classes?
    In stead of using a switch to detect whether a property exist, you could try using property_exists($this, $name) (php.net/manual/en/function.property-exists.php). This way, you would not need to change the switch statement every time you change/add/delete a property. Making your code more concise and maintainable.

    • @derekbanas
      @derekbanas  10 ปีที่แล้ว

      Rotharius Thank you :) Yes I made a judgement call there on whether to use that method or switch. I probably should have shown both. Thank you for the input

    • @Iminic1990
      @Iminic1990 10 ปีที่แล้ว

      I understand why you did it; to keep things simple for newcomers to OOPHP and not scare them off with all these new scary functions. Perhaps some inspiration for a more in-depth tutorial on OOPHP? ;)
      Anyway, thanks for the video.

  • @MegaTeckguy
    @MegaTeckguy 5 ปีที่แล้ว

    Thanks for this tutorial Derek! It was really useful as a quick review of php for work. Keep up the great work!

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

      Thank you very much :) I'm happy I could help

  • @anchalpandey9074
    @anchalpandey9074 5 ปีที่แล้ว

    Your teaching method is unique and interesting. I loved it 😃😄😃😄😆💐 thanks soo much n keep making these wonderful videos 💐💐

    • @derekbanas
      @derekbanas  5 ปีที่แล้ว

      Thank you for the compliment :) I'm happy I could help

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

    Fantastic video! It would be awesome if you could cover databases, web services, and apps backed. Thank you

    • @derekbanas
      @derekbanas  10 ปีที่แล้ว

      Tchadry I always planned on making a video like this for web services next. I may see if I can cover most everything about PHP and MySQL in one video

    • @bas3q
      @bas3q 10 ปีที่แล้ว

      Derek Banas I think it would be very helpful to do this for web novices who would like to set up their own site and need something more advanced than just how to do HTML+CSS+PHP. I'm thinking more like a start-to-finish series on setting up your own site w/hosting, DB, scripts, cron jobs etc.

    • @derekbanas
      @derekbanas  10 ปีที่แล้ว +3

      bas3q I'll cover SQL next

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

      Derek Banas Sweet, thank you!

  • @mdony722
    @mdony722 6 ปีที่แล้ว

    Very Very Usefull Video. I ll rrcomend this video to any programmer i know not yet impementing OOP and even to those about to learn programming . This is a mist see before they start writing their first code

    • @derekbanas
      @derekbanas  6 ปีที่แล้ว

      Thank you for the compliment :)

  • @Noble_1776
    @Noble_1776 6 ปีที่แล้ว

    If you are interested in OOP I recommend looking into the SOLID principles and listening to uncle bob lectures. This channel also has a great section on design patterns that are a pretty cool thing to fill your developer tool box with ;)

  • @Александр-е5ж2в
    @Александр-е5ж2в 9 ปีที่แล้ว +1

    why did you tell something, without showing the way which will be usefulll for????

  • @XxTownGamersxX
    @XxTownGamersxX 6 ปีที่แล้ว

    Spot sings: "Boww woow wooow Grover is being destroyed". Haha, I have never saw such an evil dog :D #PeaceForGrover

  • @salimkotadiya3023
    @salimkotadiya3023 8 ปีที่แล้ว

    @Darek. After my first love. this is first time i have this feeling of love you for your video. I just pose video and came here to comment. your video did trick that 4 hours of lynda training could not do. Love your video bro

    • @derekbanas
      @derekbanas  8 ปีที่แล้ว

      +Salim Kotadiya Thank you for the kind compliment :) I'm happy that you enjoyed it.

  • @BULLSHXTYT
    @BULLSHXTYT 9 ปีที่แล้ว

    Simple, easy to understand, all most power but you need to know are well stated

  • @sbuuhnhlumayo3787
    @sbuuhnhlumayo3787 6 ปีที่แล้ว

    Thanx a lot. I have learnt a lot. It's quite easy if you already know another OOP Language.

    • @derekbanas
      @derekbanas  6 ปีที่แล้ว

      I'm happy I could help :)

  • @SkyrimBeast
    @SkyrimBeast 6 ปีที่แล้ว

    I just had to sub once I heard Wordpress as that's what I mainly develop for. Thanks a lot Derek, much appreciated.

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

      Thank you :) Most of my sites are WP sites as well

  • @randomnany
    @randomnany 7 ปีที่แล้ว

    i am phper in china, my english weak, but i understand your lession, so interesting~~ i like it.
    thx~

    • @derekbanas
      @derekbanas  7 ปีที่แล้ว

      Thank you :) I'm happy the video helped

  • @ilikeitnice
    @ilikeitnice 8 ปีที่แล้ว

    Awesome video - Thank you for putting it together. I have one question, Something I'm not able to wrap my head around yet is the "this->name" thing. Could you expand on that a bit further? Kind Regards

    • @derekbanas
      @derekbanas  8 ปีที่แล้ว

      +AlAndalus Thank you :) When you create a class you need a way of referring to the object. Since the class is made before the object you can't refer to it by name so you refer to it with the default this.

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

    I still have no idea how this could be useful in like making a Webshop or a hotel room reserving website. What are the benefits of OO instead of just using SQL while loops etc?

    • @Kwisatsoundman
      @Kwisatsoundman 6 ปีที่แล้ว

      The benefit is mainly that you can much better organize your code by dividing it into meaningful sections more closely related to the way the concepts they describe are organized in the real life.
      By writing your code this way, you can also avoid code duplication by interacting between those parts more efficently, thus increasing performance and letting you more easily maintain your application and add new functionnalities to it over time.
      For example, you could create a Customer class, from wich an object $customer is created each time you get a new customer, automatically assigning him a name, an age, a salary, etc. through the constructor method of this class, and incrementing the value of a static variable $totalNumberOfCustomers by one in this case, and decreasing it through the destructor method if the customer never came back after several years.... And you could create a mother class Room, and several daughter classes LittleRoom, AverageRoom and BigRoom that would each inherit commun properties from the Room class, but still defining each one different values for those. That kind of stuff...

  • @angelinajolie3921
    @angelinajolie3921 10 ปีที่แล้ว

    Another Amazing Tutorial By Derek Banas!

    • @derekbanas
      @derekbanas  10 ปีที่แล้ว

      ***** Thank you :) I promised it was coming.

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

    Derek, coming from C# and JS, I feel like I already know PHP. I love PHP's logical function/method names... One of the things I hate about JS is the pop() push() shift() crap.
    I actually studied PHP 3 when I was like 12... Has there been a lot of change since? Its hard for me to remember.

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

      I love PHP as well. Yes there have been quite a lot of changes. It is a constantly evolving language.

  • @drewpeer
    @drewpeer 6 ปีที่แล้ว

    Best tutorial on this I've seen!

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

      Thank you I'm happy it helped :)

  • @adamschneider868
    @adamschneider868 6 ปีที่แล้ว

    This is how all classes should be after you get past Data Structures and Algorithms.

  • @yuchenzhou6525
    @yuchenzhou6525 9 ปีที่แล้ว

    very nice example, solved all my questions. Thank you very much

    • @derekbanas
      @derekbanas  9 ปีที่แล้ว

      +Yuchen Zhou Thank you :) I'm glad it helped.

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

    Hi Derek! Thanks for all your great tutorials. I was watching this one and following along in my computer. I ran into some differences and wonder what it could be due to. When I have a method in a class with a echo line and then I create the class and then call the method, I don't get the echo showing in my chrome web browser. I can see it is working as I can return something in the method and that will display, but any echo lines I put in the method do not display. Any thoughts why this would be? In your example you have the magic method __get echo "Asked for" . $name . ""; If I do this and call the get method it returns the name, but does not print the echo line (ex. Asked for sound).

  • @MIO9_sh
    @MIO9_sh 7 ปีที่แล้ว

    hmm.... I can't accept calling a static variable with object

  • @darshanvasu9933
    @darshanvasu9933 6 ปีที่แล้ว

    knowledgeable. really different way of exhibiting everything in a short time

  • @squarecandydesign4219
    @squarecandydesign4219 6 ปีที่แล้ว

    This is an awesome tutorial. But I think it's quite confusing that you use the variable $name as the animal name, and then again as the variable within __set and __get - why not use __set($var, $value) or something like that so it's extra clear it has nothing to do with the "name" of the animal you specified.

  • @ArpadBelovai
    @ArpadBelovai 10 ปีที่แล้ว

    It was really good again! I'm waiting the continuation with namespaces, EventListener or something :)
    But I have a question:
    Why do you use snake case instead of CamleCase? Is there any reason or habit? IMO the CamelCase more frequent in the PHP.

    • @derekbanas
      @derekbanas  10 ปีที่แล้ว

      Árpád Belovai I'm not biased towards any naming conventions. Since I normally consult I use what ever the organization prefers.

  • @MrBledi
    @MrBledi 5 ปีที่แล้ว

    what a great roller coaster of oop tut. to follow this is!

    • @derekbanas
      @derekbanas  5 ปีที่แล้ว

      Thank you very much :)

  • @charliecurtid5146
    @charliecurtid5146 9 ปีที่แล้ว

    Hi Derek, I just wanted to say that you are the best, You made this so much fun and easy, I want to thank you for that plus I want to request you that can you please make some videos on plugin/theme development for CMS such as joomla or wordpress.

    • @derekbanas
      @derekbanas  9 ปีที่แล้ว

      charlie curtid Hi Charlie, Thank you for the compliment :) I actually made about 80 tutorials on Wordpress here www.newthinktank.com/videos/web-programming/wordpress-how-to/

  • @TheSkogemann
    @TheSkogemann 10 ปีที่แล้ว

    You did it again, sir!
    Excelent video!
    * Applause *

    • @derekbanas
      @derekbanas  10 ปีที่แล้ว

      TheSkogemann Thank you :) I'm glad everyone seems to like these

  • @vrdelmnzano7331
    @vrdelmnzano7331 7 ปีที่แล้ว

    Good explanation sir, I followed all your videos here thanks. By the way, may you include tutorials about data encapsulation I thought you did not include that in this video. Thank you very much sir.

  • @navymiguelito
    @navymiguelito 8 ปีที่แล้ว

    Hi Derek. I would love to see a Django video, unless it's lurking somewhere in one of your many Python tutorials. Keep up the awesome work!

    • @derekbanas
      @derekbanas  8 ปีที่แล้ว

      Thank you :) Django is coming after I cover PyQt and Kivy.

  • @1scottish1
    @1scottish1 9 ปีที่แล้ว

    This is a great explanation of OOP in any language! Great video. :)

    • @derekbanas
      @derekbanas  9 ปีที่แล้ว

      Scott Allen Thank you :)

  • @imran_ashraf
    @imran_ashraf 9 ปีที่แล้ว

    soo awesome Derek! Thank you :-) Love to see a longer more in-depth version of this? more OOP PHP please?

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

      Imran Ashraf Thank you :) I'll be making PHP framework tutorials very soon. Laravel will come first.

    • @ShifterCZECH
      @ShifterCZECH 9 ปีที่แล้ว

      Derek Banas You are awesome :) But sometimes I get confused, so I just have to learn more :)

  • @ryanschurton3695
    @ryanschurton3695 9 ปีที่แล้ว

    Hey Derek great tutorial,
    I had a question regarding the __get and __set magic methods. Is it more desirable to use getter and setter magic methods or define your own custom getters and setters?

    • @derekbanas
      @derekbanas  9 ปีที่แล้ว

      Ryan Schurton It depends only on if you must do any special checking on the data or not.

  • @harjitsingh7308
    @harjitsingh7308 6 ปีที่แล้ว

    Hey derek great video! I have a request in regards to php. Can you make a video about how to make a login screen, more specifically like if a user has to be a pro member to view specific items and if they are not pro they will see a page with limited items and limited functionality etc

  • @mattnoxon3615
    @mattnoxon3615 8 ปีที่แล้ว

    Fan-freaking-tastic. 10/10. Or 5/7 whichever praise you prefer.

    • @derekbanas
      @derekbanas  8 ปีที่แล้ว

      +Matt Noxon Thank you very much :)

  • @KanchanaRandika
    @KanchanaRandika 8 ปีที่แล้ว

    Thanks Derek! Really nice fast track to PHP OOP!

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

    traits
    where are they

  • @GiuseppeTavella
    @GiuseppeTavella 7 ปีที่แล้ว

    Hey Derek, thanks so much. You know a lot of things, what did you study? Did you have a career as a developer?

    • @derekbanas
      @derekbanas  7 ปีที่แล้ว

      I'm happy to be able to help :) Yes I've been a programmer for 30 years. I've worked at Apple, in financial services, web development, etc. I currently mainly make shopping carts and mobile apps

  • @isaacquarshie2563
    @isaacquarshie2563 6 ปีที่แล้ว

    Just too good, you really explain to my understanding

    • @derekbanas
      @derekbanas  6 ปีที่แล้ว

      Thank you very much :)

  • @alexandru2882
    @alexandru2882 7 ปีที่แล้ว

    Your last PHP Programming video was very clear, despite the
    fact that it was very fast paced. But this video was way too complicated for
    me. I am a total beginner in PHP and I wanted to understand object programming,
    but I got lost at the subclass part. It is just too hard to comprehend.

  • @eduardfornes
    @eduardfornes 9 ปีที่แล้ว

    Well done! Great tutorial: complete, yet condensed.

    • @derekbanas
      @derekbanas  9 ปีที่แล้ว

      Eduard Fornés i Català Thank you :)