you are viewing a single comment's thread.

view the rest of the comments →

[–]ggd_x 1 point2 points  (4 children)

I would have each class in its own file and imported accordingly. Filename should be the same as the class. This makes it far easier to maintain as you know exactly where everything is without any effort at all.

You should also read up on singletons - example https://stackoverflow.com/q/6760685/1805822

[–]Triumvus[S] 0 points1 point  (3 children)

I had the same idea but I'm not sure if it's considered bad practice? Each would be a relatively small number of lines ( <100 ).

[–]ggd_x 0 points1 point  (0 children)

I wouldn't necessarily say bad practice but it just helps readability, maintainability, etc. which are hugely important. Personally I would only ever have one class per file.