Python Interfaces and Abstract Base Class (ABC): A Must-Know for Advanced Programmers

  Рет қаралды 10,985

k0nze

k0nze

Күн бұрын

Пікірлер: 23
@anujonthemove
@anujonthemove Ай бұрын
🖥️ 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.
@JefferyHarrold
@JefferyHarrold 9 ай бұрын
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?
@k0nze_builds
@k0nze_builds 9 ай бұрын
You are absolutely correct. I actually made a mistake while recording, the listings in the accompaniment blog article show the correct code.
@estevaoyt
@estevaoyt 9 ай бұрын
Beautiful explanation, now it's clear to me the difference between an abstract class and an interface. Keep it up!
@k0nze_builds
@k0nze_builds 9 ай бұрын
Glad it was helpful!
@ddevarapaga5134
@ddevarapaga5134 6 күн бұрын
NIce thanks for the video
@dhananjayharidas4327
@dhananjayharidas4327 4 ай бұрын
Great explanation
@danielschmider5069
@danielschmider5069 7 ай бұрын
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?
@adeolaogunleye7965
@adeolaogunleye7965 6 ай бұрын
Nice video, I really enjoyed it.
@elias6406
@elias6406 7 ай бұрын
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.
@jorgesegundorojas6119
@jorgesegundorojas6119 2 ай бұрын
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.
@sharimiqbal5803
@sharimiqbal5803 4 ай бұрын
What ide you are using?
@reidaslaranjas6961
@reidaslaranjas6961 2 ай бұрын
NeoVim
@ajaynarayanan2326
@ajaynarayanan2326 5 ай бұрын
Nice video
@2sourcerer
@2sourcerer 5 ай бұрын
Doesn't quite explain what "ABC" is for. Removing it doesn't break things.
@2sourcerer
@2sourcerer 5 ай бұрын
Oh i see, that abstractmethod decorator has no effect unless subclassing an ABC. But still doesn't explain why the Animal class needs it.
@amersulaiman1827
@amersulaiman1827 5 ай бұрын
It makes the class abstract, so it can't create an object feom it directly, but from another class that inherits it
@mariuszdrabik7119
@mariuszdrabik7119 3 ай бұрын
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
@esbee296
@esbee296 7 ай бұрын
🖥
@pepijnkrijnsen4
@pepijnkrijnsen4 6 ай бұрын
💻
@Yuenchanting
@Yuenchanting 15 күн бұрын
Worst
@jmcoxD
@jmcoxD 6 ай бұрын
🖥
@godray25
@godray25 6 ай бұрын
🖥
Python Decorators: The Secret to Supercharging Your Code
20:53
Protocols vs ABCs in Python - When to Use Which One?
15:31
ArjanCodes
Рет қаралды 42 М.
Одну кружечку 😂❤️
00:12
Денис Кукояка
Рет қаралды 1,7 МЛН
Миллионер | 3 - серия
36:09
Million Show
Рет қаралды 2,2 МЛН
How Much Tape To Stop A Lamborghini?
00:15
MrBeast
Рет қаралды 258 МЛН
Python dataclasses will save you HOURS, also featuring attrs
8:50
Interfaces vs Abstract Classes
14:43
Raw Coding
Рет қаралды 16 М.
How To Create Decorator Functions In Python
4:59
Taylor's Software
Рет қаралды 10 М.
5 Useful Python Decorators (ft. Carberra)
14:34
Indently
Рет қаралды 107 М.
Interface-First Programming: 10X your code quality
12:56
Bran van der Meer
Рет қаралды 4,7 М.
Understanding Python: Abstract Base Classes
21:27
Jake Callahan
Рет қаралды 5 М.
Why You Should Use Python if __name__ == "__main__"
5:26
Avoid These BAD Practices in Python OOP
24:42
ArjanCodes
Рет қаралды 75 М.
10 Important Python Concepts In 20 Minutes
18:49
Indently
Рет қаралды 328 М.
PLEASE Use These 5 Python Decorators
20:12
Tech With Tim
Рет қаралды 123 М.
Одну кружечку 😂❤️
00:12
Денис Кукояка
Рет қаралды 1,7 МЛН