News for hackers. Stuff that matters.
Re:Why becoming a data scientist is not easier than you think by PaulHoule on Tuesday October 16, 2012 @09:24AM (#4659717)
Right on.

You can make Java a lot more fun if you use generics, functional patterns and frameworks like Google's Guava, even if you still need to create a FactoryFactoryFactory once in a while.

Re:Why becoming a data scientist is not easier than you think by Evbn on Tuesday October 16, 2012 @12:04PM (#4660421)
But "fun" isn't the same as efficient and maintainable.
Re:Why becoming a data scientist is not easier than you think by PaulHoule on Tuesday October 16, 2012 @02:15PM (#4661102)
So far as maintainable I'd say the internal DSLs I've made in Java as as maintainable as internal DSLs made in other languages -- that is, its very maintainable until you run into some complexity cliff.

When I program Scala or C# I tend to curse type erasure in Java generics, but when I actually program Java the generics system makes me smile. I can very efficiently turn what's in my head into a design and code.

In a language like Haskell whatever you gain from the language you tend to pay back in missing or buggy standard libraries. If I was writing a webapp in any off-brand language, for instance, I wouldn't trust that the urlencode function works correctly until I'd written some test cases.

I'll admit functional Java is a little verbose (can't write a closure in just one line) but the Hotspot compiler is very good at inlining functional code and collecting the garbage from it. I can definitely say that I get much better performance w/ functional Java than I usually see with the Interpreter pattern with two orders of magnitude less code size.