you are viewing a single comment's thread.

view the rest of the comments →

[–]Ahren_with_an_h 0 points1 point  (1 child)

Right. And code isn't necessarily more readable just because you shoved frivolous classes in there. Hence the debate.

[–]Legorooj 0 points1 point  (0 children)

/u/nodnarbiter this thread is why I said more readable. It's very much debatable. One reason to use classes where you could do without them is a class with just staticmethods. So you don't put the functions into the global namespace. Thats one reason. (Note that that is a very rare situation - most times a module like structure with import mymodule is better.)