News for hackers. Stuff that matters.
Re:On Apple's Love Affair with Swift by pjmlp on Sunday August 12, 2018 @12:43PM (#17745162)
> They couldn't really explain it beyond it being a "best practice", but I suspect they enjoyed being able to look at a short file that only contained the interface plus JavaDoc, instead of opening the full implementation every time. They basically re-invented header files :P

Then they should have known better.

That makes sense for unit testing, in cases where mock classes would be required.

All Java IDEs have object browsers no need for header files.

Re:On Apple's Love Affair with Swift by gurkendoktor on Monday August 13, 2018 @05:12AM (#17748869)
Mockability was the official reason until we started using Mockito 2. I hope everyone on the team was aware of the object browser. And yet they felt better with interfaces everywhere. It might have been a simple case of cargo-culting, though.