6.2: Classes in JavaScript with ES6 - p5.js Tutorial

Поділитися
Вставка
  • Опубліковано 19 гру 2024

КОМЕНТАРІ • 588

  • @MattCurney
    @MattCurney 6 років тому +318

    "What does it mean to be a bubble?" I literally understand Classes now because of this adorable man

    • @bernardnoctor5627
      @bernardnoctor5627 4 роки тому +2

      If I wasn't unemployed I would subscribe to desperate dan he is funny I like his real bell and he helped me to understand oops

  • @jonahmorgan2474
    @jonahmorgan2474 7 років тому +447

    His ramble about "What does it mean to be a bubble?" makes more sense if you know he got a Bachelors in Philosophy, as well as Mathematics. Just a fun fact.

    • @JakeWHamilton1
      @JakeWHamilton1 5 років тому +15

      I also have a degree in philosophy and have been naturally drawing the analogies between phil and coding as I learn. Have been trying to explain these connections to my brother (programmer, no phil) who just won't hear it...immediately sent tthis video his way. one day ill convince him he is actually a philosopher on the cutting edge of ontology, asking 'what does it MEAN to be a programmer!?'

    • @millanferende6723
      @millanferende6723 3 роки тому +2

      @Jacob Hamilton Don't you mean what does it MEAN to be an object? 😏

    • @kamelyehya2182
      @kamelyehya2182 3 роки тому +5

      @@millanferende6723 A woman once said.

    • @x7w6
      @x7w6 3 роки тому +1

      @@kamelyehya2182 quick witted

    • @martynconkling8876
      @martynconkling8876 2 роки тому +1

      lol nice, Bubbles are quite a cool mathematical concept to think about no matter what age you are!

  • @carllitabobita
    @carllitabobita 3 роки тому +79

    Some educational coding videos are hard to watch: 10 minutes feel like the longest, driest eternity. With your videos, 10 minutes pass so quickly, and I learn a lot! Thank you so so much for your content!

  • @JustinSulak
    @JustinSulak 4 роки тому +58

    We live in an age where it doesn't matter if I don't understand a single word my professor is saying, because I can come to UA-cam and learn ten times more! Thank you for this video series!

    • @lookupverazhou8599
      @lookupverazhou8599 2 роки тому +1

      Well, if you think throwing away money doesn't matter...

    • @JokerLover123
      @JokerLover123 3 місяці тому

      ​@@lookupverazhou8599A diploma aint cheap.

  • @Alessandro-nq3tm
    @Alessandro-nq3tm 7 років тому +105

    You are the best teacher in the world!! :)

    • @noxid86
      @noxid86 5 років тому +6

      For real, youtube should pay this guy more

  • @Beyond.anime.23
    @Beyond.anime.23 25 днів тому +1

    it is 2024 and still you are the teacher to learn from.

  • @muhammedmustafa5725
    @muhammedmustafa5725 4 роки тому +6

    I feel so bad as I have just found your channel now, and I haven’t seen this video for 2 years. You are by far the best teacher I have seen

  • @leyshonrr
    @leyshonrr 2 роки тому +8

    Dan, I have been at pains with OOP in python & R for many years. Your video series here is honestly some of the most tangible and comprehensible learning material I've come across for this programming paradigm.

  • @greatsuccess4734
    @greatsuccess4734 5 років тому +2

    Coding in Javascript for 2 years now, have watched tons of videos where has this guy been hiding all the time. damn amazing tutorial.

  • @maarten452
    @maarten452 6 років тому +69

    Note that classes always start with a Capital letter.

    • @mirzaaghaalikhan183
      @mirzaaghaalikhan183 4 роки тому +2

      Isnt that just a convention?

    • @VivekYadav-ds8oz
      @VivekYadav-ds8oz 3 роки тому +2

      @@mirzaaghaalikhan183 Yes, but one that would help a lot if followed thoroughly.

  • @romanemul1
    @romanemul1 7 років тому +55

    a question that has been burnt into my mind after watching this video. "Hows to be a bubble ? " Im going to think about that for a very long time.

    • @TheCodingTrain
      @TheCodingTrain  7 років тому +12

      mission accomplished!

    • @jelto-tankredbasel9060
      @jelto-tankredbasel9060 7 років тому +4

      Now that I know how to be a bubble... I am afraid of bursting at any moment...gosh being a bubble is so difficult.🙈

  • @fotiem.constant4948
    @fotiem.constant4948 3 роки тому +1

    This guy is a genius. It's been 3 years now and your video is still very relevant. Thanks for making my understanding of OOP easier sir.

  • @heidik1757
    @heidik1757 4 роки тому +2

    The reason I enjoy learning p5 is because it allows me to visually see JS in action and how all the different parts (loops, conditionals, etc.) translate visually. I think this will help me to apply JS to less visual applications when the time comes. I also think he's hilarious. Great teacher.

  • @m.pashakhoshkebari2045
    @m.pashakhoshkebari2045 4 роки тому +2

    The first time I watched this, I understood nothing and was super confused. The next day, I went back on it and decided that I was going to try my hardest to try to learn again. By the time it was finished, I had understood everything and realized that no UA-camr or teacher will ever be able to teach like this man can. You truly are the goat :)

    • @BusyAsBee1738
      @BusyAsBee1738 3 роки тому +1

      Same experience dude. I love coding but I've put it off for a few months because i need to write college essays (I REALLY REALLY hate them). But I'm rewatching a lot of this man's videos in an attempt to make bootleg versions of my fav 2d games

    • @JatanPassi
      @JatanPassi 3 роки тому

      @@BusyAsBee1738 Hey there person so did you make that game yet or what?

    • @BusyAsBee1738
      @BusyAsBee1738 3 роки тому

      @@JatanPassi sort of. I made a pong game and then got held up w life. But I'm in college for cs now so I should be making bigger and better things

  • @gabrielcoku5774
    @gabrielcoku5774 5 років тому +6

    You are fun and amazing. You realise later that you actually didn't struggle at all to understand what ever He was teaching about.

  • @itsMapleLeaf
    @itsMapleLeaf 7 років тому +91

    i pretty much know most if not all of this stuff, but it's still fun to watch Dan talk about it :D

  • @DesignDensity
    @DesignDensity 2 роки тому +5

    So much energy, so much motivation, when I watch your videos I get 1000% more inspired and motivated to do things in writing codes than just watching...
    You are remarkable :)

  • @viveksakpal3231
    @viveksakpal3231 7 років тому +24

    One of the best teaching skill i have ever seen...great job

  • @andrelie7760
    @andrelie7760 4 роки тому

    "What does it mean to be a bubble?"
    You just won me over, love the energy, love the way you talk, you're gonna teach me how to create classes, and everything else

  • @seeker4570
    @seeker4570 6 років тому +5

    Very well done, good example of JS and OOP. "this. is the bane of your existence now", so true.

  • @bahaatamer1245
    @bahaatamer1245 6 років тому +6

    I just found out about this tutor by co-incidence when I was searching for online videos to explain classes, and he is really brilliant to make things fun and easy!

  • @santiagoramirez5507
    @santiagoramirez5507 3 роки тому

    The best coding teacher on UA-cam ever!!! Regards from Chile!

  • @RyanValizan
    @RyanValizan 4 роки тому

    Your statement at ~4:50 is just too true! There is no one single method to solving a problem in programming.

  • @jostermayer
    @jostermayer 6 років тому

    I watched hundreds of programming videos had six years of programming in school and your videos is the first thing where I really understand coding

  • @retrorek
    @retrorek 5 років тому +7

    Please tell me you teach for a living, you've got the perfect spirit for it. This helped me so much trying to refresh my brain after my break from my curriculum. Thanks so much!

  • @MubarkAlKhatlan
    @MubarkAlKhatlan 2 роки тому

    The reason why I changed my major from computer science to Mathematics back in 2009 is recursive function and classes with a very bad teacher.
    Watching your videos made it looks easy.
    You are a good teacher, Sir.

  • @gary3548
    @gary3548 4 роки тому

    Finally a programming tutorial, where the presenter has passion and makes you not fall asleep! thanks!

  • @ahmedsellami1743
    @ahmedsellami1743 5 років тому +2

    I think You are the best teacher in programming. I didn't understand classes before but now thank You !!!

  • @sultanehind5884
    @sultanehind5884 4 роки тому +1

    Its 2020 and I came here watching all the videos from the start of the series... sir but you said it might be outdated when I watch it... it kind of got me worried there. But still I am going to finish the course, hope it will help me grasp the ml5 playlist easily!!
    BTW sir you are the most amazing professor I ever saw in my life. God may bless you with long life!

  • @J3SUZFR33K
    @J3SUZFR33K Рік тому +1

    Bro! You are the man! You can teach the world my friend! I love your enthusiasm, charisma, and passion! Keep it up Boss man!

  • @darkhorse621
    @darkhorse621 3 роки тому

    "What does it mean to be a human?" This statement was the aha moment for me in understanding Objects and Classes.
    Thank you so much !!!

  • @Juliazevallos-vn5vw
    @Juliazevallos-vn5vw 2 роки тому

    You explain things so easy. Other videos take you directly to the coding aspect and its hard to understand the why and how. Thank you for being so clear and detailed in your explanations.

  • @Vendavalez
    @Vendavalez 6 років тому +14

    "There are 15 different ways to do everything in JavaScript and also this video will be out of date by the time you watch it because there will be a new way which peopel are doing now, I am just trying to keep with the times."
    Me too train man. Me too.

  • @kamoroso94
    @kamoroso94 7 років тому +3

    I think you did a great job at explaining the role of the `this` keyword in a class! I just wanted to respond to something you said around 12:38 about where you can define the class. You should define the class before you instantiate it. If you tried to create an instance of a class in the global scope above the class definition, it wouldn't work, so the class should be defined before the rest of your code runs, generally.

  • @puneetjain5625
    @puneetjain5625 4 роки тому +1

    Worked in oop for some time, still all this create a new meaning for me. I always learn coming back to you. You have changed my approach to programming.

  • @nostalgicnow6001
    @nostalgicnow6001 2 роки тому +1

    I can watch him all day. I love your style of teaching

  • @1inda1ee
    @1inda1ee 2 роки тому

    I really love your videos because I'm currenty working as a web developer and everytime I get to use, I just didn't know how to do it properly. Anyhow, I totally understands and can do class function with confidence. Thank you ~

  • @thanos4177
    @thanos4177 5 років тому +9

    Happy Teachers' Day :) Thank you, you made coding a lot easier to me!

  • @gemma4784
    @gemma4784 4 роки тому

    these videos are getting me through my 'programming for visual artists' class........ i love this man

  • @neotericphoenix5811
    @neotericphoenix5811 7 років тому +11

    WTF! New favorite teacher!

  • @hnariman_
    @hnariman_ 4 роки тому +6

    Tutorial is really fun to watch, especially when you're learning more complicated concepts of OOP. It will be pretty beneficial to have links on other tutorials, where let/var explained as example. Personally I get confused only at the stage where print() replaced console.log() and started watching from this particular tutorial I get confused, whether print() is custom function, node.js function or a new feature brought by ES6.
    But anyway, tutorial is fun and thanks for explanations!

  • @vasilispapasakellariou4074
    @vasilispapasakellariou4074 3 роки тому

    I have reached a point where i am coming in ur channel just to have fun and chill listening to u ! Duuuuude.

  • @baxudak
    @baxudak 4 роки тому

    dude, even tho it's already 3 years old, i'm amazed by your explanation skills! thank you for helping me understand classes :D

  • @Kasas90
    @Kasas90 3 роки тому

    Sir you got my attenction within the first 10 seconds. What an amazing format did you choose. You nailed it.

  • @knowledge_4203
    @knowledge_4203 4 роки тому +2

    I ABSOLUTELY LOVE how he teaches. I am definitely SUBSCRIBING!

  • @baumian.
    @baumian. 6 років тому +9

    You're honestly just such a good teacher. Your humor is just great and you're explaining everything really well. Thank you!
    EDIT: Thanks for the heart

  • @sajeevanfuels1980
    @sajeevanfuels1980 4 роки тому +2

    Man you are just so talented and such such amazing teacher and ofcourse a marvellous coder!

  • @somalibeebs6092
    @somalibeebs6092 5 років тому

    thanks for all that energy you releasing just to teach us javascript. most teachers are not so energetic.

  • @hugoandrade8691
    @hugoandrade8691 4 роки тому

    what a perfect teacher, i started to love coding, because i started to watch his classes. : 3

  • @StrengthScholar0
    @StrengthScholar0 3 роки тому

    Thank you so much I'm in a coding bootcamp and I was completely lost on classes and constructors until this video. You saved my ass

  • @shadowbro8522
    @shadowbro8522 6 років тому +1

    Love you. You make everything very easy and it feels like watching a comedy show.

  • @abdessadekelaasri8862
    @abdessadekelaasri8862 2 роки тому

    I just open youtube sometimes and pick a random video from your playlist and watch, It's so fun and very educational. Thank you teacher :)

  • @nihalr9827
    @nihalr9827 3 роки тому

    @
    The Coding Train U could use ( at 18:18 ) :
    this.x += random(-5, 5);
    this.y += random(-5, 5);

  • @snimerjotsingh5561
    @snimerjotsingh5561 4 роки тому +1

    watching in 2020 , it is really helpful ,watching the full playlist from the start so didn't understand first time and now it is clear .
    please arrange your youtube page so we can find every video clearly
    thank you soooo much !!!!!! I wish you were my professer
    and also i am very young
    12 years

  • @iqrasuhail3516
    @iqrasuhail3516 3 роки тому

    I finally understand what the “this” keyword is used for when referring to objects. So thank you!

  • @ndukwearmstrong
    @ndukwearmstrong 5 років тому

    Code Train is great, hes rilli intelligent. Makes the most complex things a piece of cake

  • @faribadadko5694
    @faribadadko5694 4 роки тому

    You are awesome!! I'm advertising your video all over my coding cohort! Thank you!

  • @martynconkling8876
    @martynconkling8876 2 роки тому

    Such an excellent introductory video to classes! I use this video in my classes and have been referring people to this playlist for years!

  • @logeshwaran3016
    @logeshwaran3016 3 роки тому

    Sir I really wanna give you a hug sir you makes things easy and you are the best teacher in the world ever ❤️

  • @theriddler525
    @theriddler525 3 роки тому

    I have taken classes on this stuff and not understood it. Thank you for describing these concepts in a way that finally let me understand them!

  • @DanielHernandez-jn8lz
    @DanielHernandez-jn8lz 2 роки тому

    What a great way to explain something that usually is boring and abstract and turn it to something very easy and funny...
    I'm learning JS and I will watch all your videos!!!!

  • @Killjoy3990
    @Killjoy3990 6 років тому +2

    OH MAN this is what I needed. I needed it laid out for me exactly like this.

  • @makitocode
    @makitocode 4 роки тому

    One of the best videos to explain objects in JS. Excellent work with these videos, really really helpful!

  • @user-cy3kn7zx1l
    @user-cy3kn7zx1l 4 роки тому

    You add so much flavor and spice into teaching that it's very fun to learn and follow along! Awesome work dude!

  • @AJBatac
    @AJBatac 3 роки тому

    I wish my teachers in the past are 1/100th of your enthusiasm.

  • @ryanscoville3586
    @ryanscoville3586 3 роки тому

    Thank you for being the kind of teacher that you are! I learn a ton and laugh a lot all the while. Keep it up!!!

  • @mrwrench3131
    @mrwrench3131 2 роки тому

    "this dot is the bane of your existence now, welcome to your life" I felt that on a personal level :)

  • @Nostradamus21b
    @Nostradamus21b 5 років тому

    This guy is a GENIUS. Greetings from CHILE.

  • @WeirdStuffaaaa
    @WeirdStuffaaaa 2 роки тому

    best coding teacher i ever had

  • @siten1
    @siten1 Рік тому

    I love you sense of humor; subscribed and thank you!

  • @andrefurlan
    @andrefurlan 7 років тому

    In other words ECMA turns into Java.
    Now i can finally begin to understand ECMA Script!
    Thanks!

  • @jahelsantiago
    @jahelsantiago 5 років тому

    you and julioprofe are the best teachers in all internet

  • @josepena-bk8wd
    @josepena-bk8wd 4 роки тому

    You are a genius , philosofy and Programming are connected

  • @thomasalston
    @thomasalston 6 років тому +1

    Dude, you have a very unique method of teaching! Thank you for going into such detail and the repetition, it was very helpful.

  • @HaudreN
    @HaudreN 5 років тому

    As a programmer who has the painful task of understanding how classes in JavaScript are made(ps: personal opinion- no other language is as painful to learn as JavaScript( from the OOP langs. ) I can say that this dude made an incredible job of explaining it

  • @barteg_s
    @barteg_s 3 роки тому

    You've got so much charisma dude! Thanks for this video!

  • @j653vup
    @j653vup 2 роки тому

    Love the energy, the white board and the explanation

  • @alwaysloud-zs1ce
    @alwaysloud-zs1ce 3 роки тому

    mad scientist's vibes 🖤 love it, thanks for the video series!!!!!!!!

  • @waltercisneros9535
    @waltercisneros9535 4 роки тому

    New to javascript and i've been using console.log(); for print(); stuff... what a time to be alive

  •  2 роки тому

    I came up with idea that class is like a gene of the object. Maybe I am wrong because it does not have all the data - just "sockets" or plugs through transport that data for the unique object. Template probably would be the most appropriate synonym. But You are so awesome! I am in the process of intense learning - I was really frustrated with the objects, instances, methods, getters, and setters concept - I was so used to the functional way... You have the talent to make it understandable. Interesting that other lecturers also mentioned templates and blueprints, but You explained it so live - that it made so much more sense to me. I can guess that most tutorials/lectures ARE lacking proper visuals.
    If somebody who is reading this is thinking about making their own course or program - You can win the market with obvious, understandable graphics. Don't avoid that. You may think that You are explaining well, but boy You are wrong!!! 2% will understand... others will waste their time. I am a visual person. I am imagining everything and sketching every time to make the concept clear - I have a hard time understanding from jumping between files and hearing "we should do that...." - why??? Why do you think I remember why we should do that? Remind me of the sketch! On the model.

  • @drivgest
    @drivgest 7 років тому +2

    always loved the way you write codes. so clean and efficient.....

  • @whatsnewnow4469
    @whatsnewnow4469 3 роки тому

    thanks you gave the actual idea what does class does thankssssssss a lot. i liked your enthusiasm throughout the video.

  • @namansharma4669
    @namansharma4669 3 роки тому

    I am so thankful I found this video, this person and his bubbles

  • @Linkario86
    @Linkario86 5 років тому

    Who deserves a sub? YOU, coding train! YOU deserve a sub!

  • @muhammadsafiullah8428
    @muhammadsafiullah8428 5 років тому +1

    I paused the video just to comment that you are awesome. I love you ♥♥♥♥

  • @VenomG3005
    @VenomG3005 3 роки тому

    sir your teaching style is brilliant.

  • @akshhatsrivastava1972
    @akshhatsrivastava1972 4 роки тому

    Thank you so much for this great explanation! "What it means to be a bubble?" really made me understand constructors and classes.

  • @tod8334
    @tod8334 5 років тому

    You are the best teacher in the world. :)

  • @arshamazami159
    @arshamazami159 4 роки тому

    The best explanation for classes and oop programming thank you mr shiffman for your efforts 👌

  • @gonzalez2568
    @gonzalez2568 3 роки тому

    Amazing man! extremely well explained!

  • @kisme01
    @kisme01 4 роки тому

    I wish I stumbled across this video when I was learning about OOP. Teachers and other people from the internet tend to massively fuck this topic up and making it a real pain to understand. Well done man

  • @yashchauhan5710
    @yashchauhan5710 5 років тому

    love the way you teach ...... really nice all those concepts goes straight inside

  • @niskarshdwivedi1549
    @niskarshdwivedi1549 4 роки тому +1

    You are definitely a programmer sir ...

  • @CaptainSchlockler
    @CaptainSchlockler 6 років тому +1

    You're actually quite a good lecturer

  • @empathy9963
    @empathy9963 Рік тому

    All of your work is so impressive.

  • @codeclover3167
    @codeclover3167 3 роки тому +2

    5:51 great I am learning this 3 years later 😂

  • @davidrobertson5996
    @davidrobertson5996 4 роки тому

    Really good introductory explanation of classes, thanks Dan.

  • @ChauNezuko
    @ChauNezuko 4 роки тому

    BABY BUBBLE COMES OUT OF THE BUBBLE-MAKING MACHINE
    ok man, its nice :)) Best teacher ever!

  • @SharonKerenTLV
    @SharonKerenTLV 4 роки тому

    Excellent, as always, you are a very very very good teacher!!!

  • @swayrxlfn6385
    @swayrxlfn6385 3 роки тому

    omg ..ur the best coding teacher!