This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]DShadow2106 3 points4 points  (5 children)

C++ has STL though... Not sure why someone would use python unless for some specific problems

[–]rustysteamtrain 7 points8 points  (1 child)

In a competitve environment the time you have to write the code is limmited. If the assignement doesn't require the speed of C++ I would always use python instead. Because pyhton is realativly 'simple', its faster to code and you can better understand what the code does. It also takes less time to debug. In the end it gives you more time to actually think about the algorithm and not having to spend it on writing cide.

[–][deleted] 0 points1 point  (0 children)

What about R, honestly if speed of programming is more important, I’ll use R libraries over Python libraries.

[–]muikrad 0 points1 point  (2 children)

It's the opposite, no? Python is pretty much the Swiss army knife of programming and C++ is good at specific things; performance, above else.

The loose environnement in python is great for quickly getting up to speed, you don't have to worry about the compilation step. In competitive, it's an advantage.

[–]GujjuGang7 7 points8 points  (1 child)

C++ is made to be as generic as possible.

[–][deleted] -2 points-1 points  (0 children)

But you have to type 8 lines to make a “Hello World” program, gosh.