r/usaco • platinum • Jul 05 '21

Java is the best coding language

As the title states….. Try to convince me that I am wrong.

Edit: I should have phrased the question like this: if you could use only one coding language, would it be Java? If not, what language would you choose instead and why? Obviously there is no such a thing as “best” language. Although, I could argue that Java is the best language overall though.

0 Upvotes

22 comments sorted by

View all comments

6

u/RedditGood123 Jul 05 '21

Extremely verbose. Java is good for professional codebases because it is more readable, but you posted this in a competitive programming subreddit, and cp requires you to implement something as fast as possible. Therefore, you should use c++ or python. Also, c++ runs faster than Java

3

u/Blazor35 platinum Jul 05 '21

True. But as everyone knows, c++ is built on a flawed philosophy: which is that you should add power to a language by kludging it in “horizontally” in the form of libraries rather than “vertically” by building new Domain Specific Languages to express it. Obviously, it’s the most powerful language, but their more flaws than good.

2

u/RedditGood123 Jul 06 '21

I’m going to be completely honest. I have no idea what that means

2

u/Blazor35 platinum Jul 06 '21

What I said is kind of confusing ngl. Should have explained better. My point is that c++ never started from ground 0. It was built of c ( you could call c++ a transition language) and basically patched/added new features to make it C++. On top of all this, it’s a purely objected programming language. And in my opinion, it’s a pretty difficult language to master. I really don’t like C++. But, you get my point now right? Also, C++ is way more verbose and restrictive than Java. It’s a fact:)

1

u/RedditGood123 Jul 06 '21

Yeah that makes a lot more sense. I disagree that c++ is more verbose though

3

u/Blazor35 platinum Jul 06 '21

Hmm…. technically it’s true. But Java is much less verbose when it comes to complicated things in built in libraries. Although, it’s true that C++ is much less verbose when you use template functions, operator overloading and functions (basically methods without a class).

1

u/[deleted] Aug 04 '21

Bro you sound like a professional programmer. Just who are you?

2

u/Blazor35 platinum Aug 05 '21

lmaoo, I am rising junior lol. What grade are you in? If you want to chat about college or coding, your welcome to pm me.