3 ms·
> 3. Java just doesn't encourage such terrible cleverness that Scala (and to a lesser extent python and js) invites. This might be cultural too where Scala has
by gizmo686 4y ago
> 3. Java just doesn't encourage such terrible cleverness that Scala (and to a lesser extent python and js) invites. This might be cultural too where Scala has this functional programming fanatics segment who love the cats library a little too much. But never have I ever before seen so much code that's just intractable to junior devs, and requires far too much brain-CPU for mids and seniors to read. Sure you can get into a lot of trouble with Java's reflection, but IME many java devs are suitably reluctant to go reflection crazy.
Java has improved significantly in this regard, but Java used to be the poster child for overly clever intractable code. It mostly been relagated to memes and legacy code, but AbstractFactoryFactory used to be the way of writing Java code, where everything was supposed to happen through a dozen layers of indirection.
- peterashford 4y agoIve been programming Java since around 1.4 and that AbstractFactoryFactory meme is just BS. Its not in the language. Some frameworks were bloated in that way but that's not the language.
- ye-olde-sysrq 4y agoFor sure. I do speak of Java mainly from what I've seen in the past, say, decade. Where it does seem like we've mostly learned our collective lesson there.