The Talking interface and associated implemented Talking class...them having the same name and working, was that just a quirk of Python that shouldn't be encouraged because it will probably be fixed at a later date? Looking at the autocomplete prompts that were coming up, probably from practicing, was the implemented Talking class supposed to be called TalkingDog?
🖥️ Very clearly explained. The best part is that you did not directly jump into explaining abstract classes but gave a context about how things work in different languages and in what ways python is different.
New to python. Slowly figuring out how python was never meant for extensible, maintainable large projects. It's more like a overgrown scripting language
You didn't disguise the cat as a duck. You called cat.meow() and the cat meowed. then you called make_it_quack(cat) the first time and it didn't give an error, cause the counter was 0. so the first make_it_quack(cat) increases the counter by 1. the second one gives an error, because cat is no duck. Am I missing something?
Giving the interface and the class the same name was weird, I was really surprised this actually worked! Is it because the Talking Class is defined later (further down) in the code?
I honestly don’t understand you don’t many views. I enjoyed your explanation. I would like to see a complete tutorial especially on oop and design patterns.
Cool content, I'm new on Phyton but in my minimal experience with this language I've noticed that, in comparison with other languages, there's a lot of errors than may happen at runtime. Unfortunately, the lang is used in a lot of areas and it's important to learn it.
Why not use something like this: IsTalking(ABC) and class Dog(Animal, IsTalking)? This would be more logical, and super is not needed in the child class if there are no changes to the class fields
Thank you for that beautiful explanation, I really don't understand how your channel got only 4.92K subscribers. Keep up the good work.
The Talking interface and associated implemented Talking class...them having the same name and working, was that just a quirk of Python that shouldn't be encouraged because it will probably be fixed at a later date?
Looking at the autocomplete prompts that were coming up, probably from practicing, was the implemented Talking class supposed to be called TalkingDog?
You are absolutely correct. I actually made a mistake while recording, the listings in the accompaniment blog article show the correct code.
🖥️ Very clearly explained. The best part is that you did not directly jump into explaining abstract classes but gave a context about how things work in different languages and in what ways python is different.
New to python. Slowly figuring out how python was never meant for extensible, maintainable large projects. It's more like a overgrown scripting language
i subscribed as soon as i saw that lovely cup of tea xD
Beautiful explanation, now it's clear to me the difference between an abstract class and an interface. Keep it up!
Glad it was helpful!
You didn't disguise the cat as a duck. You called cat.meow() and the cat meowed. then you called make_it_quack(cat) the first time and it didn't give an error, cause the counter was 0. so the first make_it_quack(cat) increases the counter by 1. the second one gives an error, because cat is no duck. Am I missing something?
Giving the interface and the class the same name was weird, I was really surprised this actually worked! Is it because the Talking Class is defined later (further down) in the code?
I honestly don’t understand you don’t many views. I enjoyed your explanation. I would like to see a complete tutorial especially on oop and design patterns.
Nice video, I really enjoyed it.
Cool content, I'm new on Phyton but in my minimal experience with this language I've noticed that, in comparison with other languages, there's a lot of errors than may happen at runtime. Unfortunately, the lang is used in a lot of areas and it's important to learn it.
Great explanation
NIce thanks for the video
What ide you are using?
NeoVim
Nice video
Why not use something like this: IsTalking(ABC) and class Dog(Animal, IsTalking)? This would be more logical, and super is not needed in the child class if there are no changes to the class fields
Doesn't quite explain what "ABC" is for. Removing it doesn't break things.
Oh i see, that abstractmethod decorator has no effect unless subclassing an ABC. But still doesn't explain why the Animal class needs it.
It makes the class abstract, so it can't create an object feom it directly, but from another class that inherits it
Explained at 8:36
🖥
💻
Worst
🖥
🖥
🖥