|
|
|
|
|
by MartinCron
5809 days ago
|
|
You may have a planes-that-crash bias there. You don't notice all the times you benefit from a well encapsulated service because it just works the right way. The rare handful of times when something that would be useful is marked private is what sticks out in your mind. I know that I would prefer to work with an interface with 10 public classes with 50 public methods than an interface with 100 public classes with 5000 public methods. The conceptual weight of wading through all of that stuff has a cost. There is often value in not knowing or caring about implementation details. Although I do agree that final/sealed is generally just mean-spirited and pointless. |
|
But when I need to deviate from that API, for whatever reason is important to me but not to the library designer (from a bug to a weird environmental issue specific to me), if I can't get done what I need to, the language is getting in my way instead of helping me.