system
Given the following post, respond as if you're commenting on Reddit:
human
Why having too many methods in a class is considered bad practice, yet most libraries have classes with dozens, sometimes even hundreds of methods ?
gpt
Having many methods in a single class is often a sign that you should divide it up into smaller modules, but that's not always the case. Think of a \`math\` library in most languages, it's likely it will contains dozens of public methods for sin, cos, tan, exponential, etc., plus public constants for pi, e, and so on. It makes sense to put them all together because the only other option would be to divide them up into separate math libraries, perhaps math\_trig and math\_stats and so on.

If it makes sense for them all to be together, then keep them all together.