News for hackers. Stuff that matters.
Re:Generating a Java program with 90% less code by Sohcahtoa82 on Wednesday December 04, 2019 @01:10PM (#21705004)
> Single Responsibility Principle

Too many Java programmers take the SRE too far, IMO.

If you have a class that only has a single function, then it probably should be a function, not a whole class.

To give an example that I've seen, I've seen code with classes named UserGetter, UserCreator, UserDeleter, etc. All of these should have just been bundled up into a single User class.

There are no comments on this comment yet.