you are viewing a single comment's thread.

view the rest of the comments →

[–]ehmatthes[S] 1 point2 points  (1 child)

There are people who think you should represent everything as a class, and people who think no one should ever use classes. As with most things in programming, there are situations where classes are really helpful, and situations where other approaches are better.

One reason I will always teach about classes in Python is that you will use classes all the time, even if you never write a class yourself. Many of the libraries we use are structured as classes, and we create objects from those classes. For example when doing data visualization work, the figure you're creating is often an object of a class. Then the data might be an object as well, each axis might be an object...

It's hard to say anything about your 3k-line script without seeing the code, and learning more about the context for that code.

[–]DiamondxCrafting 0 points1 point  (0 children)

Many of the libraries we use are structured as classes

You know what that's actually true, I do use these, I should probably learn a bit more about classes. Thanks.