r/programming • • Mar 27 '19

IntelliJ IDEA 2019.1 Released

https://www.jetbrains.com/idea/specials/idea/whatsnew.html
1.1k Upvotes

248 comments sorted by

259

u/[deleted] Mar 27 '19

The best new feature is undoubtedly that it now asks whether to use Ctrl+Y as redo or delete line on Windows.

89

u/[deleted] Mar 28 '19

After using IntelliJ for so long, I ended up adding ctrl+shift+z on some of my other Microsoft programs...

18

u/grapesinajar Mar 28 '19

I remember when ctrl+shift+z was the standard, before someone decided ctrl-y was better for some stupid reason. I always customise it back to c+s+z.

-56

u/relativityboy Mar 28 '19

Better option might be to delete your Microsoft programs.

18

u/Designed_To Mar 28 '19

.. wat

41

u/metalhe4der Mar 28 '19

Judging from the comment, he might be using Arch, btw

0

u/[deleted] Mar 28 '19

[deleted]

-1

u/_AACO Mar 28 '19

I mean... i'd rather eat meat from a penguin than glass from a window.

0

u/Magical_Gravy Mar 28 '19

I'd rather look through glass from a window than penguin meat.

2

u/_AACO Mar 28 '19

You're not metal enough then ;)

2

u/Azzu Mar 28 '19

There's no doubt that an open-source operating system, which Microsoft Windows is not, is much better in terms of security and privacy.

He probably meant to say something like that and wanted to be an asshole about it.

-1

u/[deleted] Mar 28 '19

Micro$hit bad!

4

u/Coloneljesus Mar 28 '19

Meh. It's not really gonna improve your productivity past those first 3 minutes of setting the shortcut the way you want. What I'm excited about is "Step out of code block".

7

u/no_nick Mar 28 '19

Unless you're regularly using different environments that have different defaults

-30

u/jabbaji Mar 28 '19

Sorry to hijack your comment.

Does someone know keyboard shortcut to auto-wrap a file. I require it for a js file.

19

u/Blocks_ Mar 28 '19

Just Bing it, man.

11

u/KoroSexy Mar 28 '19

Or search it on IntegerUnderflow

2

u/jabbaji Mar 28 '19

Let me Yahoo it.

1

u/Fiskepudding Mar 28 '19

You mean Format Document? Ctrl alt L

1

u/wildjokers Mar 28 '19

There is an /r/Intellij sub-reddit.

372

u/Sidereel Mar 27 '19

Nice. Now I can spend the rest of the workday trying out IDE themes.

6

u/i_spot_ads Mar 28 '19

you'll go back to dracula anyway

11

u/Aschentei Mar 27 '19

Productivity at its finest

2

u/cicuz Mar 28 '19

you mistyped "waiting for reindex"

1

u/Coloneljesus Mar 28 '19

My workday has just started and I'm hungover. Perfect.

0

u/[deleted] Mar 27 '19

[deleted]

79

u/Sidereel Mar 27 '19

I ended up using Material Theme which is a custom theme plugin that doesn’t seem to use the new theme feature, but it looks great.

And you can’t go wrong with Menlo :)

41

u/kirkegaarr Mar 27 '19 edited Mar 28 '19

Second Material UI Theme. I run it with the One Dark theme and Fira Code with coding ligatures. It looks great.

10

u/[deleted] Mar 27 '19

Firacode+iScript FTW. Sweet ligatures and cursive italics.

3

u/lazystone Mar 28 '19

Could you give a link to iScript? Tried to google it but got some garbage.

3

u/[deleted] Mar 28 '19

3

u/lazystone Mar 28 '19

Aha, I've seen that one, looks interesting but a bit old. Fira code at least two releases ahead.

1

u/Larkenx Mar 28 '19

Same here! I think I run the dark purple / night theme tho

12

u/how_do_i_land Mar 27 '19

Material Theme UI + Monokai w/ Fira Code is my current favorite. I love the ligatures

1

u/thulsabroom Mar 28 '19

Exact setup here. Loving it so far.

1

u/ghoul_chilli_pepper Mar 28 '19

I've been using Rainglow set of themes, specifically Absent Contrast. They really have done a stellar job by having both bright and contrast version of different themes.

11

u/[deleted] Mar 27 '19

Monokai for me.

7

u/l0gicgate Mar 27 '19

Material Theme (Atom one dark colors) with Peacock In Space (High contrast) theme is my absolute favorite combo.

I used Darcula for 5+ years and I’m never looking back!

7

u/[deleted] Mar 28 '19

consolas has changed my life code staring life

0

u/[deleted] Mar 28 '19

[deleted]

6

u/KerryGD Mar 28 '19

I only code with IBM Plex

1

u/Bruin116 Mar 28 '19

It is indeed.

6

u/snowe2010 Mar 28 '19

The dark purple theme is amazing. I also wrote a solarized theme a week or two ago which I think is pretty good. I need more feedback on it though.

1

u/marvk Mar 28 '19

I agree, I never found anything better than Darcula, but I switched to Dark Purple when it came out and it stuck with me. It's very nice.

4

u/Devildude4427 Mar 28 '19 edited Mar 28 '19

The Material Theme UI plugin is brilliant. I prefer the Arc Dark color scheme that comes with it, but there’s a handful of good ones.

7

u/kingofthecream Mar 27 '19

I don’t think I’ve found anything better than Dracula.

That's what I thought. Except the themoparanoia (Wikipedia page pending) kicks only before finishing a couple of code lines, revealing some keywords do not look as pleasing as you thought. Back to preferences > themes. New cycle coming up after you selected the new theme.

1

u/ShySyro Mar 28 '19

I can't find anything about themoparanoia :v i'm intrigued but it seems like a made up word

1

u/HistoryScienceGaming Mar 28 '19

theme - paranoia
yeah

3

u/wildjokers Mar 28 '19

Dracula

Darcula

8

u/su8898 Mar 28 '19

Funny, I think they got you there just like they got me. it's actually Darcula not Dracula!

5

u/[deleted] Mar 28 '19

I think they are two different themes. Searching for Dracula theme, I get this. Searching for Darcula theme again and I get this

2

u/th3_pund1t Mar 28 '19

Fira Code is the font you should be using

1

u/marvk Mar 28 '19

menlo

THERE ARE DOZENS OF US, DOZENS!!

1

u/jeenajeena Mar 28 '19

Firacode, with ligatures.

1

u/wittyaccountname123 Mar 30 '19

GapStyle is my favorite

1

u/piit79 Apr 02 '19

I also use Darcula, I like it's neutral and just dark enough. I used to use Luxi Mono (with added slashed zero) but now I've been in love with Monaco for like 5 years. It's just a shame that the bold and italic rendering is broken in Linux, have to make everything regular otherwise the font is not monospaced any more.

2

u/[deleted] Mar 28 '19

[removed] — view removed comment

3

u/Sidereel Mar 28 '19

Yup! Just search “solarized”

176

u/[deleted] Mar 27 '19

It even adds import lines for you! Most importantly though, the loading line touches both sides instead of starting a bit in, and going all the way to the other side.

49

u/corsec67 Mar 28 '19

This is the important fix of this version!

22

u/sowelie Mar 28 '19

This has been bothering me. Way more than it should.

25

u/witti534 Mar 27 '19

It was just horrible to see that asymmetric thing of something horrible.

19

u/kebabelele Mar 28 '19

It has always imported stuff automatically for me?

5

u/BlueShell7 Mar 28 '19

Yeah, that has been there since version 0.9 or so ...

2

u/gadelat Mar 28 '19

Not when copying code. Now when copy piece of code, it imports everything that wasn't yet imported in current file

1

u/[deleted] Mar 28 '19

I must’ve had it set to be off.

1

u/Skellicious Mar 28 '19

They might have changed it to be on by default, because I think you had to enable it before.

33

u/greeneagle692 Mar 27 '19

woo ability to cherry pick per file changes!

I always ended up copy pasting from repo rather than using cherry pick most of the time b/c it takes the entire commit.

12

u/gunch Mar 28 '19

Why not CLI?

43

u/greeneagle692 Mar 28 '19

You could but there's more typing and cross checking than I want to do.

Inb4 someone says "why not customize the shit out of your terminal to do xyz" answer is ive learned I'd like to focus on developing rather than tinker with tools all day. Which is why I use intellij. Dropped text editors b/c of the constant up keep I need to do.

20

u/cowinabadplace Mar 28 '19

Git’s patch mode is quite straightforward, actually. I use it all the time. Not going to tell you to use it if it doesn’t work for you but worth a shot. I just use it normally.

3

u/greeneagle692 Mar 28 '19

so i looked it up, how would you use patch mode between branches? it looks like its just for changes in the working tree

6

u/cowinabadplace Mar 28 '19

Oh crap, I interpreted it as literal cherry pick not cherry-pick and I don’t know why. I’m sorry. Would git checkout otherSha -- /path/to/file not do the trick for the use case of pulling in a single thing from another commit? I do see that it doesn’t really auto commit with the same message which is fair.

Typing on iPad so probably not exact but you get the picture.

2

u/greeneagle692 Mar 28 '19

I'll take a look

1

u/JeezyTheSnowman Mar 28 '19

You can use what you want and have your workflow but most people dont tinker with their terminals or text editors constantly. There is the initial tinkering done (like what most will do with an IDE) and then they just carry the config files across to all the devices

2

u/Garethp Mar 28 '19

I like committing through my IDE because the IDE does another run of the static analysers on the files I'm committing and will give me a warning if I try to commit files that have errors in it. It's nice having another layer of checks especially with the inspections that Jetbrains have

0

u/pdp10 Mar 28 '19

Yeah, I don't grok IDEs either. Perhaps I'll get an opportunity to do some pair work with an IDE person, and finally get some insight.

2

u/KoroSexy Mar 28 '19

Why not GitKraken? It's as simple as right-click on the branch to cherry-pick from -> click "Cherry-pick commit". If you immediately commit the changes, it keeps the ID of whoever committed it originally. If, however, it creates Merge Conflicts, you can't do that. You have to commit it as yourself.

5

u/greeneagle692 Mar 28 '19

Their license server doesn't work behind a corporate proxy and has no option to set a proxy like intellij. Other option is to have your company buy the ability host their own license server but that aint going to happen at a very large company. I actually asked them about the proxy thing a long time ago. The replied back to me a year later with that host your own license server crap. I'm like -_- y'all make life so difficult.

Intellij has been pretty good to me so far just some minor nitpicks about their VC system one of which was the per file cherry-pick thing. Their merge tool is pretty solid.

-1

u/KoroSexy Mar 28 '19

Oof. You could just purchase your own personal "professional" license. If all else fails, you vould use it as your "non-commercial use" and then just so happen to use it on code that eventually becomes commercial nudge nudge wink wink

6

u/greeneagle692 Mar 28 '19

Issue wasn't that, I definitely could purchase one. Problem was on app start up it tries communicating with their servers. But because you can't set a proxy (I specifically asked them to implement that, but they decided not to do that) the server calls fail because I'm on the internal network. So I could never start the app unless if I set a global proxy via environment variables. But that's not a good idea, you could accidentally leak data.

EDIT: but I suppose I could have a start up script to set variables just for it

3

u/BlueShell7 Mar 28 '19

Having full IDE intelligence in your merge/diff windows is very addictive.

9

u/lemontheme Mar 28 '19

Usually really look forward to these releases. This one had me grumbling last night though. All fonts suddenly rendered a lot smaller than usual on my 1080p screen. Had to crank the UI font up to 20 and the editor font up to 18 in order to get what would usually qualify as a size 12/13.

Wonder what went wrong there. This is on linux, by the way.

2

u/xFrostbite94 Mar 28 '19

I have the same problem. Looks crappy on my desktop, weird font and strangely small. Haven't upgraded my laptop yet because of this. Changed the color scheme font, then it only changed the font in one tab. Figured I had to restart the IDE, but then all the tabs used the old font. Hope a future patch fixes it soon

1

u/piit79 Apr 02 '19

Yep, same here. New JRE 11 and new font problems :-@ For now solved by using JRE from the previous version (Help - Find Action... (Ctrl+Shift+A) and "Switch Boot JDK...", or manually: create `idea.jdk` in `config` with the path to the `jre64` folder of the JRE 8 in the previous version).

1

u/zamzungzam Mar 29 '19

I have a same problem on mac. Font is smaller and lot of thiner than before. Looks bad :(

47

u/Drarok Mar 27 '19

Sublime Text keymap

I have to try this at work tomorrow. Ever since I tried out a JetBrains product, I’ve lamented their terrible default keymap. Exciting!

0

u/[deleted] Mar 28 '19

[deleted]

17

u/Drarok Mar 28 '19

No no, actually terrible.

On macOS, JetBrains have things set to system-wide shortcut keys, so they literally don’t work. Plus, none of the system-standard “go to top of file”, “go to start of line” shortcuts work. It’s a terrible platform citizen.

14

u/13steinj Mar 28 '19

They unfortunately do this for many common Linux distributions as well, like they recommend the Gnome keymap on unity (common)-based ubuntu even basic debugging shortcuts don't work.

8

u/Valerokai Mar 28 '19

Looking at you ctrl-alt-l - who thought that was a good idea for format file and didn't think about clashing with screen lock on lots of Linux distros?

2

u/makario Mar 28 '19

Gets me every time.

3

u/NeuroXc Mar 28 '19

The worst part is the shortcuts for the supposedly "same" keymap may be different between IntelliJ and their other IDEs.

1

u/liuwenhao Mar 28 '19

Example? I use Android Studio, IntelliJ, PHPStorm and (sometimes) CLion with basically the same setup but have never encountered issues with the keymap (on macOS).

12

u/Shimakaze Mar 27 '19

No mention of boot JDK 11 support even though it was in the 2019.1 EAP. Did it make it to release?

13

u/m1000 Mar 27 '19

There is still 2 versions of 2019.1, the one with an internal java 11 is still marked as experimental.

5

u/skippingstone Mar 28 '19

What is boot jdk?

6

u/BlueShell7 Mar 28 '19

JDK on which the Intellij itself runs.

1

u/orybak Mar 28 '19

It is available. Either as a separate download from toolbox, or, from a dropdown on the download page

25

u/XFidelacchiusX Mar 28 '19

I'm always amazed when i find people that are afraid of change using eclipse and netbeans. 2008 called it wants it IDE back

2

u/Penguin-Dolphin Mar 28 '19 edited Mar 28 '19

I just started learning programming (java) and I've been taking a course that recommended using NetBeans. What better IDEs should I use?

13

u/kebabelele Mar 28 '19

The one this post is about.

5

u/FluorineWizard Mar 28 '19

IntelliJ, the topic of this thread. Either get the FOSS Community Edition or, if you're eligible, register as a student and get the Ultimate version for free.

3

u/XFidelacchiusX Mar 28 '19

If you like netbeans that's fine ;). Programmers are protective of their IDEs. Were kinda like different gangs :P But if you ever want to try something different check out intellij community edition. Its free. I like the look and feel of intellij more. Enable the darcula theme. ;)

2

u/liuwenhao Mar 28 '19

IntelliJ is the king of Java/Kotlin IDEs. Community Edition and you are good to go.

1

u/mickael_istria Mar 29 '19

Eclipse IDE is a good choice as it's really fully free (OSS), has support for a lot of languages and frameworks, and requires less resources than IJ.

0

u/[deleted] Mar 28 '19

[deleted]

2

u/Penguin-Dolphin Mar 28 '19

Ok thanks for the info!

1

u/LeDucky Mar 29 '19

Hey let's everyone use only one thing, who needs choices amirite?

-18

u/[deleted] Mar 28 '19

[removed] — view removed comment

21

u/marvk Mar 28 '19

2008 called again and it also wants its memes back.

33

u/well___duh Mar 27 '19 edited Mar 27 '19

Is it me or does a lot of what Java 12 have to offer syntactically basically just Kotlin?

EDIT: Apparently Kotlin triggers a lot of old java heads here

53

u/cowinabadplace Mar 28 '19

That’s the Java philosophy, right? Slowly absorb good features from elsewhere? Works fine imho. It’s a worthwhile language on its own. The “human” DND variant.

-12

u/BonusPlay3 Mar 28 '19

press X to doubt

Java is the language that didn't move a single bit away from 1.8 and decided to change just only 2 years ago to add "new" features.

50

u/apemanzilla Mar 27 '19

I mean these features have been around in other languages for a long time now, not just kotlin

3

u/well___duh Mar 27 '19

Yes but given that IntelliJ is primarily a Java IDE...

11

u/happymellon Mar 28 '19

IntelliJ is their everything IDE. I use it for my Python and web dev, and very little Java these days.

4

u/KerryGD Mar 28 '19

If one has the ultimate version

1

u/happymellon Mar 28 '19

Pycharm community edition? Essentially the same thing, plus IntelliJ community edition supports JavaScript and SQL, most things really.

Not PHP though, you do have to pay for that.

4

u/BlueShell7 Mar 28 '19

Then why do you bring up Kotlin if you discount other languages?

0

u/[deleted] Mar 28 '19

[deleted]

7

u/yawkat Mar 28 '19

Not even that - you can install plugins to make it work like pycharm and webstorm too.

0

u/[deleted] Mar 28 '19

[deleted]

0

u/yawkat Mar 28 '19

Only thing I miss is clion :(

13

u/nutrecht Mar 28 '19

I'm a Java dev by trade as well as a Kotlin fan, and Java won't come close to catching up the coming years. It's great that there's now finally progress, but too many people in the ecosystem are way too conservative. Just look at the silly 'var/val' debates or how long it took to consider implementing multi-line strings.

31

u/Determinant Mar 28 '19

Java will never reach Kotlin while carrying the broken mess that is 25 years of backwards compatibility.

Adding features will just complicate the language since you'll have the new away and also the old broken way of doing things.

Welcome to the new C++

20

u/BoyRobot777 Mar 28 '19

Funny how people keep complaining no matter what. Just recently, when i was browsing java 12 launch post in reddit, people complained that some APIs were deleted and old deprecated dependencies were moved out of JDK like CORBA. The other half is complaining that they are not removing APIs fast enough.

10

u/BlueAdmir Mar 28 '19

I'll sit here and wait for zealots to explain to me how making sure programs written in 1999 still run today is a bad thing.

8

u/yawkat Mar 28 '19

Java still has a long way to go before becoming as bad as c++. It's still a pretty simple language.

8

u/[deleted] Mar 28 '19

They pushed Java as not being the mess that C++ was when they released Java. Sadly they realized they were good features but didn’t make better versions of them. :(

0

u/jcelerier Mar 28 '19

Adding features will just complicate the language since you'll have the new away and also the old broken way of doing things. allow more people to deliver more value at less cost.

Seriously, I have never ever seen this being a problem in practice, in any language / project. But oh boy have I heard people complaining.

1

u/Determinant Mar 31 '19

Maybe you've never seen this problem because you haven't been looking. There are many real-life examples.

Just look at C++, it's no longer about whether or not you know C++ like it was 20 years ago but which version you know.

Another example is Scala where they threw everything at it including the kitchen sink to see what sticks. Complexity is a common complaint about Scala.

More features doesn't always mean better. This is especially true when you hang on to the old broken way so now you have multiple ways of doing the same thing.

1

u/jcelerier Mar 31 '19

You're actually exactly the kind of comment I refer about. I develop mainly in C++ and the immense majority of codebases I've worked on don't discriminate against features but embrace the language as a whole and the whole team chuggs along happily.

4

u/cypressious Mar 28 '19

C# is getting a similar switch syntax. All the programming languages are getting influenced by each other, that's a good thing. Why should Java invent a completely new syntax if there's a battle-tested one that users are happy with.

3

u/introspectivedeviant Mar 28 '19

Iirc groovy closures were what convinced java to implement lambdas.

8

u/OffbeatDrizzle Mar 27 '19

what's Kotlin?

57

u/[deleted] Mar 27 '19

Kotlin lang

IMO it’s an absolute joy to work with.

16

u/excitebyke Mar 27 '19 edited Mar 28 '19

you do any Kotlin work in a non-android context?

edit: appreciate the comments. Do you guys use it at work? Was it something you had to convince your team to do it? Did someone else have to sell the team on it? Just curious about that kinda stuff.

I'm interested in trying it out on my side projects first. (I mostly do Spring) -- but if it makes sense, maybe its worth introducing at work. I just know that can be an up hill battle

23

u/krum Mar 27 '19

Running it on a server. It's great stuff.

19

u/skroll Mar 27 '19

We run a lot of production Kotlin on the server and it’s a blast to work with.

12

u/Determinant Mar 28 '19

I use Kotlin for backend development every day

19

u/[deleted] Mar 27 '19

I'm using it server side with Spring and it's the bee's knees

10

u/RhodesianHunter Mar 28 '19

Seconded, Spring Boot + Kotlin is the most productive I've ever been.

8

u/kirkegaarr Mar 28 '19

I'd say it fixes almost everything wrong with Java and has almost entirely seamless interop with Java. (Almost?) all of the newer features in Java were in kotlin first. It is nice to see Java getting more frequent updates now though.

12

u/ILikeTheBlueRoom Mar 28 '19

I build web application backends in Kotlin and quite like it. I wouldn't even consider vanilla Java these days because it gives me eye cancer, but Kotlin is fine.

3

u/nutrecht Mar 28 '19

Yup. Introduced it at 2 clients and am now on a 3rd client where it's used extensively.

In my experience back-end developers either don't want to even try it, or they love it.

-1

u/AdventurousComputer9 Mar 28 '19

Maybe I'd love it if I could get over the no ;

It feels like writing text and not using dots

It just looks weird

But maybe that's easy to get over, I dunno

4

u/nutrecht Mar 28 '19

Maybe I'd love it if I could get over the no ;

Seriously? That's all? That takes a few hours to get used to. I have the opposite: getting annoyed with all the unnecessary semicolons in Java.

1

u/AdventurousComputer9 Mar 28 '19

Like I said, it feels like not using a dot. We don't suddenly just use no dots in stories.

4

u/MrPowerGamerBR Mar 28 '19

You can use ; in your code of that's the issue

3

u/BlueShell7 Mar 28 '19

Dot in the text has an important meaning, without it the text might be unclear/ambiguous.

Same is not true in Kotlin. Just look at your Java files - 99% of your semicolons are the last character of the line so there would be no loss in clarity if even Java didn't use semicolons.

2

u/Macrobian Mar 28 '19

It's great. It's no Scala, but hey, beggars can't be choosers.

1

u/koreth Mar 28 '19

Another "Yep, I use it on the server side." In fact, we have an Android app and we don't use Kotlin for that! (Our Android app uses React Native.)

As for introducing it: I did a little experiment where I converted a few of our Java classes to Kotlin. Showed them around to the rest of my team, and everyone agreed it was a significant enough improvement to be worth coming up to speed on a new language. However, I should add that my company tries to hire polyglots; we have no "Java programmers" and we all write Python and JavaScript regularly in addition to Java (and now Kotlin).

There was some legitimate concern about compilation speed but we collectively decided the slower compilation, while noticeable, was more than offset by the language improvements.

The fact that there's very good bidirectional interop made it pretty painless to introduce; the biggest pain point is that we use Lombok on the Java side and Kotlin's built-in Java compiler doesn't know how to process the Lombok annotations.

0

u/[deleted] Mar 27 '19

[deleted]

34

u/ElPolloDiabIo Mar 28 '19

Kotlin is open source since 2012.

Github

0

u/[deleted] Mar 28 '19

[deleted]

5

u/Devildude4427 Mar 28 '19

You think Google will go belly up shortly? They are sponsors too.

0

u/[deleted] Mar 28 '19

[deleted]

1

u/Devildude4427 Mar 28 '19

Sure, but that’s not really the case here. Kotlin was their solution to Oracle’s shenanigans, and with how extensively they supported Kotlin to be the new “Android Language”, there’s no way they drop it any time soon.

13

u/Determinant Mar 28 '19

You know that you don't need to build Kotlin files in IntelliJ right?

3

u/mad_all Mar 28 '19

It's open source

23

u/cephalopodAscendant Mar 27 '19

It's a language created by JetBrains to serve as a more expressive and modern take on Java. It's got cleaner syntax for functional programming, better null-safety, and significantly less boilerplate, among other things.

The real killer feature, though, is the interoperability with Java code. Like most JVM languages, you can call Java code from Kotlin pretty easily. However, it's also fairly trivial to call Kotlin code from Java, which makes piecemeal migration of a codebase relatively painless.

1

u/Silhouette0x21 Mar 28 '19

How would Kotlin compare to something like Scala?

1

u/cephalopodAscendant Mar 28 '19

Unfortunately, I'm not too familiar with Scala. Hopefully someone else who is can chime in.

1

u/Determinant Mar 31 '19

Kotlin has 85% of Scala while avoiding the complex bits. Some areas of Kotlin are superior to Scala.

Scala went too far with academic features and many complain about complexity.

Kotlin is pragmatic and seems like the perfect balance.

1

u/Silhouette0x21 Mar 31 '19

What is the 15% that would make you choose Scala over Kotlin? Scala is big in the Spark world since Spark's native code is written in Scala.

2

u/Determinant Mar 31 '19

The extra 15% is the reason why I avoided Scala.

Things like implicits and unbounded operator overloading makes the code less clear so I'm glad Kotlin didn't include those features.

One area where Scala is better than Kotlin is pattern matching.

One area where Kotlin is better than Scala is that nullable types are true union types whereas 'Option' is not. This results in simpler Kotlin code that is more stable when changing between non-null and nullable types.

0

u/[deleted] Mar 27 '19

[deleted]

26

u/how_to_choose_a_name Mar 28 '19

Kotlin is open source and sponsored by both JetBrains and Google. Even if Jetbrains disappears and Google stops sponsoring it, it could still be developed by the community.

A bit like Java in that regard, except Java has the advantage of being a lot older and having a much bigger community.

3

u/paranoideo Mar 28 '19 edited Mar 28 '19

Kotlin is open source and sponsored by both JetBrains and Google. Even if Jetbrains disappears and Google stops sponsoring it, it could still be developed by the community.

As a groovyier, I can confirm. But, at the same time... it's difficult to keep things moving.

6

u/jyper Mar 28 '19

As someone who helps maintain Jenkins scripts at work I feel like groovy looks like a dead language and slightly resent what seems to be defacto almost a proprietary scripting language.

I know people also use groovy for cradle but is it widely used elsewhere?

9

u/rxvf Mar 28 '19

Gradle scripts can now be written in kotlin.

2

u/OffbeatDrizzle Mar 28 '19

Our testers use groovy. It's good for giving them an entry point into the code to go wild with

9

u/JeezyTheSnowman Mar 28 '19

Kotlin is an open source JVM language. I don't see how you are stuck with in any ecosystem

1

u/wildjokers Mar 28 '19

It's just you.

2

u/chad0013 Mar 28 '19

Best ide in my opninion. I started using it recently and must say I love it.

3

u/mlk Mar 28 '19

And yet there is no easy way to copy all the content of the console output to the clipboard. Ctrl-A doesn't work

4

u/Coloneljesus Mar 28 '19

You can make it write all console output to a file, then work with that file.

I know this is not a fix, just a workaround.

1

u/redditdire Mar 28 '19 edited Mar 28 '19

I have a project with multiple projects with SDK8 and after updating to intellij 2019 the "module sdk is not defined"

any idea how to fix it?

thanks

edit: it seems like im having a lot of problems with mockito libraries and external dependencies.

the same project is broken completely in intellij 2019 :-(

3

u/marvk Mar 28 '19

Install JDK 8 if you hadn't already, then open project structure, add the JDK and use it for your project. It sounds like you were using the bundled JDK for development.

1

u/redditdire Mar 28 '19

Nope I have the jdk8 installed, it's a Linux system, dunno if it's related

3

u/marvk Mar 28 '19

Yes, but do you have it selected as project sdk?

2

u/sex_and_cannabis Mar 28 '19

There's a difference between having it installed and IntelliJ knowing about it.

1

u/Mittalmailbox Mar 28 '19

Now there is option of downloading JRE 11. Not sure if that is better at performance.

1

u/LeskoIam Mar 28 '19

For some keyboard layouts (Slovenian for example) you can't type square brackets (Alt Gr + f/g). It looks like because they added some shortcuts using Ctrl + Alt... Any solutions?

1

u/vqrs Mar 28 '19

You wouldn't be using the JBR11 version by any chance?

1

u/gabro00 Mar 29 '19 edited Mar 29 '19

PyCharm has broken as well :( Hungarian keyboard layout)

Edit: found the issue in JetBrains' issue tracker https://youtrack.jetbrains.com/issue/IDEA-209426

1

u/AMidnightRaver Apr 01 '19

Thanks!

Fix is: CTRL + SHIFT + N, Actions, Registry..., tick actionSystem.force.alt.gr

1

u/[deleted] Mar 28 '19

Does this include rider 2019?

1

u/sex_and_cannabis Mar 28 '19

Rider is its own product. It isn't like WebStorm, in that IntelliJ is a superset of WebStorm.

1

u/ryenus Mar 29 '19

"Recent Locations Popup" looks nice, but it's a bit surprising because it takes over the shortcut key ctrl/cmd+shift+e, which was once used for "Recently Changed Files". I had to restore the old binding and use ctrl+- (ctrl+minus) for it.

1

u/joaosextafeira Apr 10 '19

I would like if they stop adding new features for one year and focus on bugs/performance.

-5

u/[deleted] Mar 28 '19

Does this really deserve 1,000 upvotes?

-34

u/[deleted] Mar 28 '19

Sorry normies, I will continue in Vim