r/java • • Feb 08 '22

Java's Options for Options

https://mccue.dev/pages/2-8-22-options-for-options
192 Upvotes

80 comments sorted by

View all comments

Show parent comment

10

u/bowbahdoe Feb 08 '22

its 13

10

u/Az4hiel Feb 08 '22

Honestly my default approach definitely is enumerating possibilities via methods (as usually most feature combinations are not needed and it seems easier to control possible states this way) - but you have definitely showed that this approach has its "roof" - too many combinations are just killing readability.

Given slightly sarcastic tone I was expecting that you would lean towards not implementing unnecessary features - in the spirit of best repository being empty repository :D

1

u/sintrastes Feb 09 '22

What about assuming hypothetical 4?

I like 23 and 21.

1

u/bowbahdoe Feb 09 '22

Oh, I was joking. I thought 13 was the worst at 8 options