PHP OOP - Beginners Crash Course

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

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

  • @adamgm84
    @adamgm84 6 ปีที่แล้ว +44

    I love how I can always punch in _literally anything_ crash course and find a traversy media. this shit is straight up nectar. can't wait to watch this in a few hours.

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

      Exactly! And is always so good too. I've been paying for courses that take very long to get to the point and sometimes i just need the basics

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

      @@junioresnc so happy I discovered this channel

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

    Everything was on point except for the "static" part. Static properties or methods are ones we can access without having to instantiate an object of their class. It's not because their value is not going to change. There is "const" for that.

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

    traversy is just the best in what he do.....lets give this man a noble prize.

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

    I always refer people to this video who want to understand the OOP. Short and clean video.

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

    Got a lot out of this Tutorial. Did it after the Object Oriented Programming block in your PHP Front-To-Back series. This one was a great follow up in many places and explained some things further. A great addendum to the course and I can see how far your Teaching Style has grown. I laughed out loud when you "scorched the Earth" and cleared the screen of all the beautiful code around the 20:45 mark! Great lesson. I was able to take great notes, and you gave enough information for me to google more in-depth answers.

  • @dadou13
    @dadou13 7 ปีที่แล้ว +16

    FINALLY a detailed and well explained video on classes! Thank you!

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

    Great video, I tried a paid course to learn this without luck and this was much better and to the point!

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

    One of the best "crash courses" I've seen so far. This could very well be an intro lecture to a full course where you explain why to use certain things and when to. Great stuff!

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

    man you explained it all simply in 24 relaxed minutes while my instructors in university spent 3 months to explain and yet sucked.

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

      Because your instructors were taught by teachers who did not understand the essence of OOP ;)

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

    It's awsome . Short and sweet. Ideal for people who want to learn and refresh. Very structured .. gonna save it.

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

    Traversy Media is on top as always! Best tutorials ever posted on TH-cam.

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

    Excellent video. Didn’t brush off on the most important parts like most people teaching coding do. As someone learning my advice would be to avoid naming the variable the same as the class because it makes it hard for the student to follow $my_class = new Customer is far easier to understand for a beginner than $customer = new Customer.
    Even though in the real world we would definitely use your example. I think for a true beginner it would add value. “This is what you can name it, but this is what you would name it”. That way they don’t think that the name of the variable is imposed on them.

  • @wahedshuvo
    @wahedshuvo 18 วันที่ผ่านมา

    The only PHP OOP crash course on the internet. Traversy should re-create this video.

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

    Still relavant in 2022. Great!

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

    thanks for the upload Brad... love this series on PHP. Looking forward to part 2 of this. Also, would love it if you would do a PHP accessing a database query (pretty please)

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

      I am using localhost/pdoexample/ as serve port number as he did. But the site can't be reached it is showing. Can any one help me with this

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

    OOP like I needed to learn. Quick and simple. Thanks so much.
    I have a handy booklet I refer to, but you answered a few questions I just couldn't wrap my head around.

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

      @Robert ketter I am using localhost/pdoexample/ as serve port number as he did. But the site can't be reached it is showing. Can any one help me with this

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

    Well am actually learning php but this Video is very good to learn and easy teached.

  • @pianoLee-sx9dx
    @pianoLee-sx9dx 6 ปีที่แล้ว +3

    I love your teaching style but you should do a video showing how to integrate phpmyadmin database and php oop, woud be more practical....

  • @swharden
    @swharden 7 ปีที่แล้ว +24

    oriented != orientated

    • @borizzle1
      @borizzle1 6 ปีที่แล้ว +3

      return false;

    • @inponderland
      @inponderland 6 ปีที่แล้ว +9

      it's actually the same - it's just British.
      like Aluminum vs. Aluminium.

  • @JD-hq1kn
    @JD-hq1kn 5 ปีที่แล้ว +4

    You did a great job man... Thanks for the tutorial

  • @tjf4283
    @tjf4283 7 ปีที่แล้ว +47

    Your iCloud storage is full bro.

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

      I am using localhost/pdoexample/ as serve port number as he did. But the site can't be reached it is showing. Can any one help me with this

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

      @@sabyasachidas873 check your wamp/xamp configuration

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

      @@aleksanderwalczuk6520 yeah that i resolved in Xampp the port number was different.

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

      😂

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

    Belated! But thanks Brad. You always have the best coding tutorials. Many thanks Again :D

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

    Thank you for this video! Helps a lot.

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

    Very good video! Perfect!!!!!!!! Thank you for your help!

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

    Awesome video

  • @navinkumar-kh7uo
    @navinkumar-kh7uo 2 ปีที่แล้ว

    good one . Thanks

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

    Done with Front to Back, PDO and this one. Is it worth taking his Udemy course on Object Oriented PHP & MVC or directly take some Laravel course?

  • @codeofethics1
    @codeofethics1 7 ปีที่แล้ว +20

    please if possible make the recording in high volume, thanks

    • @gabszyztyle
      @gabszyztyle 6 ปีที่แล้ว +3

      use a headset/headphone

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

      @@gabszyztyle Yes this video has very low audio compared with the others he made. I have laptop and can barely heard it. The others were loud PHP front to back and Ajax

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

    Very epic tutorial.

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

    Enjoyed it a lot - thanks.

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

    Thanks Brad. I think your i cloud storage is almost full btw

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

    Enjoying this, BUT...with your content being monitized, you need to speak up, or increase the volume. The commercials are quite jarring.

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

    great video

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

    Thank you!

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

    definately subscribed and liked. great perosn.

  • @eosapril
    @eosapril 8 ปีที่แล้ว +3

    if you put you lectures maxim 50$, 7 people at 10people will buy your lecture
    but 200$ is to much, i know, your work is harder but sell a lot of
    lecture with low money instead few lecture with high price.... i learn
    few things from youtube ;) thx for this course

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

      It's udemy those prices an illusion they all actually sell for 10$ lol

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

    Muchas gracias

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

    Thanks for the crash course! :)

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

    Thanks.

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

    Yoo nice tutorial 🚀

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

    Its been 3years, but did you clean your iCloud storage!?

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

    Are abstract members just php's version of prototypes?

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

    How can you inherit properties that were defined as private? You called the parent's constructor on properties that were defined as 'private'. How come?

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

    Is there any second part of this?

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

      you could follow it up with his PDO crash course th-cam.com/video/kEW6f7Pilc4/w-d-xo.html and then watch how to build a php framework at laracasts.com/series/php-for-beginners and finally, pick up laravel at th-cam.com/video/EU7PRmCpx-0/w-d-xo.html

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

    Can you please do front to back on php object oriented. Please I need it like mad

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

    Is there a newer version somewhere or is this still 'current'?

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

      apart from the syntax, not much has actually changed. You will get a lot of principles on place by watching this course, even though it is few years old.

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

    ❤️

  • @pianoLee-sx9dx
    @pianoLee-sx9dx 6 ปีที่แล้ว

    At line 13, what would happen if you put $name instead of $id? Most of the tutorials use $id instead of $name or $email etc...

  • @successfulpeople
    @successfulpeople 6 ปีที่แล้ว +3

    Why do you have to type 1 for it to echo John Doe? I am sorry but this was not one of your good tutorials. It is like most of the things I learn in OOP was almost destroyed by this tutorial. You are a good teacher but you missed it in this video.

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

      Malick Cisse The 1 doesn’t affect the actual echoing of ‘John Doe’, it’s just there because the function getCustomer() requires a parameter of $id in the parantheses, as he defined it. (He could have typed any number he wanted). The 1 is then placed in the $id parameter. Then the function passes it to the first public $id variable in the class. If he didn’t type the 1, it would return an error, because the function needs the $id parameter. If he removed the $id parameter, he wouldn’t have to type the 1 anymore.

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

      Thank you very much for the explanation. You simply put it but I understand the reason now. "it’s just there because the function getCustomer() requires a parameter of $id in the parantheses, as he defined it"

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

      @@successfulpeople and if he wanted, he could've written some function using that $id, like:
      if ($id == $this->id) {
      echo $this->email;
      } else {
      echo 'Mismatch.';
      }

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

    i loved the html and css and i know c# but this was not good for me to watch :P

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

    How many adverts??? It's like watching ITV

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

    I am using localhost/pdoexample/ as serve port number as he did. But the site can't be reached it is showing. Can any one help me with this

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

    I love you brad and respect your vast knowledge but many times your beginners videos are not clear at all. You have a tendency to gloss over many concepts. For example you never explain what the -> symbol does, you use words like instantiate but never explain that. I get it. In your mind this stuff is so second nature that you don’t think every little thing needs to explained but for beginners like myself it does. I just wish you would actually explain everything you type as opposed to just typing it and expecting the user to know what you just typed. I’ve seen this in a lot of your videos and those I’ve purchased on udemy where beginner videos are not really for beginners. Once I’m experienced I can watch this video and understand but I had to go to someone else to understand what the -> and instantiate means

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

      My tip for you if you need to understand words like instantiated or the -> symbol is:
      DON'T WATCH CRASH COURSES. Get your foundation right, click on 5-10 hours long videos watch them whole and then and only then come to crash courses. You cannot expect to learn foundation concepts in a crash course.
      It might sound harsh but that's what it is! Go and watch 3 long concept videos at least before looking for crash courses.

  • @Jo-zq1ig
    @Jo-zq1ig 4 ปีที่แล้ว

    How does he go to the local.dev URL? Usually I have to go to the localhost/directoryname

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

      he changed the URL directory

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

      you can change localhost to some custom domain name, so that your pc responds to a website like "www.blablaba.com", and your pc would display the same as "localhost". It is common practice, searh for "php change localhost to custom domain name" it depends a bit on the system and server

  • @moses.muchemi
    @moses.muchemi 7 ปีที่แล้ว +9

    PHP just got more confusing

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

    Orientated

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

    Open to anyone to answer: is the purpose of private properties, at least in php, to enclose values from being accessed by unwelcome parties since only methods (that can only be declared by anyone with server access) can access them? Does, my question even make sense?😂

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

    voice is very low. please improve your sound system plz

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

    Would be more watchable without damn keyboard sounds

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

    TEXT IN THE VIDEO TOO SMALL.

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

      try playing the video at higher resolution

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

    You are misleading...You aren't using the programming patterns appropriately.

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

    Good presentation of the material but you need to learn proper grammar! The word is Object-Oriented, not Object-Orientated!!! lol ;)

  • @pianoLee-sx9dx
    @pianoLee-sx9dx 6 ปีที่แล้ว

    Hey guys! I am trying to learn this php oop but I would also appreciate if someone could assist me with my future project. I am going to be uploading some videos on youtube and I am hoping to create a website, where certain lessons are locked and are only unlocked once a previous lesson is completed. Also, users can only view a few free lessons while they have to pay for the rest... Can someone kindly assist me? cheers! I am not really good in doing a database on phpmyadmin

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

      stick to piano

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

    I hate oop so much. Just make harder for new programmers to understand and creat a stuff.

  • @jamescearnal1904
    @jamescearnal1904 9 หลายเดือนก่อน

    Object oriented, not orientated. :D

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

    You have to improve your voice in the video. so, we can easily understand what you speak.

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

    Is it just me, or does PHP kind of suck?

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

      The attachments of object oriented programming highly determine the root of demanded training series of php pop with advanced computer language terminologies of managing the web apps in pop of php.