PorkyThePaladin
Arcane
- Joined
- Dec 17, 2013
- Messages
- 5,415
Btw, that's another beautiful thing about Python that a lot of people don't appreciate, the ability to switch between procedural and OOP on the fly. A lot of OOP languages force you to use classes in every instance, which is completely unnecessary, and in fact makes it harder to code, as you have to think about what class to put some clearly procedural code into. Meanwhile purely procedural languages like C completely miss out on the advantages of OOP. In Python, just use whatever is the best approach, procedural code goes into functions, reusable code goes into classes, perfecto.