Тёмный

9.19: Prototypes in Javascript - p5.js Tutorial 

Подписаться
Просмотров 257 тыс.
% 7 813

In this video, I examine the concept of "Prototype" in the JavaScript programming language. I look at how you can attach methods to objects via prototype (for both objects of existing JS types or your own). I also discuss the "prototype chain" and prototypal inheritance.
Support this channel on Patreon: patreon.com/codingtrain
Send me your questions and coding challenges!: github.com/CodingTrain/Rainbow-Topics
Contact:
Twitter: shiffman
The Coding Train website: thecodingtrain.com/
Links discussed in this video:
My Steering Behaviors on the word "Train" video: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-4hA7G3gup-4.html
Douglas Crockford's video on prototypes(and many more subjects): ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-DwYPG6vreJg.html
Prototypes on MDN: developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Object/prototype
Source Code for the all Video Lessons: github.com/CodingTrain/Rainbow-Code
p5.js: p5js.org/
Processing: processing.org
For More Coding Challenges: ru-vid.com/group/PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH
For an Intro to Programming using p5.js: ru-vid.com/group/PLRqwX-V7Uu6Zy51Q-x9tMWIv9cueOFTFA
Help us caption & translate this video!
amara.org/v/4XSk/
📄 Code of Conduct: github.com/CodingTrain/Code-of-Conduct

Опубликовано:

 

22 фев 2017

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 446   
@AnnyMus-rc2zh
@AnnyMus-rc2zh 5 лет назад
whenever I have a hard time understanding a concept in JS, I check if you have made a video on it. You explain things so well and really help me visualise what is happening under the hood. Thank you!
@simpleprogramming4671
@simpleprogramming4671 5 лет назад
holy moly! I've never seen such an energetic programmer like him. :))
@andredesantana2188
@andredesantana2188 4 года назад
Watch David Malan from Harvard's CS50 then!!! hahahaha
@conorwood
@conorwood 4 года назад
Especially when viewing in 2x speed
@aryany5737
@aryany5737 4 года назад
you said it!
@migueltejeda3869
@migueltejeda3869 3 года назад
I honestly love Daniel so much because I relate to his personality! Hahah
@isaacnewtonaranas3770
@isaacnewtonaranas3770 3 года назад
damn I agree! I love this guy!
@armaandhanji2112
@armaandhanji2112 7 лет назад
this is the first time I ever understood what the heck a prototype is. brilliant teacher. can't wait for next video on inheritance
@TheCodingTrain
@TheCodingTrain 7 лет назад
Thanks for the nice feedback!
@jamesjones2212
@jamesjones2212 3 года назад
As a programmer with ADHD who after 10 years still struggles much harder than your avg programmer this guy is awesome! :)
@metalslug97
@metalslug97 4 года назад
I love this format of teaching. going through the ad-lib struggle of exploring new concepts and trying to make sense of the missing pieces only makes me more curious to learn. You sir are an amazing teacher.
@mattsmith6828
@mattsmith6828 Год назад
There might be faster ways of learning coding, but this guy makes me feel like WE are on an adventure! LOL love it.
@nekoresOfficial
@nekoresOfficial 3 года назад
Lovely! much energetic and informative. Who watches this in 2x speed, try it. The man is dancing while delivering lovely information. Thumbs up!
@danielluna7648
@danielluna7648 3 года назад
Please don't delete these, as suggested at minute 18! This video just made everything click into place for me. So helpful. Thank you!
@karjedav
@karjedav 4 года назад
This man's enthusiasm is all I need in my life right now.
@darerihter5685
@darerihter5685 2 года назад
Amazing energy and great skill to explain. Rarely in my 30 yrs from programming to managing complex architectures (CDO) seen such density of information delivery. Bravo, maestro.
@setupdraw7642
@setupdraw7642 7 лет назад
This was very, very interesting for me, better understanding how Javascript works. Thank you! P.S. Please, never ever delete your vids, I would feel quite lost.
@climbers1376
@climbers1376 5 лет назад
7:42-9:00, "prototype chain" --15:33-16:43, "hasOwnProperty()" investigates "prototype chain" 3:44-7:32, I. object property list 10:45-11:20, II. prototype property list/13:17-13:22, "_proto_"/XXX.prototype --11:37-12:23, how to add functions to property list/_proto_ 13:2314:13, III. object prototype property list/"Object.prototype"
@syeda.k.2934
@syeda.k.2934 3 года назад
Never ever ever delete ur videos... what u teach in the moment from the top of ur head is gold.
@jaredsmith8003
@jaredsmith8003 6 лет назад
Finally an explanation that made sense to me. Switching between code and whiteboard made it all finally click. Then entire presentation was fun and interesting and actually really clear, even though on the surface it seemed to jump all over. Amazing job. I'll definitely be subscribing so I can watch more. These are great! Thanks for making it so much fun to watch a programming tutorial.
@TheCodingTrain
@TheCodingTrain 6 лет назад
This is such nice feedback, thank you!
@yevheniiherasymchuk
@yevheniiherasymchuk 7 лет назад
I think we should share this channel in all tutorials for beginners. Information is so useful. I'm happy that I can learn it with you. Thank you!))
@TheCodingTrain
@TheCodingTrain 7 лет назад
THank you!
@The12West
@The12West 7 лет назад
Im currently learning vanilla js, but I just love how easy the concepts in your videos are to digest. Thank you very much for doing these :)
@sergioangel8362
@sergioangel8362 6 лет назад
Really appreciate your teaching style and how you make learning fun. Thank you for taking the time to make these videos.
@abeechr
@abeechr 7 лет назад
Yet another gem. I too can't wait for the inheritance follow-up. thanks Dan!
@gamestv4875
@gamestv4875 4 года назад
The passion of coding shows in your attitude. To the point and very energetic .. lol Love your tutorials. Keep em coming.
@chrisoleary8401
@chrisoleary8401 3 года назад
You're lessons are terrific, mate. Really helping me to understand these tricky areas of JS.
@EpicGamerNC
@EpicGamerNC 7 лет назад
Great video! I learn a little more from each new video. Can't wait for the one on "this".
@fuckyeahnigge
@fuckyeahnigge 7 лет назад
Dude, you are a legend, beyond, fucking MEASURE!
@jithinkg9865
@jithinkg9865 6 лет назад
sometimes your videos awaken me out of my sleep in the late nights.love your your attitude and humour
@PakArchives
@PakArchives 3 года назад
The way you teach programming is commendable. Thank you for such an awesome tutorial.
@michaelthomas-op6zi
@michaelthomas-op6zi 6 лет назад
You are very good at getting across the construct. Relevance, explanation and example all help to give context to the construct. Thank you
@markroberts6574
@markroberts6574 5 лет назад
Every now and then I come across your videos randomly. You are by far the best at explaining dry, overly- complex topics. I'm an experienced full-stack developer. I learn something every time time I watch one of your videos. I've taken university courses, professional development training, online subscriptions to e-learning sites. Your approach blows them all out of the water. Clear, fun and to the point. Thank you. I pick up more from you in 20 minutes than I do from a day of reading MDN documentation. Anyone disagrees, I suggest reading developer.mozilla.org/en-US/docs/Learn/JavaScript/Objects/Object_prototypes, and then watching this video. Cheers.
@vineetbramhankar8099
@vineetbramhankar8099 3 года назад
Extremely energetic video and no need to mention what a brilliant way to teach
@thangha8289
@thangha8289 3 года назад
Dude, I love the way you talk, and the knowledges you teach, this is really useful with me, thank you so much!
@PabloBassil
@PabloBassil 7 лет назад
You are awesone, i wish that all teachers had the same passion to teach as you. Grettings from Barranquilla, Colombia.
@mehmeterkan9193
@mehmeterkan9193 5 лет назад
Even if you have no clue about JavaScript. In this video you will understand prototyping. Great video !!!
@RatanSingh-wv8ht
@RatanSingh-wv8ht 6 лет назад
What you explained on the white board helped me understand Prototype better. Thanks.
@scotthofbauer5448
@scotthofbauer5448 4 года назад
Damn, you make some great videos! Very clear and concise and I appreciate you putting all the code on Github, makes it really easy to follow along!
@typicallucas4164
@typicallucas4164 7 лет назад
Thank you very much for taking the time to make this topic accessible to us.
@TheEmperorXavier
@TheEmperorXavier 2 года назад
I came from MDN documentation and ended up here. I am soo grateful that I clicked on this video, thanks soo much for the great work
@claudiusrauter
@claudiusrauter 7 лет назад
oh man, i really love your videos, please never stop!
@UstedTubo187
@UstedTubo187 5 лет назад
Telling me not to watch the video in the first 30 seconds earned you an automatic like! I love it!
@michaelpimenteljr3530
@michaelpimenteljr3530 7 лет назад
You are brilliant! I have struggled with understanding prototypes and now I do ! I learn so much from your videos. Thank you so much
@TheCodingTrain
@TheCodingTrain 7 лет назад
So glad to hear, thank you!
@nikitamalpani8602
@nikitamalpani8602 5 лет назад
Awesome and helpful as always..I really love your teaching...thank you for explaining in such an easy way..
@plusme3000
@plusme3000 7 лет назад
Finally someone could explain me clearly what this is for... thank you!!
@jrdn129
@jrdn129 7 лет назад
this is the teacher we need. makes boring subject very interesting
@HeyImaTree
@HeyImaTree 7 лет назад
i love you man. keep up the good work
@stivemangala2215
@stivemangala2215 5 лет назад
Your understanding of programming is amazing.
@MisterNorthernCanuck
@MisterNorthernCanuck 7 лет назад
I've been "fortunate" enough that my web teacher as shown us the class syntax from the get-go... I put that in quotes because when it comes to ANY external library that's out there such as jQuery, Howler, etc, I needed the prototype syntax knowledge to figure their contents out. Thank you!
@cmcdonough2
@cmcdonough2 6 лет назад
Thanks man. Your videos are so funny and educational. I've learned so much and I really appreciate it.
@CamiloAcevedo1993
@CamiloAcevedo1993 5 лет назад
Awesome!! I'm learning to much with your videos!! Keep going!!
@sandstorm_lp
@sandstorm_lp 5 лет назад
Very good video and a nice way of explaining the basic concept of Prototype. Thank you.
@deadxleaves
@deadxleaves 7 лет назад
FINALLY. Thanks for the informative video. Finally figured out prototypes.
@bjarkesporring9859
@bjarkesporring9859 7 лет назад
I fucking love your style of teaching. Thanks for not being boring!
@sleepingUgly
@sleepingUgly 2 года назад
hey this was really nice.. really cool examples and segways into different topics thank you
@darkfafi
@darkfafi 7 лет назад
You are the best teacher a programmer could wish for
@DeadGodMetal
@DeadGodMetal Год назад
I love the way you teach and your amazing passion for teaching! Thank you so much :)
@MajidFouladpour
@MajidFouladpour 3 года назад
You are the Bob Ross of programming!
@kerimtim
@kerimtim 5 лет назад
This guy has a great sense of humor and it's a pleasure to listen to him :D even if that's not your subject.
@codybui6252
@codybui6252 Год назад
Finally I understand what prototype is. Thank you very much.
@programandocomputadorescom5215
You are fantastic! Thanks!
@TheCodingTrain
@TheCodingTrain 7 лет назад
Thank you!
@FromRootsToRadicals_INTP
@FromRootsToRadicals_INTP Год назад
You have a good knack for teaching. Many will benefit. Thanks again!
@Kirshach
@Kirshach 3 года назад
Easily the best explanation I've seen, thank you
@glorayyeee
@glorayyeee 4 года назад
You Sir are hilarious and an amazing teacher! Please never change and thank you for sharing your knowledge!
@muabyt7333
@muabyt7333 7 лет назад
Fantastic... like always
@chrisveal391
@chrisveal391 4 года назад
bro your awesome keep it up make learning fun and hold my attention hard to find when it comes to this topic!
@ugarz
@ugarz 7 лет назад
I wish u were my teacher when I used to learn at school. U're fantastic ! Prototypes has no secrets for me now !
@athenkosinkonyeni1472
@athenkosinkonyeni1472 4 года назад
I love this guy's energy
@Incredible701
@Incredible701 5 лет назад
Amazing explanation. Thanks :) I love your enthusiasm btw
@XboneAus
@XboneAus 5 лет назад
I looked all over MDN and repeated parts of my Udemy course but no one explained object prototype better than this guy. I had the biggest "AHHA moment" and to top it all off he's so charismatic, he had my undivided attention throughout the video. Excellent Work ^_^
@kobe248ryant
@kobe248ryant 3 года назад
Thanks for making me understand prototype, thank you!
@gime1945
@gime1945 7 лет назад
Crystal clear! Thank You!
@SuperSamsosa
@SuperSamsosa 4 года назад
7 min in and its already way better explanation than the rest of what if seen
@mahmoudhammmad8089
@mahmoudhammmad8089 5 лет назад
i was about 1 week moving from book /video to an other to understand it >>>but finally i understanded it due to you "thank you "
@aniekutmfonekere740
@aniekutmfonekere740 3 года назад
your way of teaching is awesome
@Smongo412
@Smongo412 7 лет назад
passion makes a great teacher
@goofyrice
@goofyrice 7 лет назад
Honestly, learning how to find every function that is built into a certain object might be the most important thing we've learned from you. Not sure how to do something to a vector? Just create a vector and then go to the console. Fantastic.
@iamsoorena
@iamsoorena 6 лет назад
this guy is the funniest person in the javascript(and probably the whole programming) world. I LOVE HIM
@TheCodingTrain
@TheCodingTrain 6 лет назад
thank you!
@yckieh568
@yckieh568 5 лет назад
My teacher discussed this for 2 hours and I was so lost. I watched your video bam! I get it! Amazing!
@yckieh568
@yckieh568 5 лет назад
@Amy White yes and I don't really like people who ask for another person's sexuality on a youtube comment about Javascript. no judgement.
@MasterZiomekPL
@MasterZiomekPL 5 лет назад
Best teacher I've ever seen
@rosgarcia6999
@rosgarcia6999 5 лет назад
You are so passionate at teaching codes and I like your way of teaching! You gained my sub sir! Thank you so much for letting me understand prototypes. Now I can go with the challenges I encountered in my online course
@TheCodingTrain
@TheCodingTrain 5 лет назад
Glad to hear!
@jamjam3448
@jamjam3448 4 года назад
I've subscribed. I just love your exuberance.
@shahvirat1990
@shahvirat1990 4 года назад
You're so entertaining to watch. You take the BORING out of CODING.
@3xtraspicy
@3xtraspicy 5 лет назад
Amazing! Thank you so much for sharing your knowledge :)
@joshwil7176
@joshwil7176 7 лет назад
This was an amazing explanation. Thank you !!
@talk2s5061X
@talk2s5061X 4 года назад
good video man, you explain concepts very well
@tnduc91
@tnduc91 7 лет назад
So so fantastic (y). You give me a deeper understanding about prototypes. Followed you ;)
@TheCodingTrain
@TheCodingTrain 7 лет назад
Thank you!!
@capy_can_code
@capy_can_code 2 года назад
Loved it 😍
@notNewlyBorn
@notNewlyBorn 6 лет назад
Brilliant, brilliant! Thank you and keep up your good work :)
@antoineweb1
@antoineweb1 5 лет назад
Thank you so much for such a brilliant performance.
@yogeshbhatt3806
@yogeshbhatt3806 5 лет назад
i was always looking for such a teacher who can teach in funny way ...lol ,keep it up man..
@mrHuangEnglish
@mrHuangEnglish 4 года назад
Very impressive and very helpful! Thanks very much!!
@bryanfortnum3355
@bryanfortnum3355 7 лет назад
great work , very clear to follow for me
@TheCodingTrain
@TheCodingTrain 7 лет назад
Thank you!
@TheMarrouane
@TheMarrouane 3 года назад
This guy is a legend ! You can't explain it better
@donnguyen5164
@donnguyen5164 6 лет назад
Very good tutorial as well as entertaining!
@iamworstgamer
@iamworstgamer 3 года назад
today is the day i understood prototype. after 6 years thank you man.
@carolinahernandezphillips5897
@carolinahernandezphillips5897 4 года назад
I loved this video! Thank you very much, you are a great teacher :)
@Endredos
@Endredos 6 лет назад
incredibly good job
@shadkhel4306
@shadkhel4306 7 лет назад
Thank you for the great presentation.
@100marocain2
@100marocain2 3 года назад
this video wasnt a desaster but it was so useful, thanks bro so much
@muhammadasimsabir8526
@muhammadasimsabir8526 4 года назад
perfect explanation 👍
@moltobene1528
@moltobene1528 7 лет назад
Don't delete this video it's GREAT! :) Thank you!
@TheCodingTrain
@TheCodingTrain 7 лет назад
Appreciate it, thank you!
@khanusama7314
@khanusama7314 6 лет назад
awsome video... and awsome style
@jadencarey2407
@jadencarey2407 4 года назад
What a great teacher!
@pauljavadi1906
@pauljavadi1906 6 лет назад
Very well explained. Thank you
@bennaylor4585
@bennaylor4585 4 года назад
What an excellent teacher! Thank you :D