News for hackers. Stuff that matters.
Re:Generating a Java program with 90% less code by andrewprock on Wednesday December 04, 2019 @01:09PM (#21704993)
On the contrary, using interfaces to make testable code is precisely the damage.

You should be writing pure functions which are easily testable, and using integration code to wrap the pure and testable parts.

Interfaces are typically a hack to get around the challenge of writing well designed, pure, and testable code.

Re:Generating a Java program with 90% less code by BeetleB on Wednesday December 04, 2019 @08:04PM (#21708996)
> You should be writing pure functions which are easily testable, and using integration code to wrap the pure and testable parts.

This often ends up with interfaces...

Re:Generating a Java program with 90% less code by andrewprock on Thursday December 05, 2019 @02:12PM (#21715347)
If you write a pure function, an interface is meaningless.
Re:Generating a Java program with 90% less code by BeetleB on Thursday December 05, 2019 @02:49PM (#21715772)
The interface comes in this part of your comment:

> and using integration code to wrap the pure and testable parts.

Re:Generating a Java program with 90% less code by andrewprock on Thursday December 05, 2019 @06:16PM (#21717714)
I think you and I are talking about different things when we say "integration test".