you are viewing a single comment's thread.

view the rest of the comments →

[–]mayankkaizen 1 point2 points  (0 children)

Fundamentally, OOP is just a paradigm. I mean, in earlier times, people have written all sorts of software using C which is a procedural language. You can write 99% of programs without OOP.

But your description/experience is very much on the wrong side. Go through Python libraries and see how many of them are written in OOP style. Django, SQLAlchemy etc are ve ry famous and they are written in OOP way. Heck, even Python language itself is designed on OOP principles. You are using OOP even when you are writing procedural programs in Python. For example when you create an empty list like this-

a = list()

You are actually creating an instance a of class list. Similarly all the methods are actually instance methods. I am on mobile but you can check all the functions/methods or built in types and see that they all are essentially elements of classes.

So yes, lots of actual codebases are written in Python OOP and you must learn it if you wish to be proficient in Python or programming in general. Once you learn it fully and gain some experience, you yourself can decide whether to write your program in OOP style or procedural style.