What is object-oriented programming (OOP)? And why should we care? A brief introduction with Python.

preview_player
Показать описание
Object-oriented programming is the dominant style used today. But for many people, it's hard to understand a lot of the jargon -- classes, methods, objects -- and how it all connects to traditional, procedural programming. In this video, I explain why objects are useful, and to compare a data structure written without objects vs. one with objects. I use Python for my examples.

Рекомендации по теме
Комментарии
Автор

📊 Now that you've learned about object-oriented programming, take your Python skills further!

- New Python insights every Monday
- Actionable suggestions to make you a more fluent Python coder
- Deep explanations that go beyond basic syntax

- Dozens of courses covering Python, Git, and Pandas
- Twice-monthly office hours for personalized help
- Exclusive members-only lectures
- Private Discord community for ongoing support

👉 Join other Python developers improving their skills today!

ReuvenLerner
Автор

Can not be explained OOP as clear as this Thank You !

kedarpanday
Автор

In fact, even those "functions" defined outside of a class are also "methods" that are part of the builtin "function" class --> almost everything is an object in python.. you can also apply the dot notation on those "functions" created outside of a class and you'll find a lot of dunder mehods assigning to them. Thx for your vids

soufta
Автор

Its my day one in your channel and i liked your tutorial so much that I have watched more than 10 videos till now. 😃
Definitely will follow all your videos to brush up my knowledge and learn new things from you.
Thank you sir for all your hard-works.. 🙌

adorable.hindustan
Автор

I learned a lot from this channel with ease ❤👍

elu
Автор

So clear and easy to understand thanks!

Frdy
Автор

wow, what a pleasant discovery finding your channel. Great explanation, on OOP, I appreciate the contrast between not using classes vs the OOP way, instead of only generating random "Dog" classes that bark for no reason. I don't think I had ever heard the very necessary introductory context as to why of OOP. Thank you and keep it up! and lets keep using self not this lol

YuyinSports
Автор

If self is a gnat,
and the world is not flat,
then this is not that.

Thanks for the video and the humor.

mm-fgxc
Автор

I'll be sharing this with my students

DaveBriccetti
Автор

12:05 "obviously you're not going to call it a ridiculous name like 'this', which no self-respective programming language would use". ROFL

TimociWilson
Автор

thank you so much mr reuven for these great information, i would like to ask you how you learn keyboard typing fast hahhaah i know its a little bit silly question but I am trying to improve this skill especially in programming

reemaljabari
Автор

I'm looking into purchasing your python workbook (have heard great things) and was wondering if you would make more?(I know you have a Pandas one)

AK-ffgv
Автор

Hi Reuven! I bought your Python Workout book -- it's great. A Question from the intro of Ch3:

"Lists and tuples are Python’s
built-in collections. Technically, they differ in that lists are mutable, whereas tuples
are immutable. But in practice, lists are meant to be used for sequences of the same
type, whereas tuples are meant for sequences of different types."

I've never heard that bit about lists often being used for homogenously-typed elements, and tuples for heterogenously-typed elements. It's sort of a hard thing to google search, do you have some other reference for this? I usually use a tuple rather than a list when I don't need to mutate an ordered collection of values -- sort of like a principle of least privilege. So I was surprised to see this claim about types. I'd love to hear whatever your response is.

_gunna
Автор

Hm, I assume “init” is just short for initialize. So, double underscore initialize—i.e., __init__()—is the Python class method that’s automatically called when assigning attributes to a new object. Am I understanding correctly?

Kaelthas_Sunstrider
Автор

does this video belong to some playlist or what?

Barba_
Автор

Hey there, i have a question unconnected with this video,
i was reading functools doc and i found this :
functools.partial(func, /, *args, **keywords)
Im not used to use, /,*, in function, i think this / is useless in this case am i right ? I believe (func, *args, **keywords) is exactly the same actually and the purpose here is for more readability

obed
welcome to shbcf.ru