JavaScript mixins to achieve multiple inheritance. By borrowing methods from multiple mixins.
Article and code samples from this tutorial
* http://techsith.com/mixins-in-javascript
Please help me translate this in your native language. Thanks much π
* http://www.youtube.com/timedtext_video?v=DpGuDFK4xss&ref=share
Please be my patreons on patreaon
* https://www.patreon.com/techsith
Follow me for technology updates
* https://facebook.com/techsith
* https://twitter.com/techsith1
Original source
32 responses to “Mixins in JavaScript : Object Oriented Programming Series – Part 8”
With mixin, each object creates individual methods and properties in ram memory. This may not be very good in terms of performance.
Your way of explaining complicated concepts are very easy to understand π thanks for posting this video. Very useful.
Hello) I would like to say Thank you and keep going, you tutorials are amazing.
I literally bust out into laughter when he ate the ice cream. πππππ
Thank you for the tutorial, the pace is perfect and explaination is simple. But I have a question, for the second part, why the variable name(isFlying) can be the same as the function name(isFlying())? Wouldn't there wont be any confusion? For example when we return isFlying, it is returning the function itself? Another question can we use spread operator to achieve the same goal (I am worry about the variable is it by reference or by value)?
That was good explanation
As explained in previous video, it only does shallow copy. Then how can we copy prototypes as well?
Without explicitly giving entry in assign function?
Object.assign(null,jsSkills,engDegree) should also do the same work, or not?
Will that empty object {} have a prototype?
How can one create an object without a prototype?
love
how to write a factory function by using function and how to call object.assign and give values
Great Video Sir please add more I am enjoying
Why "console.log(superman.fly().cry().isCrying().isFlying());" showing Uncaught TypeError: superman.fly(…).cry(…).isCrying(…).isFlying is not a function
"All human cry, and he will cry too. ("Tell me, do you bleed?… You will.) " changes name to Sith Lord
thanks for great tutorials
You are the best in the internet
At 10:10 why did you add return this?
So clear
Good smile , while having ice-cream , πππ
Awesome tutorial again π
Why did you return Object.assign() when you could just as easily return a new object?
Thanks.
I'm from Taiwan. Thanks.
Can u please add some interesting examples of JavaScript post message?
Hi i wanna convert your video in hindi to help indian peoples in learning
Simple and great tutorial. Explained very well . Good job.
11:15 "… and he can dodge bullets, like aliens" LOL π
Thanks for a good video. I like that you keep your videos nice and short.
Create examples , thanks
Hi, I thank you for all these tutorials cause they are masterpiece, they help me ny understanding javascript, but i just wondered if you can make one about encapsulation, arguments keyword and the ternary operator
God bless you
Great examples.. clear and focus
Thanks man. π Your videos helped me a lot in sharpening my skills
It would be interesting to compare this to class/extends.
Thank you, the best js tutorial on Youtube
Looks like the decorator pattern. Doesn't it?
saw your all videos and let me tell you, you made all the conceptsβ super easy to understand. please don't stop, you are doing a wonderful job.. keep it up. thank you
awesome!