On Sun, Sep 6, 2020 at 3:39 PM Gary Gregory <[email protected]> wrote:
> The idea behind making *Util constructors private is that it does not make
> sense to instantiate a class that only has static methods.
True, but that also eliminates reuse by subclassing, and similar
techniques. In my opinion, static utility methods are discouraged in
the age of injected dependencies.
Jochen
--
Look, that's why there's rules, understand? So that you think before
you break 'em.
-- (Terry Pratchett, Thief of Time)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]