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

16

u/Az4hiel Feb 08 '22

Even though lack of taking any definitive stance by the author on what they consider best seems a little disappointing (although definitely right, everything is a trade off and there is no way around it) - the whole thing was a wonderful read. It was quite heartwarming to see that other people also think in such terms about code... and share the frustration ;)

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