Object Oriented JavaScript

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

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

  • @P8860
    @P8860 9 ปีที่แล้ว +14

    I've read countless JavaScript blogs and books on Constructors and Prototypes but they don't explain it as crystal clear as you do. You should seriously write a book man. Would love to see you break down and pick apart an angular or node.js tutorial. Thanks for making these videos. I know making them takes ALOT of work and time to develop.

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

      +P8860 Thank you :) it is nice to hear that I cleared everything up. Maybe I'll make a book some day and sell it for $1 just to see how many sell. Angular and Node are coming right after JQuery.

  • @abdelouery4114
    @abdelouery4114 9 ปีที่แล้ว +109

    Your channel is like a big book of secrets, contains every thing a programmer needs to know about a programming language, Thank you fo that :)

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

      +Abdel Ouery Thank you for the compliment :) You're very welcome

    • @Mireda-wr3yc
      @Mireda-wr3yc 9 ปีที่แล้ว +2

      +Abdel Ouery , i totally agree with you, he's better than my real teachers here ,every year i graduate is because of his tutorials ,so thank you again sir +Derek

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

      +Derek Banas can you make bash in one video

    • @rerebacchus
      @rerebacchus 9 ปีที่แล้ว +3

      +Abdel Ouery except theyre not secrets. theyre in books too. :D

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

    Adding the time stamps is a wonderful idea. When I am not just trying to learn from you tube videos, but trying to do a real program, I can never remember a useful video. This will make finding your examples so much easier. Thanks for going the extra mile.

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

      I'm very happy that they help :)

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

    30:37 multilevel polymorphism like living>animal>mammal>human>citizen>employee

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

    I'm only 35 minutes but you've already solidified a few concepts that have been somewhat unclear to me for the last few months. My sincere gratitude! Thanks!

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

      +Derrik Nasca You're very welcome :) I'm happy that I could help.

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

    This is freakin' legendary! The best part I like about your style is how you are so quick in going over concepts, which all the other tutors take ages to go through at the ultimate cost of the student completely giving up on the tutorial! Great job sir!

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

      Thank you for the compliment :) I'm very happy that the videos help

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

    The most concise and clear tutorial in JS OOP I've ever watched. One request is a link to a project where I can practice on. Maybe a CRUD project like Customer Management or something else?

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

      Thank you very much :) I'll see what I can do about the request

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

    This video explains OOPs concepts in JS perfectly and to the point, instead of going in circles when reading any book! Thanks much!

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

      Thank you :) I'm glad it helped

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

    This is a superior video to those I've watched recently. I'm coming from C#/C++ with very little javascript, and I was looking for a good primer. You are:
    #1 Easy to understand. Good communicator. Clear audio.
    #2 Concise and quick with your accompanying code.
    #3 Smart about the educational route you go down.
    I think this is too dense for a beginning programmer to learn from in one go, and my only advice to them would be... watch it four times. It is hard to find information of this quality and density presented by someone without an Indian accent... (I'm only half joking)

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

      Thank you for the very nice compliments :) I greatly appreciate them.

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

    Thanks Derek for this and for the tutorial 'Learn JavaScript in one video'. I have chewed on the book 'JavaScript The Definitive Guide'. So I had some knowledge regarding JavaScript but these two videos are given an awesome overview, connects everything and every bit of JavaScript comes to life. Amazingly good stuff!

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

      +robkremers Thank you :) You're very welcome

  • @jesusmiguel1560
    @jesusmiguel1560 9 ปีที่แล้ว +7

    It would be very cool if you start doing tutorials with projects. Like learning JavaScript by doing a dynamic site, learning HTML by doing a static site, etc. Great tutorials by the way.

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

      +Jesus-Pierre-Miguel Salgado III Thank you :) I think I kind of did that in the past and those videos still hold up. I made sliders, tons of website layouts, shopping carts, etc. They are kind of hard to find in my sea of 700 videos, but I'll point you towards them if you'd like to see something specific.

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

      Derek Banas If you could point me to those videos, that would be great.

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

      +Jesus-Pierre-Miguel Salgado III This will give you a bunch www.newthinktank.com/?s=website+layout
      I have over 100 Wordpress videos in which I make real things with JavaScript and PHP here www.newthinktank.com/videos/web-programming/wordpress-how-to/
      I made a shopping cart here www.newthinktank.com/2011/12/wordpress-shopping-cart-tutorial/

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

      Derek Banas Thank you.

  • @ThatViralVideo
    @ThatViralVideo 8 ปีที่แล้ว +84

    Right now we're flying at an altitude of 36,000 feet....

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

    Thanks man been a Software developer for 20 years and still learning thanks again

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

      +adamfakes you're very welcome 😊

  • @RatchetSK
    @RatchetSK 9 ปีที่แล้ว +4

    BY FAR the best books for javascript are the 'You don't know JS' series. definitely check them out

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

    The 'PERFECT' technologist and 'MASTER' instructor!!

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

      Thank you for the nice compliment :)

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

    I like your presentation. It makes it easier to understand whereas other tutorials can be quite messy.

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

      +Jumbled Code Thank you :) My number 1 goal is to make everything understandable.

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

    I am not able to handle more than 2 languages at one point of time, how is is possible to give such an awesome explanation on almost all programming languages out there. Am awestruck! You are a superman!

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

      +Sandeep Devaraj Thank you for the compliment :) I guess I have just been switching back and forth for so long it is natural. I definitely prefer some languages over others though

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

    For get and set , I think you should name both getAddress and setAddress just to address. It makes more sense.

  • @bool2max
    @bool2max 9 ปีที่แล้ว +19

    I didn't understand OO JS before this video. Thanks!

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

      +Bogdan Mitrovic Your welcome :) I'm happy that I cleared it up.

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

    freaking wonderful! i've been trying to wrap my head around OOP for years and it's finally making more sense now.

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

      Thank you 😁 Happy to be of help

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

      @@derekbanas You did such a good job explaining this, I was able to simplify it even more in explaining it to my non-programmer wife for the software they're developing at her company, and holy **** did it feel good and that was the first time i've ever been able to see class objects and extended class purposes in a RL scenario which I could understand and came up with. Cannot thank you enough!

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

    This video is so useful for people who already know the concept of OOP, and want just to learn JS's way to do it. Thank you so much. Cheers!

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

      Thank you very much :)

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

    I believe this may clear some confusion. At around 32:44 Derek says that when the prototype is changed (from the base Object (which is default )) , that the prototype.constructor will point to the Object object... In reality it points to the function the prototype Object was set with:
    function Animal(){
    this.kind="Animal"
    this.breathing="yes"
    }//default prototype =object Object
    function Cat(){
    this.type="Cat"
    this.sound="meeow"
    }
    Cat.prototype=new Animal(); //set new prototype ...mess up .constructor
    /// needs Cat.prototype.constructor=Cat ......to be accurate
    var kitty1=new Cat();
    console.log(kitty1.constructor)
    ///// Logs:
    function Animal(){
    this.kind="Animal"
    this.breathing="yes"
    }------incorrect

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

    You are a bible to programmers Derek. Thank you so much! You are clear, quick and to the point. I learn the most from your videos as a programmer.

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

      Thank you for the compliment :) I'm very happy that the videos are helping

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

    in the first 3 minutes i learned more than I did taking about 2 weeks of online courses and speaking to javascript developers. People really need to learn how to communicate better.

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

      I'm happy it was helpful :) I do my best to cover a lot as quickly as possible

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

    Derek, this is a great video, been looking for something like this for ages. I am struggling with going to oop from procedural and every course either merely teaches the basics about objects and classes or it's way too advanced, nothing in between. Many many thanks! Will be checking out your whole channel later.

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

      Thank you :) I'm very happy that the video helped

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

    Pretty awesome tutorial. Loved the examples. Would say the best OO JavaScript tutorial out there. Thanks again

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

      Thank you very much :)

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

    I think this is the only series of tutorials that do provide the code! It's priceless!!! I owe you a lot. All the best and keep going!

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

      Thank you for the compliment :) I have another were I make JS apps and games th-cam.com/video/IyDVvGmzTlo/w-d-xo.html

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

    Why do I feel every time I watch any of your videos covering any programming language, that it was you who invented that language? It is mind blowing your breadth of knowledge.

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

      You're very kind. I promise I'm not very smart in real life

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

      Derek Banas I get asked many times about online learning. And your channel is the first I recommend.

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

    You're welcome.
    01:50 JavaScript Objects
    02:36 Objects in Objects
    04:12 Constructor Functions
    05:58 instanceof
    06:28 Passing Objects to Functions
    08:09 Prototypes
    09:34 Adding Properties to Objects
    10:44 List Properties in Objects
    11:38 hasOwnProperty
    12:42 Add Properties to Built in Objects
    14:31 Private Properties
    18:01 Getters / Setters
    21:20 defineGetter / defineSetter
    24:38 defineProperty
    27:07 Constructor Function Getters / Setters
    29:40 Inheritance
    37:13 Intermediate Function Inheritance
    39:14 Call Parent Functions
    41:51 ECMAScript 6
    47:31 Singleton Pattern
    49:32 Factory Pattern
    52:53 Decorator Pattern
    54:52 Observer Pattern

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

      From.v.f.vvvv.vv...v.cnv.d.fvcvbv.vvvvv.c

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

    I missed ur Java stuff.. used to watch everyday for preCollage java.. Thanks again for making another beautiful tutorial

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

      +Much Online Thank you :) I'll be making more Java videos soon.

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

    Honestly speaking sometimes I wonder how much talent that you have.... Hats off to you!!!!!!!!!!!!!

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

      +Deep mandal Thank you :) I promise you that I'm not that smart.

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

      +Derek Banas No No I am not pulling your leg I am just trying to say that to become a pro there's lot of geekiness requried and I know that as programmer...............

  • @saharFTW
    @saharFTW 8 ปีที่แล้ว +17

    at 38:08 - the extend function -
    why not simply do
    Child.prototype = new Parent();
    Child.prototype.constructor = Child;

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

      Exactly. Using his function can't get the toString() to work.

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

      @Derek Banas - I'm also interested in the answer to @SaharS question. And thank you for such a straight forward and in-depth explanation of OO JS, this was very helpful.

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

      +1, that confuses me too. everything works without Temp

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

      I think he made that (the extend function), only because he wanted to evade duplicated code in every type of animal he thinks.
      And i think, doing:
      Child.prototype = Object.create(Parent.prototype);
      Would make more sense...
      And lastly, about *Child.prototype = new Parent()*
      If you do that, you inherit *ALL the Parent Object*, not only the _Parent Prototype Object_.... That means, all the things defined inside that _Parent Object_ would be public too.
      For example; if you have:
      function Parent() {
      this.somethingAboutParents = "Yells all night";
      }
      Using your aproach, Child.prototype = new Parent();
      For each Child you create, you will have access to that property
      new Child().somethingAboutParents // --> 'Yells all night'
      Using *Object.create(Parent.prototype)* instead, you only inherit the *Parent Prototype Object*, not *all* the *Parent Object* including his _Parent Prototype Object_.

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

    yeah I asbsolutely agree w. Abdel, you Derek are an endless fountain of wisdom/insight on ALL of the major web technologies and programming languages. Bravo!

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

      +Steve Burrus Thank you for the very nice compliment :) I can promise you though that I'm not that smart.

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

      +Derek Banas "I'm not that smart" I don't know aboiut that. You are certainly smarter than a ny other youtube video explainer of some web technology! What college did u go to or was all of your knowledge ontained thru a lotta self-teaching/training?

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

      +Steve Burrus Thank you :) I went to school for electrical engineering and illustration. I wanted to work for a special effects company. I taught myself the basics of programming when I was very young. I learned the advanced stuff on the job.

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

      That's encouraging to read.
      I just graduated with a BSEE. I am doing an MSEE now, but I want to transition into computer programming. It seems like way more fun, and I like the idea of working from home and waking up and going to sleep on my schedule.

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

      awesome talk

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

    Coming from java OOP and learning javascript, ECMAScript 6 looks amazing

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

      Yes it is a vast improvement

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

    Thanks for another amazing video Derek. It's hard to believe that someone would have such vast knowledge of all this stuff you post here on your channel. Keep it up!!!

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

      +Joy Karbah Thank you for the nice compliment :) I'm glad I can help.

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

    Great job done Derek . Really precise tutorial with all what you need to know about the language . Looking forward for Angular 2 on the same lines .

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

      Thank you very much :) I'll see what I can do about Angular

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

    I hope this video will lead to thousands of lines of awesome code by its viewers. Thanks Derek

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

      +anubhav aeron I do as well :) You're very welcome

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

    I like the ECMAScript 6 because the style seems like to Java code. Then, I can reduce the time learning OO JavaScript.

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

      +Lester Yes it will much improve JS whe it is supported by all the browsers. Can't wait for that to happen.

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

    I really do not expect this tutorial, and this morning it is there. You are wonderful! Thank you so much! I have much to do and go to work!

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

      +Antik Lee (高偉麗) Thank you for the compliment :) I'm happy that I could help.

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

    Thank you for taking the time to make all of these tutorials. So much knowledge available thanks to you!

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

      +Johnny G You're very welcome :)

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

    I can't believe you can make these marathon videos! Thank you.

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

      Thank you :) I'm happy you like them

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

    The best JavaScript OOP tutorial on TH-cam!

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

      Thank you very much :)

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

    finally we are getting some Java into Javascript with Class coming in.

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

      +gidmanone It is great that JS is constantly improving :)

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

      i couldnt agree more with you man.huge step for Javascript this time.!!the whole prototype thing was the reason i contemplated trying my hands on Javascript.but now that there is class.
      OOP on javascript is gonna get on a whole different level

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

    Thanks for this tutorial, very helpful.
    One suggestion is consider doing tutorials in a dark mode. Personally I tend to get eyestrain with the classical black on white.
    Anyhow thanks again.

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

      +Tom Ormiston Your welcome :) I'll have to experiment with the different themes. Thanks for the input

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

    Hi Derek, I have been following your tutorials for more than 3 years. Just want to thank you as I have learned at lot from your tutorials. Please do the tutorial on React Js/Reach Native as well. Thanks

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

      +jimish shah Thank you :) React is coming soon.

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

    You've outdone yourself once again Derek! Thank you so much!

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

      +George Park Thank you :) You're very welcome

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

    I have no idea if you have actually done this ( not taking the videos posted onto your website in account ), but you should create videos that build onto these main videos, in a way of using the newly obtained knowledge to create something, a seperate, simple project.
    This would completely solidify everything learned in this video. It is possible to go out and brew up personal projects, but it'd be a fun thing to watch/follow, and you'd be attracting a greater audience ;)
    Thank you for the video as it is, I've learned quite some things from it!

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

      +H. Pavlovic Thank you for the input :) Yes I'm working towards making videos in which I make a bunch of large JS programs. I'll mainly focus on games because people seem very excited about making them.

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

      Derek Banas OOP really shines when working something out in a form of a game

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

    I like JS more and more. It seems they are making it more pythonic as days go by. very useful

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

      Yes I agree JS is constantly improving

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

    New favorite channel. This is straight up aces.

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

      +Naythan Williams Thank you very much :)

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

    This is the best JS OOP tutorial on the internet.
    Thank you for sharing the code, and also leaving explaining comments:)

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

      +Kerim Grozny Thank you for the compliment :) Your welcome

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

    Wow, dude! I can’t thank you enough for your channel!!! Please keep up the awesome work.

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

    I really apreciate your tutorials have taught me what programming is, you are very intelligent person to share their knowledge enriches it even more. Hope and move on anyone´s purpose. God bless you my friend.

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

      +Josh Fernandez Thank you for the nice compliments :) I greatly appreciate them.

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

    Thank you thank you thank you!! Haven't watched it yet but I know it's going to be awesome! Been waiting for this one!! You are da man!!

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

      +Mike Ulrich Thank you for the compliment :) I hope it helps.

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

    Love your "Learn... In One Video" videos!! So useful! Have you thought about doing one for Pascal?

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

    Thank you Derek Banas,you did a very good job, I spend much time in learning js, html, css, after I watched your video, I found that I was wasting time before!

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

      Thank you ::) I'm happy it helped

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

    Perfect overview. Even though you speak probably very fast for non-native speakers but your speech is very clear. Thank you for that. Catch a like :)

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

      Thank you very much :)

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

    Thanks a lot Derek... :-)
    I was having an number of questions regarding OO javascript but now most of them are solved.
    You explained it quite effortlessly.
    Thank you once again :-)

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

      That's awesome! I'm glad it helped :)

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

    At 49:20 this is a global object. You don't create new object, you add props to global obj! And in fact yours singleton is refer to global object. What you need is to invoke Hero with keyword new.

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

    Many thanks for this great overview of the many possibilities. It leaves a bit overwhelmed giving a old school pascal background but knowing OO Design (not programming). I agree it would make sense to elaborate the programming choices and solution path visually with the why 's of the to be solved real live scenario 's providing the starting context. I realize that for example a pizza shop it would mean a video itself. Again, thx. for this great video to get a clue about the 'insane' number of possibilities .

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

      +phkonings You're very welcome :) I agree that I could do many tutorials on this topic and I may just do that.

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

      +Derek Banas ...in the meantime I have had a first look at the patterns book (flanagan) etc. I am really jumping in this exploring it from middle-out. I am currently thinking about the best way to approach a traffic light simulation as a simple state machine (red, green, orange, stop, run, onservice). DesignIdea is 3 objects (timer, trafficlight, display) . My thinking problem is that I see the object-abstraction as objects sending messages to each other and reacting on it based upon object state changes (in a networked object model). Instead of sending messages to each other and reacting on that, I guess they need to invoke each other methods instead. That implies the sending object needs to know the internal behavior of the receiving object instead of sending just a message (event). That 's where I get lost between design and programming.🤔

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

    I really like the pacing of this video. Thank you.

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

    Hello Derek Banas,
    This "oops concept" video tutorial are rally good and each example of session whiten a short time its explained so good examples. I was exactly suppose to looking for same video. And I find this video. The person who have little bit knowledge about "Javascript " and he want to know more advance about "Javascript" Opps concept its really good for them ..!
    I also recommend ate to my friend this video. thank You Derek Banas..!

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

      Thank you very much :) I'm very happy that you liked the video

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

    Wow!!! this is the best useful javascript tutorial i have ever seen! thank you so much :)

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

      Thank you :) I'm happy it helped

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

    Derek, anything on JS modules (exports, imports..)? and their best practices?

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

    JSLint does not validate get getRadius(), it does work though. Probably we can just use "home-made" getters and setters to avoid this non-validation.

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

    Simply superb stuff. Enjoyed a lot to refresh all js concents. 😊😊😀

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

      Thank you very much :)

  • @haythamal-dokanji9547
    @haythamal-dokanji9547 7 ปีที่แล้ว

    Excellent presentation. Thanks Derek!

  •  9 ปีที่แล้ว

    Thank you for also giving good reference books, as it helps filter which publishers and authors are worth reading for better understanding and practices. :)

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

      +Yahanan Rivière Your welcome :) The book I recommend is the one that students tell me they like the best. Always check online because they are often available for free.

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

    looks like one of very few video tutorials that can keep the tempo with written ones

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

      +Načančaný Okamžiku I cover as much as possible and try to keep everything interesting :)

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

      +Derek Banas I appreciate it, thank you :)

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

    Thank you very much for this tutorial. I'm very prefer to lean OOP in javascript.

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

      +Dipendra Thapamagar You're very welcome :)

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

    Many unknown funda cleared in this video. Thanks.

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

      +Dhaval Patel Your welcome :)

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

    Very useful tutorial that I would recommend to serious programmers. Thanks for sharing!!!

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

      +Aditya Damaraju Thank you very much :)

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

    Awesome information, specially creating Observable.

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

      Thank you :) I'm happy it helped

  • @alexey.k007
    @alexey.k007 9 ปีที่แล้ว +1

    Awesome tutorial!
    Derek, in the future, can you do a ionic framework tutorial?

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

      +Alexey Kurbatsky Thank you :) I'll try to fit that in with my Angular tutorial.

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

    my favorite way to learn programming

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

    Is my understanding that, prototypes are basically a shorthand version of adding properties/function objects to an object, correct? Also, is my understanding that, object creation basically consists of three parts: 1. defining (creating) the object, 2. adding properties (members), 3. adding methods (functionality) to the object and it's properties, correct? I like your tutorials. I'm a total noob. Thank you. =).

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

    Wow, this is awesome.Loved the cheatsheet!

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

      +Branko Zivanovic Thank you very much :)

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

    Derek, Thank you for all of your insights. You're a Genius.

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

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

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

    Hey Derek, could you make an asp.net tutorial series? I've been looking for one for my computer science project but there are no good ones out there (in youTube, at least), so I'd really love to see one of these' since you make so easy-to-understand tutorials.
    Love your work. Thanks!

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

      +‫טום טוביאס‬‎ Thank you :) Yes ASP is on the list.

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

    Awesome Object Oriented video,Thank you so much.

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

      +Satya Sahoo thank you very much😀

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

    I had been following a javascript course at Codecademy but stopped at 60%... THIS video is what I needed

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

      +Patrick Allen Great! I'm glad you liked it :)

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

      The only thing I have trouble with Derek Banas is visualising this code used in a gametype or anything practical enviroment. If you know what I mean.. Learning a cookbook does not make me a good chef :P

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

      +Patrick Allen I'll be making a ton of JavaScript mobile games in the next few weeks. You'll get tons of time to practice and have fun hopefully as well :)

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

    Its an amazing, simple articulation and demonstration thought the hour to teach the OOJS! Thanks Derek :)

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

      Thank you very much :)

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

    At 48.58 var derekHero = Hero("Derek"), shouldn't there be a new here?
    This is a special case too since it is a Singleton.
    So what is the actual difference between having "new" and not having "new" before constructor function invocation in non-Singleton context?

  • @don-jp2rs
    @don-jp2rs 8 ปีที่แล้ว +1

    It would be nice if you can do a full project or projects to show the usage of this languages

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

      +don1559 Many JavaScript tutorials are coming. I'm currently making them in my NodeJS playlist

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

    I just discovered you. You're my hero.

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

      +Alejandro Villena Thank you :)

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

    i like you because you're fast and right on point!

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

      Thank you :) I don't like to waste peoples time

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

    Thanks man..Refreshed my JavaScript knowledge.Please post a tutorial on Angular JS

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

      +Kiran Muralee Your welcome :) The Angular tutorial is coming.

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

    best oo js tutorial till now

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

      Thank you for the compliment :)

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

    Nice Tutorial Derek!... Thanks a lot!

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

      Thank you very much :)

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

    Hey Derek, I have couple of questions? How do you create enum in JavaScript? And how would you use it in your Pizza example? Instead of creating a ExtraCheese function, is there a way to create a function named Extra() that has either cheese or veg or meat variables, And based on what user pass, the price is changed.
    Sorry..if question is not clear..

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

      +Sagar Thapa Check this out stijndewitt.wordpress.com/2014/01/26/enums-in-javascript/

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

    Thanks Derek, everyday is a school day!

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

      +Daryl Jewkes You're very welcome :)

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

    Great video Derek ;)
    I saw your plans for the next few videos, can't wait! Please consider a Meteor tutorial...Cheers!!!

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

      +ronP __ Thank you :) Meteor is on the list

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

      +Derek Banas Can't wait! BTW Thank you for this service you provide us all!
      cheers!!!
      ron;)

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

    hello I just want to say thanks alot for all these videos, for the longest ive been terrified by javascript and other surrounding languages, with these videos and codeacdemy and w3s , im ony my way to updating my skill set to become more marketable web developer!!!! thanks!!!!!!!!

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

      +Benny Chasin Thank you for taking the time to say that :) You're very welcome.

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

    Doing Gods work..Bless you ma man

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

    Thanks for the nice tutorial! Very helpful!

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

      You're very welcome :)

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

    Nice to see something on OO JS, you don't see these design patterns taught too much in JS, mostly in mentioned in Java, C# etc.
    Not sure how much overall interest there is currently, but there's very few good tutorials for Ember/Ember Cli/Ember data, If you have any experience with it. Shame as it's a very nice framework, took me ages to figure it out without good tutorials though and I've still not got the Data part integrating with APIs as I'd like.

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

      +Paul J Kimberlee Thank you :) Yes Ember is quite complex. I'll need to include tons of diagrams in the video just to help people keep everything straight. I'll see what i can come up with.

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

      +Derek Banas Cool! yeah it's not so straightforward to conceptualize at first, something like your Rails tutorial would be really helpful to people who are interested in it. The only resource I've seen for the CLI is a $30 ebook, which is a lot if people just want to check out the framework to see if it's right for them.

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

    +Derek Banas Whooah! Yet another great tutorial! Have you considered doing a Learn-Groovy-in-one-video tutorial? I know you did one about Scala recently - but considering a growing interests in alternative JVM languages, and the rumors about Oracle dropping interest in Java platform, Groovy might by an interesting topic to talk about as well.

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

      +mrKitke Thank you :) Yes Groovy is on my list

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

      Derek Banas Great, can't wait to watch it :-)

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

    Thanks man, awesome tutorial as always
    the problem is that i watch the video, next day i forget everything because i find myself too lazy to pratice :(.
    if we did not use the stuff we learned in a project, we will not be able to learn them easily, that is why people take years to master a language.
    however, your videos are much more helpful when you are doing a project.

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

      +Omran AbazId Your welcome :) Don't worry I'll be making some JavaScript games very soon. You'll have time to practice.

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

    Awesome tutorials bro, thank you!

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

    EXCELLENT turorial!

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

    Very nice tutorial... Thanks a lot Derek :)