Reasons to use Guava
insightfullogic.com
Reasons to use Guava
1–10 of 50 posts
Re: Reasons to use Guava
#2Using static imports to import the newHashMap() method can make the statement even shorter :
final Map> lookup = newHashMap();
This serves to make the code far more readable.Re: Reasons to use Guava
#3Adding to #1 : Using static imports to import the newHashMap() method can make the statement even shorter : final Map > lookup = newHashMap(); This serves to make the code far more readable.
Re: Reasons to use Guava
#4Is there a reason some of this stuff isn't added to the base framework?
Re: Reasons to use Guava
#5I don't follow Java development, but I have worked in it occasionally, and every time I do something in it, I'm inevitably surprised by having to use one of this commons libraries for something basic. Is there a reason some of this stuff isn't added to the base framework?
Re: Reasons to use Guava
#6Adding to #1 : Using static imports to import the newHashMap() method can make the statement even shorter : final Map > lookup = newHashMap(); This serves to make the code far more readable.
Map> lookup = Cf.hashMap();
Which is as short and also doesn't require static imports.Bolts are the state of art FP library for java.
https://bitbucket.org/stepancheg/bolts/src/tip/src/main/java... some examples in tests
Re: Reasons to use Guava
#7I don't follow Java development, but I have worked in it occasionally, and every time I do something in it, I'm inevitably surprised by having to use one of this commons libraries for something basic. Is there a reason some of this stuff isn't added to the base framework?
- The standard library has to be implemented by all JVM vendors, so adding lots of stuff to it that can also easily be shipped as a library creates a lot of unnecessary effort.
- Changes to the Java standard library have to go through a committee process (JCP); again, it's probably just not worth the effort.
Re: Reasons to use Guava
#8Java 6 source was introduced without explicit intention and once detected was not addressed. Many companies would not use something whose vital dependencies change on a whim or oversight. A lot of shops are still using Java 5 compilers and have no immediate plan to upgrade. Some cannot upgrade conveniently.
Re: Reasons to use Guava
#9And one reason not to: http://code.google.com/p/guava-libraries/issues/detail?id=36... Java 6 source was introduced without explicit intention and once detected was not addressed. Many companies would not use something whose vital dependencies change on a whim or oversight. A lot of shops are still using Java 5 compilers and have no immediate plan to upgrade. Some cannot upgrade conveniently.