News for hackers. Stuff that matters.
Re:Better Java – Resources for Writing Modern Java by chii on Saturday September 19, 2015 @11:33PM (#10246480)
> Now, you have to look up the Builder's methods to make sure you've filled in all required fields.

the builder should fail with a good error message if there are required fields you didn't supply to the builder.

Re:Better Java – Resources for Writing Modern Java by owlish on Sunday September 20, 2015 @12:29AM (#10246563)
This doesn't solve the problem where the parameters aren't checked at compile-time. Now, hopefully all your codepaths are tested so your builder doesn't throw exceptions in production.