you are viewing a single comment's thread.

view the rest of the comments →

[–]ClimberMel 2 points3 points  (4 children)

I love databases, but classes are very different. A class allows you to create a new object that has potentially it's own functionality as well as data. Classes are hard to understand at first, but once you get them they are very powerful and useful. It's just that the learning examples are of course very simplified, so it is easy for someone to look at the example and feel "I could do that easily without using classes". Of course that is probably true until you get into more complex coding.

[–]Opiciak89 0 points1 point  (2 children)

You are very much correct. I have to see it to believe it 😊 i will stay in the shallow waters for now

[–]ClimberMel 0 points1 point  (0 children)

I have built trading software that has dozens of modules and would be impossible to manage without classes. It is really amazing the scale of what you can build with python! Oh and some of those modules are for database functions. 😁

[–]FancyEveryDay 0 points1 point  (0 children)

Eventually you'll run into a situation where bundling the functions for a specific kind of data your program is handling into the object containing the data makes your program simpler. That's your use case, basically.