News for hackers. Stuff that matters.
Re:Interface Upgrades in Go by dcposch on Monday December 08, 2014 @06:39AM (#8715964)
Yeah, ArrayList is fine. I was saying the code is cleaner than its C++ equivalent.

There are many parts of the Java library to avoid. Some are obsolete and terrible, like CORBA or java serialization. Others are gotchas w weird semantics, like Object.clone(). Others are just bad API design--eg the built in IO libs don't require a Charset argument. The default is the "system default charset", which is apparently still the obsolete MacRoman if you're on OSX.

The most annoying are those shortcomings of the std library that cause extra complexity. For example, the built-in JUL logging framework sucks enough that almost everyone uses log4j or logback instead. But now you have user libraries using incompatible logging frameworks. Enter slf4j, a shim that ties them all together.

In my experiemce, Go is a breath of fresh air.

Re:Interface Upgrades in Go by dead10ck on Monday December 08, 2014 @11:31AM (#8717279)
Another example of "Wtf were they thinking when they wrote this?" in the Java stdlib is MessageDigest. To build a digester object, you must pass it a string literal to tell it which algorithm to use, and catch a NoSuchAlgorithm exception. Instead of, you know, just using an enum for all supported algorithms.
Re:Interface Upgrades in Go by crypto5 on Monday December 08, 2014 @02:27PM (#8718479)
I think standard Java library API doesn't know what algorithms are supported on particular platform, additionally you can implement your own messagedigest.
Re:Interface Upgrades in Go by dead10ck on Monday December 08, 2014 @04:12PM (#8719204)
Re:Interface Upgrades in Go by AnimalMuppet on Monday December 08, 2014 @03:19PM (#8718908)
Right - if I understand correctly, it can depend on what crypto packages are installed on your target.
Re:Interface Upgrades in Go by crypto5 on Monday December 08, 2014 @02:29PM (#8718497)
> In my experiemce, Go is a breath of fresh air.

Let's see where Go will be in 20 years.