r/javahelp • u/aconfused_lemon • Jan 29 '20
What's your preferred IDE/compiler
My professors in the past had recommended Eclipse for the class but now my prof this semester is saying IntelliJ is better to use. So I was wondering which you prefer to use for writing.
17
u/MyNameIsRichardCS54 Jan 29 '20
Out of the box Intellij has by far the best setup but with the right plugins and configuration tweaks, Eclipse is damn near as good. Its auto-complete is not as good as Intellij but Eclipse has all the enterprise features that the community version of Intellij doesn't.
6
Jan 30 '20
IntelliJ Ultimate is free for students for a year
4
u/whizvox Graduate and Tutor Jan 30 '20
and you can keep renewing it. I've been doing that for the past 3 years.
1
1
Jan 30 '20
[removed] ā view removed comment
2
u/whizvox Graduate and Tutor Jan 30 '20
I'm still in school
1
Jan 30 '20
[removed] ā view removed comment
2
Jan 30 '20
From my experience, their proof is having a .edu email address. You need to register through that email.
1
13
u/mslayaaa Software Engineer Jan 29 '20
I would say get IntelliJ Ultimate (free for students) and learn how to use its features. It will save you a lot of pain, specially when you get to the enterprise level.
6
u/kain24 Jan 29 '20
I used Eclipse for everything up until around 2018. Now, for work or big personal projects I use IntelliJ. If Iām prototyping something small (1 file max) I use VS code.
1
u/mblan180131 Java is love. JAVA IS LIFE. Jan 30 '20
IntelliJ's dark mode is vastly superior as well if that's your thing
6
u/tedyoung Java Trainer/Mentor Jan 29 '20
I prefer IntelliJ IDEA by a lot. I'm a Java trainer (for over 20 years) and find that my students get going much more quickly using IntelliJ than in Eclipse. Refactoring is also much nicer and the code suggestions IntelliJ makes seem to be better.
For school, either one will do just fine.
One that I don't recommend at this point is VSCode. Even with the Java packaged extensions, it's nowhere near the same experience as a dedicated Java IDE like IntelliJ or Eclipse.
2
u/dadmda Jan 29 '20
I feel like VSCode is better for web development
2
u/mblan180131 Java is love. JAVA IS LIFE. Jan 30 '20
I tend to use it for C++ a little when I'm not using VS or CLion but it's definitely a hassle to have to set up build tasks for a project and it doesn't have near the dedicated support and tools that VS and Clion have
1
u/tedyoung Java Trainer/Mentor Jan 29 '20
VSCode is great for JavaScript/TypeScript-based development, but is currently not ready for non-trivial Java development in my opinion.
2
u/dadmda Jan 29 '20
I would say it's fine for PHP as well, but yeah it lacks a lot of features for java
1
u/huntsvillian Jan 30 '20
I use intelliJ at work for both front and back end development. A number of my co-workers swear by vs code for JS.
5
2
u/erihel518 Jan 29 '20
I'm a student now. I am told to primarily use eclipse and netbeans for school. But from the beginning I've wanted to get into Android Development and Android Studio is built from intelliJ. But for all of my programming classes, Python, Java and C++, I've instead used JetBrains IDE's PyCharm, IntelliJ and CLion. I feel they work the best, have the best features and all three work mostly the same so it's my go to and probably always will be.
2
u/srk- Jan 30 '20
You can use vscode from Microsoft.
I have used eclipse for a long time at work like 5 plus years
Less than 1 year with Intellij
Now with VsCode for more than 2 years. I personally feel VsCode is the best.
3
u/jocularamity Jan 29 '20
I use intellij day to day at work. It has better features and is overall slick to use.
For a beginner though, just use whatever the professor uses. Try them all out. Netbeans, eclipse, intellij, and others can all be full featured dev environments for java.
Intellij is probably actually the worst (in my personal experience) at quickly finding compiler errors for you. Netbeans and eclipse show the errors instantly but intellij ignores them until I manually try to run (yes, auto build is turned on) and even then only shows the first error it stumbled upon.
2
u/tedyoung Java Trainer/Mentor Jan 29 '20
I will say that you're having a different experience than most folks I work with as a Java trainer and consultant. I work with IntelliJ on small and huge projects, with dozens of others, and we don't have that experience.
1
u/jocularamity Jan 30 '20
That's awesome to hear. What sorts of projects do you typically work on? Which build systems typically (ant/gradle/maven/other)? Something must be different about mine.
The version should be okay. I keep it updated, and have run both community and whatever the pro/paid/ultimate version is called. It's been a repeated issue for me and for others I work with, on multiple different projects.
1
u/tedyoung Java Trainer/Mentor Jan 31 '20
All sorts of projects (mostly Spring Boot-based back-end apps and microservices), small ones (few dozen classes) to large ones (thousands of classes), using both Maven and Gradle.
1
u/philipwhiuk Employed Java Developer Jan 29 '20
IMO The main drawback of IntelliJ IS it doesn't build on save and doesn't mark files with errors in the project tree. You have to manually trigger a build.
I'm interested to know how you get around that.
I like IntelliJ for lots of things, but it doesn't do compile-on-save.
2
u/tedyoung Java Trainer/Mentor Jan 29 '20 edited Jan 29 '20
There's a difference between "build/compile project" that generates .class (and .jar) files on-disk, which, yes, IntelliJ does not do this by default (you can set it to do that, but I find that it's rarely needed). The IntelliJ option is Build, Execution, Deployment > Compiler > Build project automatically.
IntelliJ is constantly compiling and error checking your code, however. It's true that not all errors will immediately show up in the project tree, but my workflow is TDD where I'm running tests very often, so any errors that affect many files show up pretty quickly.
And of course, this is where preferences come into play: my preference is that if I want to find all the compile errors everywhere, I'll hit cmd-F9, and prefer that it didn't waste time compiling and showing me all errors when I'm in the middle of fixing them.
1
u/jocularamity Jan 30 '20
It does have that option, in theory. There's a build project automatically checkbox you can check in settings. It just doesn't do a good job--half the time I have to trigger a build manually in order to find issues anyways. Could be because my projects are always gradle/maven? Not sure. It's just not smooth like the rest of the intellij experience.
2
u/x2mirko dev Jan 30 '20
You can use the Eclipse compiler with Intellij. That way it will find all compile errors and not stop compiling at seemingly random places. I have not yet discovered a downside to this.
2
Jan 29 '20
I use vim for literally everything but Java, then I'll use intellij.
Hot take, people will say "what about C#? You use vim for that too?" My response; "I don't program in C#, never will."
1
u/_aimynona_ Jan 29 '20
Genuine question, why not C#?
2
Jan 29 '20
Because microsoft. I pretty much hate the entire .NET ecosystem, especially TFS.
2
u/stevesobol Jan 29 '20
Even .NET Core?
1
Jan 30 '20
I mean if you just had to use .NET, Core is the better option.
But still, Java can do what whatever .NET can do, better, with more support.
1
u/proskillz Some Skillz Jan 29 '20
I prefer Eclipse, especially the STS4 edition. I do TDD and I've found intelliJ doesn't recommend solutions in the same quality as Eclipse, plus quick text search is a godsend.
I tried an eclipse key map for intelliJ but it didn't quite work out for me in several important cases. I don't want to relearn a new key map.
For someone starting out, I would recommend intellij at this point.
1
u/dadmda Jan 29 '20
I use eclipse at work and intellij at home, eclipse's autocomplete isn't quite as good as intellij but it offers more tools for free
1
1
u/BigGuyWhoKills Jan 30 '20
Intellij Idea with the SonarLint plugin has made me a vastly better programmer than I would be otherwise.
The discoloration of code smells bugs me, and I learn to avoid certain things because I don't want the yellow marks in the gutter!
1
u/smbarbour Jan 30 '20
I used to use Eclipse (and I first learned Java on Visual J++ about 21-22 years ago), but I switched to IntelliJ IDEA because Eclipse was far too unstable.
1
u/RhoOfFeh Jan 31 '20
I used Eclipse for years professionally, then switched to IntelliJ. I played around with a few other tools such as NetBeans along the way, too.
As far as I'm concerned, IntelliJ Ultimate is the gold standard. The learning curve for productivity is a bit steep, largely due to the immense feature set. But if you are keyboard-centric and want an environment that can do just about anything you want, that's the way to go IMO.
DO turn off editor tabs... And learn the keyboard shortcuts for everything you actually do.
1
u/benjaminsl90 Jan 29 '20
Vim and Powershell or Linux command line. You can make Powershell work just like Linux command line through a few tweaks.
1
18
u/parulk Jan 29 '20
Either has its advantages. It's matter of preference. I was an eclipse user during college because it's free features are wide range. But once I started working I switched to intellij.