1
C-sucks
3y

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.

Comments
  • 0
    Flexing?
  • 1
    Advantages 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.
  • 1
    @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.
  • 0
    @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.
  • 0
    @atheist you probably are not a competitive programmer
  • 1
    @C-sucks I've done competitions, but I mostly use python for them these days.
  • 0
    @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.
Add Comment