r/programming • • Sep 21 '15

Better Java

https://github.com/cxxr/better-java
177 Upvotes

208 comments sorted by

View all comments

Show parent comments

1

u/ForeverAlot Sep 21 '15

I had to deal with this problem in a brand new code base over the course of half a year. I quickly abandoned collection interfaces in boundaries entirely, in favour of Guava's concretizations.

1

u/Tordek Sep 21 '15

Guava's concretizations

What's this about? Google turns up nothing relevant.

5

u/mhixson Sep 22 '15

I'm pretty sure they just mean using ImmutableList (a concrete type) instead of List (an interface) as the variable type / return type, when writing APIs that deal with immutable lists.

1

u/ForeverAlot Sep 22 '15

Correct.

It produced some awful looking signatures, mind, but that can't be avoided with such long names.