3 ms·
Should also note that the Java 8 Streams API and lambdas are a joy to use. I used to hate it 8 years ago, but the project I’m working on has a modeling heavy p
by sudhirj 9y ago
Should also note that the Java 8 Streams API and lambdas are a joy to use.
I used to hate it 8 years ago, but the project I’m working on has a modeling heavy problem, and Java with the immutable data structures in Guava was a good match. Was just blown away by the language now. Still clunky, but there’s something to be said for a compiled language with great tooling, effortless refactoring and budding expressiveness.
- bunderbunder 9y agoIt's a big step up, but man, I really wish Java would introduce extension methods. The streams API starts to get clunky if you need to add any functionality that they didn't think to include in the core implementation. (zip and mapi, for example.)
- lokedhs 9y agoHave you considered Kotlin? It does address specific pain points of Java, such as extension methods. That said, I personally don't think Kotlin went nearly far enough, and some of their design decisions are questionable but if need to be in the Java ecosystem it's a nice choice.
- bunderbunder 9y agoKotlin's great, but that's a battle I'm just not willing to spend much social capital on. I'm also, let's face it, pretty jaded at this point. Lack of extension methods makes for code that's less clean-looking than I'd like it to be, but otherwise it's NBD. There are plenty of other language features that I straight up bang my head on that I'd like to see change first. Most of them are ones that affect Kotlin every bit as much as they affect Java.