更新时间:2021-10-28 23:00:08
我一直在使用Scala工作一年(财务技术)并且不想要完全回到Java!最初考虑迁移时最关心的事情是:
I've been using Scala for a year now at work (finance technology) and would not want to move back to Java at all! The things that concerned me most when originally considering the migration were:
ant
, Spring ,内部编写的东西)ant
, Spring, internally-written stuff)我发现IDEA的scala插件(用于现在免费的v9社区版)非常出色:不如Java的工具支持那么好当然足以满足我们的需求。它具有基本的重构和调试功能以及出色的语法突出显示功能。我对 Eclipse 的体验非常令人失望:我已经明白scala 2.8预计会有很大改进,但我我见过最近的Eclipse-nightly,坦率地说,这很糟糕。
I found that IDEA's scala plugin (for the now free v9 Community Edition) is excellent: not quite as good as Java's tool support but certainly good enough for our needs. It has basic refactoring and debugging and great syntax-highlighting. My experience with Eclipse has been extremely disappointing: I'm led to understand that great improvement is expected for scala 2.8 but I've seen a recent Eclipse-nightly and it was, frankly, awful.
与Java的互操作性是一流的 - 我没有任何问题,仍然大量使用Spring和我们的定制(基于蚂蚁)构建系统。对于员工流动率从中到高的大公司来说,开发人员库只是一个考虑因素;到目前为止,它对我们来说并不是一个问题,并且受访者表示有兴趣使用Scala。
The interoperability with Java is first-rate - I have had no problems whatsoever and still make heavy use of Spring and our bespoke (ant-based) build-system. The developer-pool is only a consideration for a large company with moderate-to-high staff turnover; it has not been an issue for us so far and interviewees have expressed interest in using Scala anyway.
也许最大的问题是过渡时间。我发现这可能是2周时间才能写出任何合理的东西,3个月到开始真正得到它和6个月 - 1年开始利用功能和DSL-斯卡拉的两面。那么,对我来说真正的大收获是什么呢?
Perhaps the biggest issue is transition-time. I've found this to be 2 weeks to being able to write anything reasonable, 3 months to start to really "get it" and 6 months-1 year to start taking advantage of the functional and DSL-sides of Scala. So, what are the really big gains for me?
所以得出结论: