News for hackers. Stuff that matters.
Re:Generating a Java program with 90% less code by octorian on Wednesday December 04, 2019 @11:45AM (#21703777)
> I'm strongly against creating interfaces for non-library (not shared) code, that will only ever have one concrete implementation.

Even if it does, for a mild behavior change or a test implementation, the simple fact that Java methods are virtual-by-default is a huge benefit here.

C#, on the other hand, is final-by-default. This makes code much more annoying to deal with unless it implements an interface and/or is thoughtfully written with these cases in mind.

There are no comments on this comment yet.