Re:Automated Unit Test Improvement Using Large Language Mode...
by xxs on Saturday February 17, 2024 @12:37PM
(#39411496)
The correct solution is not having either. Getter/setters are effectively an anti pattern as they support needless mutability but worse they add nothing of value.
As a general rule most fields should be initialized in the c-tor, and they should be final.
As a general rule most fields should be initialized in the c-tor, and they should be final.