r/javahelp • • Jan 15 '21

Preferences on Java environments

Hey there, I'm a fairly new CS student, I've taken one quarter of Python courses and this quarter I have begun studying Java. My professor is teaching using BlueJ but recommended any students that are looking to pursue CS as a major to look into other platforms because as programs become more complex apparently BlueJ just starts falling apart. He suggested a few other ones, out of which I have begun using IntelliJ. I was wondering if any of you guys have any input from the professional realm if IntelliJ is a platform that I should be putting significant effort into learning or if there is a better environment that I would be better off learning before I get to deep into IntelliJ, because if I'm learning it, I'd feel much more comfortable knowing that what I'm learning will continue to be useful as I move into the professional sector.

17 Upvotes

33 comments sorted by

•

u/AutoModerator Jan 15 '21

Please ensure that:

  • Your code is properly formatted as code block - see the sidebar (About on mobile) for instructions

  • You include any and all error messages in full

  • You ask clear questions

  • You demonstrate effort in solving your question/problem - plain posting your assignments is forbidden (and such posts will be removed) as is asking for or giving solutions.

    Trying to solve problems on your own is a very important skill. Also, see Learn to help yourself in the sidebar

If any of the above points is not met, your post can and will be removed without further warning.

Code is to be formatted as code block (old reddit: empty line before the code, each code line indented by 4 spaces, new reddit: https://imgur.com/a/fgoFFis) or linked via an external code hoster, like pastebin.com, github gist, github, bitbucket, gitlab, etc.

Please, do not use triple backticks (```) as they will only render properly on new reddit, not on old reddit.

Code blocks look like this:

public class HelloWorld {

    public static void main(String[] args) {
        System.out.println("Hello World!");
    }
}

You do not need to repost unless your post has been removed by a moderator. Just use the edit function of reddit to make sure your post complies with the above.

If your post has remained in violation of these rules for a prolonged period of time (at least an hour), a moderator may remove it at their discretion. In this case, they will comment with an explanation on why it has been removed, and you will be required to resubmit the entire post following the proper procedures.

To potential helpers

Please, do not help if any of the above points are not met, rather report the post. We are trying to improve the quality of posts here. In helping people who can't be bothered to comply with the above points, you are doing the community a disservice.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

30

u/imallthatanddimsum Jan 15 '21

IntelliJ is the industry standard among professional software development for Java. If you’re really early in your learning, I would focus more on that than spending too much time learning the quirks of IntelliJ, because it has an insane amount of features and you can easily get overwhelmed. That being said, knowing how to use IntelliJ at a basic level is still useful.

6

u/KeepCalmJeepOn Jan 15 '21

Yeah, I'm mostly using it at surface level right now, just kind of picking up quirks as I go, such as the auto fill features and something that I learned today was really cool was how it creates the little color patch when you give it custom RGB input. I tried using BlueJ for one project and just felt like it was just too cluttered with crap and really liked the cleaner look of the coding window in IntelliJ. That's awesome to hear that it's the industry standard though, I'm really liking it so far.

2

u/see_recursion Jan 15 '21

IntelliJ is the industry standard among professional software development for Java.

Just wondering if you have something that backs that up.

1

u/HecknChonker Extreme Brewer Jan 15 '21

Its definitely the industry standard for java. Eclipse is second, but the gap is fairly large.

https://snyk.io/blog/intellij-idea-dominates-the-ide-market-with-62-adoption-among-jvm-developers/

13

u/Orbitaliser Jan 15 '21

IntelliJ is the cream of the crop. Don't worry about the advanced stuff for now.

Eclipse is pretty good too though.

8

u/[deleted] Jan 15 '21

Just stick with intellij as that's what we use and it's really the best ide for Java that's out there. Nothing else even comes close.

10

u/Fenxis Jan 15 '21 edited Jan 15 '21

Eclipse is our companies official IDE but it can get bogged down with all of the custom plugins. A good chunk of people use intelliJ instead

3

u/PatataMaxtex Jan 15 '21

I know 2 IDEs that are in use in companies Eclipse and IntelliJ I personally prefer IntelliJ, but my university and my company works with eclipse. Try both and stick with the ond that is easier for you.

2

u/firsthour Profressional developer since 2006 Jan 15 '21

Been using Eclipse for 15 years.

2

u/dastardly740 Jan 15 '21

Most of my development is in Spring. So, I use Eclipse Spring Tool Suite, there is also Spring Tools for Intelij, VS Code, and Theia.

3

u/squishles Jan 15 '21 edited Jan 15 '21

you can go down a deep rabbit hole with setting up an environment that's probably not a great thing to be worrying about while learning. I've never used bluej, but if it's working for you.

mine these days is gradle or maven depending on how much control i need in the build, with a local gitlab instance for the ci. I like using a ci for myself, because it keeps me checking in between pushes to someplace people review etc, and I like just having the tests autorun, and gitlab has a nice package for that. IDE I've just always liked eclipse, sometimes if I don't feel like looking at all the extra red lines while chicken scratch drafting I'll do vim, but that's only if I'm working with something I know well enough not to really need the autofill for or a very quick thing to make a stack trace go away, also like not having to hop off terminal. Most people prefer intellj though so feel like I should mention it because I'm probably an odd duck for editor choice.

That's all of course if I'm doing things ideal how I like most often for myself, most places will pay you to use the stack they like, because they're ninnies. Which could be something like ant/ivy on TFS with visual studio or whatever, lot of different combinations of tools that do roughly the same thing.

2

u/[deleted] Jan 15 '21

As a CS student , VS code + Java extension pack might be benefits you in term of simplicity and polyglot features

0

u/[deleted] Jan 15 '21

[deleted]

2

u/KeepCalmJeepOn Jan 15 '21

I was told that the free version should really be all I need, that the paid option only really offers benefits for companies and businesses. But is there any preference between the 32bit and 64 bit versions of IntelliJ? I have both of them downloaded but have exclusively been working in the 64 bit version.

5

u/nutrecht Lead Software Engineer / EU / 20+ YXP Jan 15 '21

But is there any preference between the 32bit and 64 bit versions of IntelliJ?

Your computer is 64 bits running a 64 bits OS, you really should use the 64 bits version. Zero reason not to.

0

u/[deleted] Jan 15 '21

[deleted]

1

u/KeepCalmJeepOn Jan 15 '21

So for smaller projects would it actually make more sense to develop them on the 32 bit version (assuming they will work there)? Or is there any harm in just using 64 for everything?

0

u/[deleted] Jan 15 '21

[deleted]

2

u/KeepCalmJeepOn Jan 15 '21

I'm currently working with 16GB of RAM on my home PC, so I think I'll stick with the 64bit for now. Thanks for the advice and info!

0

u/[deleted] Jan 15 '21

[deleted]

2

u/KeepCalmJeepOn Jan 15 '21

System.out.println("Welcome to the Java party buddy!");

8

u/Orbitaliser Jan 15 '21

No. Not for Java unless the project you are working on is very small (almost never in practice).

IDE clickthrough support is extremely useful in large projects and we all know how many abstractions there are in Java. IDEs provide testing frameworks more readily and you can set up multiple run configurations. Debugging support is excellent in the likes of IntelliJ and has no installation overhead. You can view Javadoc comments from the IDE and preview how they will look like as well.

Please don't give a suggestion like this if you yourself haven't explored Java and related IDEs enough.

4

u/squishles Jan 15 '21

That works for python more than java, because python is dynamically typed. Java is statically typed which allows the ide to do a lot more cool shit for you that you'd have a hard time imagining an editor doing for you coming from python.

1

u/nutrecht Lead Software Engineer / EU / 20+ YXP Jan 15 '21

Even for Python it would be pretty silly to use a 'plain' text editor as opposed to a proper IDE, or at least VSCode with a ton of plugins. There's nothing cool about refusing to learn the tools of the trade. That's like a carpenter who refuses to use electric drills because hand drills are cooler.

2

u/squishles Jan 15 '21

python I can see why someone wouldn't want to, every method unless your projects on a recent version of python and strict about using type hinting, the ide can almost never figure out what type is what.

Without the type information what do you really get out of the ide? Maybe an occasional reminder to close the bracket on your list comprehension or catching when you mix tabs and spaces? it just doesn't feel like it's worth the 1-2gb or ram for it, especially when you're going to pretty much have to have the browser open for the api documentation, because almost none of that stuff's getting pulled inline due to the lack of type info.

The usefulness of them between the two languages is pretty much night and day.

2

u/nutrecht Lead Software Engineer / EU / 20+ YXP Jan 15 '21

because almost none of that stuff's getting pulled inline due to the lack of type info.

That simply isn't true at all. Did you even try?

3

u/squishles Jan 15 '21

yes, even went shopping around atom intellj visual studio. None of them come remotely near what you get out of an ide in java.

if you write something like this the ide will not know the type of any variable involved

def foo(bar,baz):
    if(bar):
        return bar
    else:
        return baz

4

u/nutrecht Lead Software Engineer / EU / 20+ YXP Jan 15 '21

This is just plain bad advice. If you're going to use Java professionally you're going to be using a proper IDE, probably IntelliJ. There's nothing cool about programming with one hand behind your back.

If you're "new" maybe refrain from giving advice and stick to learning for a bit eh? :)

0

u/[deleted] Jan 15 '21

[removed] — view removed comment

3

u/kAlvaro Jan 15 '21

I presume that information only applies to your country (United States?).

1

u/Sergey305 Jan 17 '21

Actually, JetBrains has offices all around the world (even in the US) with devs of different backgrounds in them.

1

u/[deleted] Jan 17 '21

[removed] — view removed comment

1

u/Sergey305 Jan 17 '21

These offices are not "empty facade", they are growing, developing, and attracting new devs. This year, the company has even moved to a new larger office in Munich to accommodate more employees.

JetBrains has more offices outside Russia, than in it. And of course, it's been founded in Prague a year before the first Russian office was opened.

1

u/[deleted] Jan 18 '21

[removed] — view removed comment

1

u/Sergey305 Jan 18 '21 edited Jan 18 '21

The company is registered in the Czech republic, which isn't Russia. And I must say that seeing people and companies being judged simply by nationality (or even by connection to a nationality) is very disappointing.

I sincerely hope that you'll never be judged and accused of crimes when the only proof is your nationality.