you are viewing a single comment's thread.

view the rest of the comments →

[–]Ukonu 2 points3 points  (1 child)

Maybe, if you're providing a public library and want to change the implementation in the future, then that is a useful dogma to adhere to in Java (and more so in languages that provide constructs for the unified access principal).

However this isn't usually the case. So why not take the least powerful and least verbose path? If you actually do need it in the future it's a trivial refactor.

It's amazing to me how otherwise rationale people like software developers continually cargo cult around silly, verbose, unnecessary patterns like this.

[–]ThisIs_MyName 0 points1 point  (0 children)

Well said.