I am writing a program using Python 3.6. The code reads words from a file, chooses random coordinates on a grid and places the words on it.
I have a single class instance that I use to create the plot. I can do the bulk of my code inside the main program using the class as a helper, or I can do the bulk of the code inside the class object itself. How does one determine which code should be in the main program and which should be inside the class object?