Re:The controller pattern is awful (and other OO heresy)
by wizofaus on Monday July 10, 2023 @07:23PM
(#36674412)
> Is that worse than the global scope as the dumping ground?
I wouldn't have a problem with requiring everything to at least be in a namespace, though it needn't be enforced at the language level (vs a linter rule).
Is that worse than the global scope as the dumping ground?
One other benefit of forcing classes is that there's a logical place for private functions and fields. Private state is an anti-pattern to some but it's more consistent design for Java, I think.