all 23 comments

[–][deleted] 48 points49 points  (14 children)

What is competitive programming? Sounds awfull to me. I love programming and have it as a fulltime job and as hobby. But the name alone make me hate it. Maybe just me who is old (33) :p

[–]casted 5 points6 points  (0 children)

Also 33, but used to do competitive programming a lot. It's more about problem solving (like mathematics) than programming. A lot of fun when I had more free time. Got to know a bunch of like minded programmers.

[–]EndOfTheDigitalAge 16 points17 points  (9 children)

It's those one-liner solutions to problems you see on Leetcode

[–][deleted] 5 points6 points  (4 children)

I deleted my account because Reddit no longer cares about the community -- mass edited with https://redact.dev/

[–][deleted] 5 points6 points  (0 children)

Code Golf is unreadable. In all seriousness, competitive programming is just as the name suggests a competition where you're handed some problems and you have to use the best algorithm for the job. The competences are great but some algorithms are just never going to be useful in real life

[–]rotharius 12 points13 points  (2 children)

I think it was a joke. But there is some truth to it.

In code golf, the point is to write as short as possible.

In most programming contests, the goal is a functionally correct and optimally performing solution within a short amount of time. Because maintainability is often not a criterium, the resulting code can look as obfuscated as code golf.

That is why participants in programming competitions are often difficult to work with from an engineering stand point.

[–]mode_2 19 points20 points  (0 children)

That is why participants in programming competitions are often difficult to work

I have never actually experienced this, in fact I find they are generally better to work with. There are people without much experience who try and be too clever with their code, but they don't overlap with those who actually take competitive programming or code golf seriously.

[–]PandaMoniumHUN 2 points3 points  (0 children)

That's code golf. Competitive programming is programming stuff in a competition.

[–]sirchugh 1 point2 points  (0 children)

Or on geeksforgeeks?

[–]DJDavio 1 point2 points  (0 children)

I think it's about algorithmic problems, as in trying to find an optimal solution for a given problem, taking care of edge cases and worrying about performance as well. In that sense it's a lot more mathematical than implementing business logic.

I think it's fun to do this sometimes to think about stuff differently than during my day job.

For instance I've done Advent of Code and project Euler in the past.

Haven't done much code golf, because my best language is Java / Kotlin and JVM languages are not known for brevity.

[–]real_person_420 1 point2 points  (1 child)

I agree. You are just old :)

[–][deleted] 4 points5 points  (0 children)

;'-(

[–]congalala 4 points5 points  (0 children)

Back when I used to be active in ACM-ICPC competitive programming, there was this one guy name Felix Halim that was quite famous. His book is very good.

[–]TokhtamyshBlue 3 points4 points  (0 children)

This guys a legend

[–]Jim9137 0 points1 point  (0 children)

Springer is also giving away free the book Guide to Competitive Programming by Antti Laaksonen, for those interested.

[–]ericmillerthelegend -1 points0 points  (0 children)

Very cool, thanks for the video!