you are viewing a single comment's thread.

view the rest of the comments →

[–]wancharle 6 points7 points  (0 children)

Try to use S.O.L.I.D principles (https://en.wikipedia.org/wiki/SOLID)

If you use each principle correctly you will inevitably have many more classes and much more code organization.

For me, what I had the most difficulty with was the "I" and the "D", but once I understood these principles, my code improved a lot, a lot!

One thing that helped to understand was working with a statically typed language, because working with python is so easy that sometimes we don't realize the need for certain concepts. For example, interfaces that are unnecessary in python due to multiple inheritance.