r/learnjava • u/sebuelias • Aug 14 '15
Which IDE to use.
I'm a beginner. I know the programming basics, may be advanced basics I'd say. I used eclipse up until now, which is recent, as I switched from c++ to java and I never coded much. So now that I decided to program more. I'm caught between which IDE to use. Eclipse, net beans, and others. Could you suggest me. Also would be great if you could tell me the same for c++(I know wrong sub) sorry. Thanks.
Edit : I have decided to try each and see for myself. But any opinion on why one is used or why do you consider one is welcome.
5
u/desrtfx Aug 14 '15
I'd say Eclipse or IntelliJ Community for Java and Microsoft Visual Studio Community for C++.
1
u/sebuelias Aug 14 '15
Why would you say that. What makes eclipse better than the rest.
6
u/desrtfx Aug 14 '15
I did not say it's better than the rest. I also recommended IntelliJ.
Fact is that Eclipse and IntelliJ are the most commonly used IDEs for Java.
At the moment, Eclipse is a bit more prominent in professional development than IntelliJ but IMHO that's mostly due to the fact that Eclipse is free (and that it initially had a huge push from IBM) versus IntelliJ being commercial.
1
u/king_of_the_universe Aug 15 '15
Umm... I am sure you must know that the Community Edition of IntelliJ, which is free, has most of the functions most developers will crave. Why did you choose to only mention the commercial edition? Because of certain features that I forgot to consider?
1
u/desrtfx Aug 15 '15
Ahem. Did you read my first comment in the thread?
I'd say Eclipse or IntelliJ Community for Java
There I mentioned the community edition.
But, in the lower pat I was not talking about which IDE is better, but about which is more prominent.
The community edition is not for professional development. That's what I said.
1
u/king_of_the_universe Aug 15 '15
Well, I could have phrased that better. The reason for my comment was this: It could give OP the impression that Eclipse is free while IntelliJ costs money.
I mean, your other statements in this thread are just neutral in that regard, so OP could interpret this now as "just additional information" that hadn't been stated so far. The subtlety of IntelliJ "Community" (and its meaning, which people who don't know IntelliJ likely also don't know) can easily escape a reader.
The community edition is not for professional development.
And this is certainly not true. In case you believe that IntelliJ CE can't legally be used for commercial development: It can be, and it is also well sufficient for that.
2
u/desrtfx Aug 15 '15
In case you believe that IntelliJ CE can't legally be used for commercial development: It can be, and it is also well sufficient for that.
Thank you for the correction! Learning something new all the time.
2
u/king_of_the_universe Aug 15 '15
Wow, you really didn't know this? (Probably the legal part, I assume.) Mind blown. Here's some evidence because of the importance of the information:
http://www.jetbrains.org/display/IJOS/FAQ
The Apache 2.0 license was chosen for both the IntelliJ Platform and IntelliJ IDEA Community Edition. For the full text of the license see: http://www.apache.org/licenses/LICENSE-2.0.html We chose the Apache 2.0 license because it is a very open license which lets anyone create both open source and commercial products on top of our platform.
So, they explicitly allow people to build commercial versions of e.g. the Community Edition, which (I THINK.) by extension would also include commercial use of the IDE.
https://stackoverflow.com/questions/1583995/am-i-missing-something-about-the-intellij-announcement - excerpt of accepted answer:
To clarify: The community edition of IntelliJ is available under the Apache license, which means you can use it for whatever purposes you want, including writing proprietary, commercial software. It also mean you can modify the code of IntelliJ yourself, sell modified versions of it, anything like that, as long as you abide by the Apache license.
And finally http://blog.jetbrains.com/idea/2013/05/intellij-idea-and-android-studio-faq/#comment-4939
Dominic says: May 21, 2013 at 1:28 pm
What are the licensing terms and or potential costs for Android Studio. IDEA states that the free community edition is for open source development only. Will Android Studio be the same way? Will it allow commercial development for free or will you have to purchase a license for commercial development?
yole (Dmitry Jemerov, "IntelliJ IDEA developer, JetBrains")) says: May 22, 2013 at 9:21 am
Dominic, IntelliJ IDEA Community Edition is completely free and open-source, licensed under the Apache 2 license and can be used for any kind of development. Android Studio has the same licensing terms.
This was relatively hard to find. Looking at their FAQs, I get the strong impression that they assume that as soon as someone says "Apache License", everybody knows what's up, but that is quite not so. OMFG, it's even missing from the fucking Wikipedia page! EDITED. With reference.
2
1
u/enahsh2o Aug 14 '15
I personally love Eclipse, but I wouldn't go so far as to say it's better than the rest. You will almost always see it touted along side NetBeans and IntelliJ, because they are all on par with each other. Which one you choose comes down to personal preference.
-3
u/sebuelias Aug 14 '15
Personal preference being? At least do you know what is each best at?
2
u/enahsh2o Aug 14 '15
Personal preference can be as arbitrary as liking the way the IDE looks compared to the others. Eclipse is probably best if you do a large variety of things because of its vast amount of plugins. NetBeans has a great scene building tool from my understanding. Not sure what IntelliJ excels at.
1
u/tutorial_police Aug 17 '15
IntelliJ excels at indexing your code base, navigation, completions, suggestions and analysis. Eclipse is like a 5 year old compared to IntelliJ. IntelliJ is is much more convenient to use than Eclipse.
1
u/causalNondeterminism Aug 14 '15
Most of the major Java IDEs have the following features:
code suggestion/completion - helps you to know which methods/fields are available for the variable you're working with
Built-in console - doesn't require you to bounce back and forth between your source editor and your console.
Debugger - a way to toggle breakpoints, pause execution, and look at the values of fields and variables at that point in the execution.
I've only ever used NetBeans and Eclipse. Eclipse is nice because it has a large community - making it super easy to find help. It's also feature-rich. NetBeans gets a lot of hate, but if you're doing a lot of GUI work, it's got a very convenient GUI builder similar to Microsoft's Visual Studios for Visual Basic. My understanding is that there's a GUI builder plugin for Eclipse as well, but I've never looked into it all that much. IntelliJ also seems to be growing in popularity, so I'm sure there's good reasons for that. Ultimately, you should try them and see which you like.
0
u/sebuelias Aug 14 '15
I understand what you are talking about. But the difficulty in trying it all seems hectic. I like eclipse from what I used. But when it came to ui design and all, net beans offered much more, as I was able drag and drop. Is there anything like that for Eclipse?
2
2
u/desrtfx Aug 14 '15
Ui design in Java is best done without any GUI builder.
Hand coding GUIs is much more efficient and produces cleaner, easier to maintain and troubleshoot code.
UI designers are best only used for rough prototyping.
BTW: Eclipse has Window Builder Pro which is free despite the "pro" in the name and probably is the best GUI builder for Java around.
1
u/wheezymustafa Aug 20 '15
I consider myself on the high-end of a beginner of java.. I gotta tell you, Intellij makes me feel like a master coder. Everything just.. makes sense. You don't get that same feeling in Eclipse.
2
0
Aug 14 '15
Just use Emacs ;)
1
u/sebuelias Aug 14 '15
What would that be? If it isn't too foolish to ask.
4
u/robi2106 Aug 14 '15
(snark aside) OP asked for IDE, not an ancient fossilized command line text editor for linux with super powerful but mysteriously hidden features.
3
u/causalNondeterminism Aug 14 '15
emacs is a text editor, not an IDE. one which is loved by those who use it and hated by those who don't know how.
1
Aug 14 '15
ha ha well it's a stupid answer because you want an IDE
Emacs is a dope text editor which is extremely fast to use and highly extensible
the main feature imo is you never have to use the mouse or arrow keys, similar to vim in that it's approach is to require its users to learn a fair amount but if you can get on board it'll take your headaches away
for debugging, etc. it's not the best
0
Aug 14 '15
[deleted]
-1
u/robi2106 Aug 14 '15
to elaborate on BlueJ, it gets the nit picks of Java out of the way and lets you dive into OO programming with a simple interface and no bells and whistles. It also makes learning about instances of objects pure joy.
Once you get the hang of OO and java, then you can move to something with a better debugger, more features, etc etc.
BlueJ was designed specifically for learning Java absent all the tomfoolery and complications of frameworks like spring, struts, hibernate, blah blah blah.
Their tag line starts out "A free Java Development Environment designed for beginners," which is exactly what it does best.
3
u/desrtfx Aug 14 '15
Besides the fact that BlueJ doesn't have any of the features of a modern IDE which makes programming easier (and also learning to program). No code help, no refactoring, no quick documentation, no code check while programming (one of the best features of eclipse); basically BlueJ is a text editor claiming to be an IDE with a UML display feature.
Besides the fact that BlueJ produces cryptic error messages that count for a large part of the questions asked in /r/javahelp
I'd strongly advise against using any of the so-called beginner IDEs. They are far from user friendly and do not actually help learners.
12
u/THEJavaApprentice Aug 14 '15
IntelliJ. There is no competition. Also if you are a student, you get a free licence for 2 years, for the full package.