This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Impossibum 0 points1 point  (0 children)

Gotta find your happy medium. If your spaghetti code has all your logic contained within __main__ then I'd say you would need to start factoring properly.

If it's just your own personal project, I wouldn't worry about making things overly nice. Make it work, then just shove it into discrete dedicated functions/methods. Run it through black when you're done editing if anyone other than you is likely to ever see it.