Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
atheist99303yAdvantages of java in competitive coding?
What?
I'm not sure you know Java and c++. They're comparable in terms of write time, competitive coding is rarely about run time, just time complexity. -
Voxera115853y@atheist that would depend on the competition.
Code golf is about code size and not speed, others are about creating things fast and java is more forgiving than c++ in many cases.
So it all depends. -
atheist99303y@Voxera eeeehhh, code golf tends to have language specific categories. Also code golf is for... A special kind of person...
But I mostly agree with you. I'm experienced in both c++ and java, java has generic algorithms comparable to those in c++ stl, syntax wise they take similar amounts of time to write, the choice is down to preference, if anything java has slightly simpler import/file structure. -
Lasoloz5073y@atheist Same here.
For the first team competitions we've used C++, then we realized Python is way faster to code in, if you just need to hack something together.
Also, it quite depends on the type of competition. Here, where I live, the most common competitions require you to upload your output. But there are some other competitions where you need to upload the source code and let the other system compile at run it. Then you are not even able to decide the language, your are bound to one.
Related Rants
-
xjose97x19Just saw a variable in C named like this: long time_ago; //in a galaxy far away I laughed no stop.
-
Cyborg15A guy and a girl are in a Java seminar. Afterward, the guy approaches the girl and asks, "Hey gurrl, can I ge...
-
Unskipp24So this happened last night... Gf: my favorite bra is not fitting me anymore Me: get a new one ? Gf: but it ...
In case you remember,
there lived a legendary coder named "Harsha Suryanarayana", popularly known as "Humblefool"
from India. He died in a car accident back in 2014.
The only thing that still keeps me wondering is why he always chose to code in Java( in coding competitions ) even though he knew C++ along with STL and was also aware of the advantages of using C++ over Java in competitive coding.
question
humblefool
competitve programming
c++
java