News for hackers. Stuff that matters.
Re:Lombok makes Java cool again by viach on Thursday January 31, 2019 @05:13PM (#19049494)
I see Kotlin as a great choice for these who don't want Java verbosity but can't really get used to read Scala.
Re:Lombok makes Java cool again by jamougha on Thursday January 31, 2019 @06:11PM (#19049980)
I can read Scala fine but I'd like fast compilation and good IDE support.
Re:Lombok makes Java cool again by jacobn on Thursday January 31, 2019 @06:40PM (#19050184)
The IDE support is pretty good these days, as least in IntelliJ.
Re:Lombok makes Java cool again by cryptos on Friday February 01, 2019 @03:21AM (#19052523)
Scala support in IntelliJ is ok, but still not great. There are some Akka constructs IntelliJ underlines in red for years and JetBrains doesn't fix it. I've never seen something like that with Kotlin.

The hard truth is that Scala was not designed with tool support in mind and it probably never will be. For example hierarchical implicit conversions, while powerful, are terrible for tooling.

Re:Lombok makes Java cool again by hocuspocus on Friday February 01, 2019 @04:28AM (#19052785)
> Scala was not designed with tool support in mind and it probably never will be

You should pay attention to what's going on in the ecosystem. Dotty comes with LSP support. The Scala Center's main focus is tooling. JetBrains has been pretty committed and cooperating as of late. And several projects are building serious alternatives to SBT.

Re:Lombok makes Java cool again by Cyph0n on Thursday January 31, 2019 @10:42PM (#19051392)
Not sure why you were downvoted. IntelliJ’s Scala plugin is top-notch in my experience.
Re:Lombok makes Java cool again by edejong on Friday February 01, 2019 @01:33AM (#19052095)
True, nor do I understand your downvote.
Re:Lombok makes Java cool again by IBalic on Friday February 01, 2019 @03:49AM (#19052643)
+1 works great
Re:Lombok makes Java cool again by dominotw on Thursday January 31, 2019 @07:40PM (#19050613)
Intellij still can't figure out how to handle implicits. At this point i have an intuition about the errors that idea reports as errors but actually aren't'.
Re:Lombok makes Java cool again by threeseed on Friday February 01, 2019 @02:28AM (#19052317)
Are you using the latest version of IntelliJ ?

Because it does a pretty good job with implicits now: https://blog.jetbrains.com/scala/2018/07/25/intellij-scala-p...

Re:Lombok makes Java cool again by dikei on Saturday February 02, 2019 @02:46AM (#19061753)
Agree. In fact, we have a rule in our team that if a feature is not supported by IntelliJ, then it's probably too arcane and should not be used.
Re:Lombok makes Java cool again by _ZeD_ on Friday February 01, 2019 @12:27AM (#19051880)
Apart the fact that I would disagree on intellij support, what about the other ides? Eclipse? Visual studio (not code)?
Re:Lombok makes Java cool again by Cyph0n on Thursday January 31, 2019 @10:46PM (#19051412)
Scala syntax is decent tbh, unless you decide to go overboard with operator overloading.

Most libraries — SBT is one example — have shifted away from the use of excessive overloading.

Re:Lombok makes Java cool again by viach on Friday February 01, 2019 @02:54AM (#19052414)
Tend to agree. But if you work in a team, there will be someone who just loves implicits and overloading and you won't be able to change his mind. Strong code style policies help, but they are really rare in real processes.
Re:Lombok makes Java cool again by aphexairlines on Friday February 01, 2019 @04:05AM (#19052696)
Your team can make a decision as a group to not allow defining operators in the team's codebase. As you mentioned you can then enforce that with scalastyle (set FieldNamesChecker and MethodNamesChecker regexes to ^[a-z][A-Za-z0-9_]*$). Is that not enough to handle the one person who loves overloading?
Re:Lombok makes Java cool again by profalseidol on Thursday January 31, 2019 @11:14PM (#19051514)
That time when my boss started using "implicit" on everything. We were even using a new "Functional Relational Mapping" framework from Lightbend/Typesafe called Slick which was a mess.