3 ms·
That's not really what I'm talking about at all. Private methods are often useful for handling internal details. But often when you have a lot of private method
by stouset 3y ago
That's not really what I'm talking about at all. Private methods are often useful for handling internal details. But often when you have a lot of private methods, you're bundling too much functionality into one object. I have found that it is very common that I get significant improvements in readability, testability, and comprehensibility when I decompose a large structure with a lot of private methods into a few smaller structures that operate on each others' public API.