Scala as the new Java?

前端 未结 8 609
梦谈多话
梦谈多话 2021-02-01 02:51

I just started exploring Scala in my free time.

I have to say that so far I\'m very impressed. Scala sits on top of the JVM, seamlessly integrates with existing Java co

8条回答
  •  一整个雨季
    2021-02-01 03:28

    The two, by which I mean four, biggest downsides I'm seeing are:

    • Many working as developers in the professional community aren't trained and are unwilling to learn how to use a functional language, they won't even give it a go so they can understand why it's a better approach. This means you'll always be fighting an uphill battle getting adoption until it's mandated at the corporate level.

    • RDBMS integration is still a bit spotty. Plenty of solutions, but nothing that really sticks out as becoming a standard. For me though, this might be an advantage rather than a disadvantage. JPA2 is a mess and causes more issues than problems it solves. Hibernate criteria queries aren't much better.

    • IDE support is still lagging, but mostly in the area of debugging at this point. Code inspection is doing pretty good (at least in IntelliJ).

    • You'll never want to write another line of Java again! Likely you'll want to punch a wall or break something when forced back into the awkward syntax of Java.

提交回复
热议问题