r/AskComputerScience • u/emasculine • Aug 10 '20
What is up with competitive programming?
I can think of nothing less appealing with programming as having a gun put to my head while chugging out code. Coding should be a zen like experience, imo.
20
u/_SecondCity Aug 10 '20
Some people just like to compare themselves to their peers or people around the world in terms of skill. In the same sense of a PvP videogames. Some players motivation to play is earn high stats and to be better than most.
6
u/emasculine Aug 10 '20
of all of the skills that comprise a competent programmer, marginal speed over others is close to the bottom of skills that i would consider relevant. speed all too often correlates with high error rates.
8
u/_SecondCity Aug 10 '20
True. Competitive programming is a niche though. So, by working fast within a time limit could make you a better programmer.
-4
u/emasculine Aug 10 '20
usually when that skill comes in handy in real life it's because of an abject failure of management. now a team with a manager/lead competing might be somewhat more interesting as it at least mimics real life.
11
u/thewataru Aug 10 '20
The speed at which lines of code are produced is by far not the most important skill you need at competitive programming. Knowledge of algorithms, data structures and ability to decompose/analyze and solve the problem. First two are also relevant in some job positions. The last one is relevant almost everywhere in software engineering.
-1
u/emasculine Aug 10 '20
sure it's relevant, but as i said earlier if you need to do that in real time in real life, that is a terrible failure of management. and god help us if managers start thinking that it is the actual norm. software is shitty enough as it is, it doesn't need any more help at being awful.
4
u/teraflop Aug 10 '20
Sure, and if you find yourself needing to run a marathon in order to get to the airport in time to catch a flight, it's probably a terrible failure of planning on your part. But that doesn't mean running a marathon is a bad way to stay in shape.
1
u/emasculine Aug 10 '20
frankly i think a much better way to stay in shape with software, as it were, is to take side projects to explore new tech for breadth and relevance. that is an endless treadmill that must be run.
1
u/emasculine Aug 10 '20
frankly i think a much better way to stay in shape with software, as it were, is to take side projects to explore new tech for breadth and relevance. that is an endless treadmill that must be run.
4
u/deong Aug 10 '20
Competitive programming isn't exercising the same skill as typical industry jobs. It's competitive problem solving really. You're solving puzzles using programming.
1
u/algmyr Aug 11 '20
Calling it puzzles is selling it short. A lot of problems are seriously hard and requires serious algo, ds and problem solving capabilities. It's more about breaking down a problem than figuring out some silly puzzle.
2
u/deong Aug 11 '20 edited Aug 11 '20
You're correct and I didn't intend that derisively. I'm just pointing out that "real world" programming is 98% stuff like data validation, database interactions, and writing simple code to implement business requirements that are just 300 special cases. It's calling APIs. You're rarely faced with the need to find a clever application of dynamic programming or whatever. Programming competitions flip all that 180°.
The comment I was replying to seemed to take competitive programming to task because it rewarded speed instead of the attributes that are important in "real programming". I'm pointing out that they just aren't even the same thing, so it's incorrect to think of them as measuring job skill. It's a wholly different skill.
3
u/algmyr Aug 12 '20
tl;dr: I think problem solving, ds and algos have a bigger impact than what people think. In competitive programming you are trained in skills that actually matters for debugging and reviewing code correctness and efficiency. Granted, this is only one tool at your disposal and you need to pick up a lot more, but it's an important tool that is hard to get really good at. I think the viewpoint of a lot of big tech is that you can tech a really good problem solvers other SWE skills, you can't as easily teach people with other SWE skills to be really good problem solvers.
---
Maybe I'm just lucky with what I've been tasked to do in the industry, but it's the only thing I can really relate to. What you say is probably true for a broad swath of programming jobs (personally not any kind of job I would really want to do, YMMV).
I think the notion that "real development" is devoid of any need for problem solving, ds and algo knowledge is just wrong. It need not be designing some new algorithm, but more breaking apart a problem to know how to tackle it, or breaking apart a solution to see where it has issues (e.g. debugging incorrect code, debugging performance problems).
This is exactly the kind of thing that competitive programming trains you in. A lot of sites even have "hacking phases" where you try to find exploitable issues in other's code to fail their solution (valid inputs for which their code is incorrect, crashes or is too slow).
I think OPs image that only speed is rewarded is very misguided. I can understand it might look that way if you look at the best people, but really even knowing how to approach a lot of these problems is hard and requires a ton of expertise and experience. Giving someone a week to solve the same problem that a skilled competitor solved in a fraction of an hour would probably not help all that much for most people.
1
u/dreadpenguin Aug 11 '20
Speed contests are actually frown upon in serious competitive programming sites, and problem setters try to minimize the effect of "marginal speed" on their contests by setting problems with interesting ideas. High error rates are not tolerated in competitive programming -- your solution is checked against test cases and wrong submissions get penalized. It actually trains you to consider adversarial input while programming.
16
u/tikhonjelvis Aug 10 '20
Competitive programming in the ICPC/Google Code Jam/etc style is closer to a computer-flavored math contest than anything else. It appeals to people who enjoy the same kind of problem solving as the IMO/Putnam, but emphasizing algorithms rather than math and proofs.
I suspect math people are more likely to enjoy that style of competition than your average programmer. Nothing wrong with that, it just means the audience for the contests is different than you might guess from the name :P.
If you don't enjoy that sort of rapid-fire problem solving but like competitive environments, there are other sorts of programming/CS competitions you could check out. CTFs are a fun way to learn about security; game jams get you to design and build a game on a fixed time-frame; hackathons stress your product design and implemention skills; code golf and obfuscated organization (IOCCC) give you a chance to abuse your language in creative ways that would never fly in real code.
And of course it's perfectly fine to enjoy programming as a creative outlet with no time pressure or competition involved. I'm not super-competitive myself, but I also understand why some people enjoy directly competing with others—it gives a focus and thrill you don't get otherwise, and doing well or winning is a real reward on its own.
3
u/tikhonjelvis Aug 10 '20
One thing to call out: both math and programming contests are great ways to learn and practice problem-solving skills. Doing well on that kind of problem will also make you better at debugging real-world problems. It's by no means the only way to improve those skills, but it gives you a great scaffold to learn specific strategies and quickly see your own progress.
-4
u/emasculine Aug 10 '20
i guess i'm suspicious of it in the same way that cooking competitions have nothing in particular to do with cooking. a good cook should be fast too, but shaving marginal amounts of time off has nothing to do with its actual purpose. those competitions have really warped a whole generation of people about what cooking is really about. i get really nervous about gamifying programming, i guess.
5
u/lemon-meringue Aug 11 '20
Then don't do it? Competitive programming isn't software engineering. If you don't like it there's nothing wrong with it, but don't hate on other peoples' hobbies, that's not cool.
-1
4
u/codemasonry Aug 10 '20
The difference between competitive programming and software development is pretty much the same as the difference between chopping wood and carpentry.
-3
u/emasculine Aug 10 '20
yeah, but that's what worries me -- pointed headed bosses who are like "OH MUST WHIP PROGRAMMERS TO BE LIKE THIS!"
4
u/tmwilliamlin168 Aug 11 '20
Different people have different tastes, that's all. But I think there are some common misconceptions about Competitive Programming:
Obviously, this is not just a typing contest, there is thinking as well. I don't know how you got the idea that competitive programming is focused entirely on speed. Maybe the name somehow suggested so or a large portion of YouTube videos on Competitive Programming happened to place emphasis on speed. However, only a subset of the contests have any element of speed involved; on the opposite end of the spectrum, there are contests which are 10 days long, where speed does not matter at all. Not to mention, 95% of my time has just been solving Competitive Programming problems without any time limits (you can increase that to 100% if you don't like time limits!!!).
The main focus of Competitive Programming is problem solving ability, rather than speed. Problem solving ability is required on some level for any problem, so someone could think of and write a program to a problem in 5 minutes whereas someone else could take hours to finish the same problem. This phenomenon is essential to competitive programming.
2.
There seems to be some disagreement regarding the use of coding interviews for hiring candidates. If companies didn't use coding interviews to hire candidates, then what would they use? Projects? College grades? Coding interviews aren't ideal but it's the best thing big companies have. If you want to discuss further, reply with a method which you think is better than coding interviews that big companies should use.
Coding interviews may seem unrelated to development; however, there are definitely cases where algorithms from coding interviews are used. They don't appear that often, but when they do, you need to know that the specific algorithm exists to know that it can be applied to some problem. Thus, having a good knowledge of algorithms and data structures is still important.
Furthermore, competitive programming is a much more extreme version of coding interviews. In coding interviews, you can easily get partial credit if your code has minor bugs, you have an interviewer to guide you, and the problems are much less obscure. Coding interviews are about as friendly as they can be, and you really don't need competitive programming if you don't like it. For some people, it is simply a fun way to prepare.
1
1
0
u/emasculine Aug 11 '20
re: coding in interviews: horseshit. that is absolutely not my experience. most coding interviews are designed to fluff the interviewer's privates and egos. they are absolutely not "friendly". i have never needed to resort to coding problems in interviews, and until the fairly recent trend toward them it would have never even occurred to me that it was an interviewing technique. it's trivial to ask people about their experience, ask them to work through a high level problem with you, etc, etc. coding tests are extremely lazy and show an interviewer who can't be bothered to read their resume or come up with real life problems to work through with candidates.
algorithms are used and needed, but there is also a thing called "google" that fills you in on the particulars as needed. anybody who tries to recreate Knuth on the fly should be fired, not hired. i was once rejected because i gave an insufficiently good algorithm for strstr, after telling the interviewer specifically that my implementation was shit and that i'd look it up in real life. i mean, who in their right mind would recreate strstr in the real world, let alone demand that you know a good algorithm off the top of your head? this is about par for the course, in my experience.
coding tests in interviews are everything that is wrong with tech interviewing, and if i hear "i just want to see how your think" one more time, i'll go non-linear. check that, i'll just walk out of the interview because i know that i don't want to work with you because you're lazy and unimaginative.
1
u/dreadpenguin Aug 11 '20
"Google" is actually allowed in many competitive programming sites and so are pre-written libraries. The problems are selected based on originality and problems that recycle well-known algorithms are avoided. So, you have to solve a problem in a creative way, not memorize some standard algorithm. Don't hate on competitive programming just because you have an axe to grind with programming interviews. They are different things.
1
u/emasculine Aug 11 '20
would that were true. if you don't think this carries over you are sadly mistaken. lots of companies give veto power to any interviewer. the people who like this kind of thing are very likely to use it as an interviewing technique too. but you are right in one sense: companies should not allow such interview tactics so it's really on the company not the individual interviewer. i once interviewed at a company in downtown SF and it was row after row of lumbersexuals. that too is a complete failure of interviewing culture. interviewing is a canonically hard problem, but the vast majority of companies leave it up to completely unqualified interviewers to muddle through with whatever their biases are. which includes whether you like to write code in a competitive way.
1
u/emasculine Aug 11 '20
would that were true. if you don't think this carries over you are sadly mistaken. lots of companies give veto power to any interviewer. the people who like this kind of thing are very likely to use it as an interviewing technique too. but you are right in one sense: companies should not allow such interview tactics so it's really on the company not the individual interviewer. i once interviewed at a company in downtown SF and it was row after row of lumbersexuals. that too is a complete failure of interviewing culture. interviewing is a canonically hard problem, but the vast majority of companies leave it up to completely unqualified interviewers to muddle through with whatever their biases are. which includes whether you like to write code in a competitive way.
1
u/tmwilliamlin168 Aug 11 '20 edited Aug 11 '20
From your comment, the only concern I see is regarding coding interviews, so I'm glad you can understand how some people find competitive programming enjoyable.
"coding tests are extremely lazy"
I'm sorry, but for large enough companies, you're not the only candidate. They would rather spend less effort interviewing people (and pick out mostly good candidates) than interviewing everyone meticulously and wasting a bunch of time. You can't blame them; they have limited resources and they will do whatever benefits them the most.
"who can't be bothered to read their resume"
What is there on a resume that is useful? A college degree these days barely means much (many people come out of coding boot camps).
Past experiences? Whatever you write on that one page (or even those few pages), it can't really show your actual ability. The interviewer knows what you did, but how do they compare it with what another candidate did at another company in an objective way? Not to mention, people might not even give a realistic and honest picture to the interviewer in the first place. Linus Torvalds - “Talk is cheap. Show me the code.”
"or come up with real life problems"
Could you provide some examples? I think coding interview problems are the closest to real life problems while 1. making the interview short enough and 2. having enough difficulty to separate candidates.
"i was once rejected because i gave an insufficiently good algorithm for strstr"
Depends on whether you know Knuth or not. I agree, it is silly to have to remember implementation details for specific algorithms (I think that they could be changed by allowing the use of Google) (fun fact: a lot of competitive programming contests allow Googling). What I meant in my previous comment was, if you did not know that Knuth existed, you would just think that the naive algorithm was the best one could do and just moved on. If you knew that Knuth existed but didn't know how to implement it, you would be just fine Googling the implementation.
What's wrong with "i just want to see how your think"? The question being "lazy and unimaginative" is not a good reason. If something works, and it works well (which you have yet to show otherwise for this specific question), then there's no need to reinvent the wheel.
1
u/emasculine Aug 11 '20
if you think interviewing is expensive for large companies, it's even worse for small companies. nobody wants to spend effort interviewing. what the biggest joke about interviewing is for all of the puffed up self congratulations about how their interviewing is the best, actual studies -- by Google iiirc -- show that interviewing does not correlate with job performance after hiring. like, not at all.
not everybody is fresh out of college. christ. a good way to find out whether somebody is faking it is to use their resume and have them teach you about what they were working on. if they know it well, it shows. if they were only tangentially involved they will have a hard time describing design decisions, etc. coding tests are not the only way to find fakes, and in many respects are the worst way because not everybody likes coding with somebody looking over their shoulder so you've just divided your candidates in half and thrown away the people who don't like that.
re: real life problems. yes, one of my techniques is to pick something topical to me and work with them like i'm... actually working with them. which assumedly me or my coworkers will be at some point. it has to be something bite sized enough that they can get through it. if you use the same problem on multiple candidates you can compare and contrast. i often would use it in a way that i could give it as a homework assignment to the candidates i liked to take it to the next level. i've never had any problem fitting this sort of thing into an hour long slot. and if you aren't given enough time, that's your problem, not the candidates.
in the example i gave, i told the shit interviewer that i knew better algorithms existed and that i'd look it up in real life. i was not given the opportunity to google it at all. the most galling part of this is that i was part of the due-diligence team vetting them for acquisition. yes, i'm bitter but they are hardly unique in my experience. they are pretty typical actually.
"how you think" about manholes in Manhattan. where to even start. the joke is that the mother of all shitty interviewing -- Google -- found out that their interviewing was terrible, and ineffective. the only thing they correlated with is the inflated egos of the interviewers. my feeling is that what companies should do is realize that interviewing is deeply flawed in almost every way, where "looks like me" reigns supreme. on the other hand, it's usually very evident within a month or two whether you picked a winner or a so-so... or worse. lower the barrier on interviews, raise the barrier when you take them on. but oh, you say that costs too much! sorry, you're already doing that because your interviewing doesn't predict anything anyway.
1
u/_zyrch_ Aug 11 '20
"The joke is that the mother of all shitty interviewing -- Google -- found out that their interviewing was terrible and ineffective"
This is based on a flawed study https://news.ycombinator.com/item?id=9324513
1
u/emasculine Aug 11 '20
you mean their shitty interviewing techniques were actually effective? they swore up and down that they weren't like that anymore when their recruiters kept asking why i kept telling them to fuck off.
1
u/emasculine Aug 11 '20
oh never mind, we're talking about two different things. as far as i know the study they did publish pretty much repudiated everything about the way they used to hire/interview as predictive of success/failure once hired. afaik, that has not been retracted.
1
u/tmwilliamlin168 Aug 12 '20
There are two flaws with such a study: 1. It doesn't have data for those who were rejected, so it doesn't disprove that coding interviews were successful in filtering bad candidates (not saying this is the only way). 2. Even with a perfect interviewing method that can accurately determine a candidate's potential, candidates end up varying a lot in terms of dedication, so you wouldn't have a good correlation either.
a good way to find out whether somebody is faking it is to use their resume and have them teach you about what they were working on
Sure, but I can see this as a method that can, at most, filter out bad candidates. There is no meaningful objective comparison between different past experiences, and if you try to extract too much from it, it can become a story-telling game and have aspects like behavioral interviews where "judgements made within 10 seconds of an interview consistently predicted the overall outcome" ( https://dev.to/amandasopkin/are-technical-interviews-a-good-measure-of-software-engineering-ability-1cp9 ).
not everybody likes coding with somebody looking over their shoulder
Never though of this, but if this is actually a concern then it would be nice to be able to request the interviewer to leave temporarily or something.
real life problems
So I'm assuming you're giving coding interviews but instead of having algorithmic problems, you give "real life problems"? There's no problem with that, as long as 1. you have some way to differentiate between various candidates (not just easy problems) and 2. it's not a "homework assignment", otherwise plagiarism or some form of outside help could occur.
"how you think" about manholes in Manhattan.
Brain teasers are terrible and I wasn't referring to them. That doesn't invalidate interviewers trying to know your thinking process for actual programming problems.
on the other hand, it's usually very evident within a month or two whether you picked a winner or a so-so... or worse. lower the barrier on interviews, raise the barrier when you take them on.
This seems pretty good theoretically because there is no better way to know if someone is good at a job than to have them do the job.
A lot of onboarding would be required for the increased amount of candidates (which takes a lot of effort). In general, a lot more effort would be spent on people entering and leaving the company. There's also the problem of an increased workspace requirement. Those potential candidates could work remotely but some companies might have various issues with that. Candidates also might have mixed feelings about spending over a month to interview for a position and the risk of not receiving an actual offer.
It's too hard for us to actually determine if companies can implement this strategy effectively due to the complexity of the situation. We'll just have to wait and see how well the companies which try these alternative strategies perform (from what I've seen, the weird manhole brain teasers have disappeared in recent years).
1
u/emasculine Aug 12 '20
not everybody likes coding with somebody looking over their shoulder Never though of this, but if this is actually a concern then it would be nice to be able to request the interviewer to leave temporarily or something.
that you've never even thought about this is complete and utter failure. and no, just leaving the room is not enough. i, for example, do not use my laptop to write code. i can barely use the mouse trackpad because i use a real keyboard, large monitor and mouse. some people just don't like being put on the spot like that. does that make them bad employees? no. unless you have constant crises that require fire drills, nobody writes code like that. if you do, i don't want to work for you because you're incompetent.
So I'm assuming you're giving coding interviews
no. i go over a problem that needs to be solved and let them explain to how they would solve it with the normal back and forth of requirements, clarifications, etc. as in, just like real life. one of the absolute worst aspects of interviewing, and especially programming tests is that the interviewer utterly underspecifies the problem and is completely clueless about it, and cops attitude because you can't read his mind. working through a problem with back and forth is much more realistic because that's what you have to do when you're trying to figure out what the parameters of the problem space is. i want to see somebody who can both do that, and take initiative when it is underspecified which is the norm. what i don't want is an interviewer who gets snotty when you can't read their mind. the back and forth is how you determine how they think, and how they go about solving problems. and good luck on plagiarizing -- if you can't come up with some set of problems that are obscure enough, i'm not really sure what to say. usually i just winged it with things that were happening at the time.
the onboarding and all of that happens anyway. since interviewing is such a blunt and inaccurate tool, there is bound to be duds that need to be reaped. the "we only hire the best" attitude begats false pride that they don't hire duds so bad hires linger on when they should just be fired. what i'm arguing for is not having a months long interviewing process because interviewing doesn't work well. instead, if somebody is plausible cut to the chase and just hire them. if it works out, great. if it doesn't cut your losses. if it's low footprint for both sides, it makes the pain of it not working out less for both. candidates are interviewing companies too, and they can make mistakes as well, so making things be more "no-fault" would be a good thing.
btw, the post you cite completely makes my case that "traditional" tech interviews are complete shit and do not work. they manifestly suffer from the 10 second problem as it's pretty obvious when you go to interview and you see row crops of 20-something lumbersexual engineers. all of the interviewing is so much window dressing for "looks-like-me-p" which makes all of the drama with tech interviewing even more pointless.
1
u/tmwilliamlin168 Aug 14 '20
the post you cite completely makes my case that "traditional" tech interviews are complete shit and do not work. they manifestly suffer from the 10 second problem
Umm, quite the opposite. The post says that technical interviews were made precisely to stop the effect of the "10-second judgement":
By doing whiteboarding or coding interviews, we seek to eliminate that bias by judging performance against a (more) objective problem.
one of the absolute worst aspects of interviewing, and especially programming tests is that the interviewer utterly underspecifies the problem and is completely clueless about it, and cops attitude because you can't read his mind.
This is a problem with the interviewer's attitude, not the interviewing technique itself. An interviewer could definitely use a coding interview while being nice and friendly.
Drunk drivers caused thousands of deaths last year. Do you blame the car companies or the drivers (the users of the cars)?
Removing coding interviews might solve the problem of some "toxic" interviewing experiences, just as removing cars solves the problem of people dying from drunk driving.
On the other hand, I'm pretty sure that if someone who used your interviewing technique and wanted to be mean or unhelpful to a candidate, they could give just as bad of an experience as the worse coding interviews.
good luck on plagiarizing
The candidate can be the only person given the problem and it doesn't even matter. They can ask for help from an experienced friend or pay someone (it's pretty worth it for a job), and you might've just gotten yourself with a bad hire. That's why I strongly believe that there must be a full onsite round.
since interviewing is such a blunt and inaccurate tool, there is bound to be duds that need to be reaped
As I mentioned in the parent comment " There are two flaws with such a study...", interview performance may not have a correlation for those who received a job offer, but that doesn't mean that it doesn't accurately filter out those who are unqualified.
i go over a problem that needs to be solved
My premise of coding interviews being useful consists of these attributes:
Fast to conduct, in order to not waste the time of software engineers - a few rounds of around an hour or so
Fast to evaluate - small piece of code for coding interviews vs entire project that the interviewer doesn't know about
Objective to evaluate - was a problem solved or not (there are finer details but this is the gist) for coding interviews vs quality of a project?
For the benefit of a big company, it's ok to reject false negatives, but false positives should almost always be rejected, and it does so by testing the following skills really well:
Coding skills
Communication skills - showing if you are able to articulate an idea that you have to a coworker, explaining your code
TBH, I don't know what type of problem it is that you're giving. An interview about a real-life (as opposed to algorithmic) problem with no coding? But to my knowledge, only an interview where a programming problem is given can satisfy the attributes above.
Note that coding interviews don't have to be whiteboard-based and exclude external references to achieve these attributes (and I would like to see these changes). Big companies value many of these attributes. Smaller startups should probably try to modify their strategy, though.
Sadly, big companies don't care about the small percentage who don't like "being on the spot" while coding. There's no reason to make them more accessible if they already have enough candidates.
Chances are those people who don't like "being on the spot" while coding will also have trouble "being on the spot" while being asked questions during the interview. Why just remove the coding interview and not the entire interview?
1
u/emasculine Aug 14 '20
your entire article refutes everything you're advocating. that you can't even see that is why this is so pernicious. and your analogy is as apt as it is unfortunate for your position: the vast majority of interviewers are given a drivers license without a test or time on the road, and are free to run over whoever they want with no repercussions.
i'm sorry that you have such a low opinion of candidates that the first thing you think is that they'll cheat. as i said, i only give them homework if they impressed me enough in the first place. and as i've said repeatedly, since interviews generally are not good predictors, the cycle should be short and just weed out people who were good at interviews but suck otherwise on the job. that needs to happen regardless of how "rigorous" the interviews are.
and you are not objective. period. manifestly. everybody thinks they are. they are not. i've seen way too many row crops of lumbersexual engineers that make it painfully obvious that they are hiring "looks like me" first and foremost. they all think they are objective, i'm sure, but they all seem to come up with a Yahtzee of 20 something white bros just like magic.
i've never given programming tests in interviews whatsoever for my entire long career. the homework thing is sort of an experiment. i've hired plenty of people who've gone on to have very distinguished careers, many of whom were hired right out of college. one of my ex-coworkers owns all of java at oracle. was he given a programming test in his interview? no. this programming test bullshit is a new thing, and a toxic thing. worse is that interviewers seem to believe that the capability to interview is an inborn ability that requires no education at all. that you couldn't even imagine that candidates might not like people starting at them over their shoulders says that you suffer from that hubris greatly. i on the other hand have always approached this with a great deal of humility knowing that interviews are hard, people are nervous, and doing what i can to put them at ease. i was once interviewing at CMU and one of the candidates in suit and tie was so floored by this little laid back California company interviewing him that didn't care about formality that he ripped off his tie in the interview. making candidates feel comfortable is the duty of the interviewer. there are far too many insecure interviewers who think it's fun to make them uncomfortable. they should not be allowed to interview candidates.
and you have no clue what percentage of people don't like that. even your article that you clearly didn't read for content says that lots of rock stars don't like it and do poorly, for which you dutifully weed them out. and, again, as your article points out, there are not enough candidates so you are not going to get that mythical 5%'er. you are going to select somebody who interviews well to the silly and predictable tests of shitty and lazy interviewers. i can tell you from experience as being an actual rock star, we don't put up with that kind of abuse. yes, abuse. as they say, A people hire A people, B people hire C people. lazy programming tests are the way to hire lots of C people.
1
u/tmwilliamlin168 Aug 14 '20
the vast majority of interviewers are given a drivers license without a test or time on the road, and are free to run over whoever they want with no repercussions.
It's still not the car company's fault, it would be the government's fault for not properly moderating.
As a concept, coding interviews are great. The way they are implemented could make them worse, but that would just be the individual company's fault.
If a company implements coding interviews badly, I don't imagine that they would implement other types of interviews any better.
i'm sorry that you have such a low opinion of candidates that the first thing you think is that they'll cheat.
The article which you claimed to "refute everything [I'm] advocating" mentions that "[m]any companies also fear that [giving projects for candidates to work on] are often plagiarized by aspiring jobseekers".
I would like to think that people are nice and cooperative, but there's always that person who will break the rules and take advantage of everyone else. That's how the world works.
and you are not objective. period. manifestly. everybody thinks they are. they are not. i've seen way too many row crops of lumbersexual engineers that make it painfully obvious that they are hiring "looks like me" first and foremost. they all think they are objective, i'm sure, but they all seem to come up with a Yahtzee of 20 something white bros just like magic.
I'll trust that you did see what you say. People are not objective, but technical problems are still more objective. If you say that everything including looking at a person for 10 seconds has the same amount of objectiveness, then companies hire/reject a candidate after 10 seconds.
You somehow seem to think that I'm in disagreement with the article. Here's a list of ideas that it mentions:
Good candidates get rejected (which I have agreed with and explained that it's not a problem for big companies)
Testing algorithms is unnecessary (and I have not included that in my 4 attributes of an interview)
False positives cost a lot (thus my 4th attribute)
Technical interview performance is not consistent (but it doesn't matter, it's ok for a big company to reject both bad candidates having a good day and good candidates having a bad day)
Teams should "A. More collaborative, B. Ranked higher on the ability to read emotional intelligence, and C. Had more diversity" (you can try to measure those if you want (even though I'm not sure it is even possible to do so accurately) but technical interviews are staying as technical skill is still important )
What alternatives companies are trying, and as I said in my second last comment, those companies are the only ones who can tell if they truly work
Interviewer ego - nothing about coding interviews says that the interviewer has to be mean
Recruiters say they want the "top 5%" - it's true that their intent isn't achieved at all, but it's not a big deal; reaching for the top 5% with coding interviews cause the side effect of having a low false positive rate
"Many recruiters filter out good candidates early on dubious criteria. " - this is a problem with the interviewers and their companies, this stage has nothing to do with coding interviews
The article points out problems with coding interviews. However, the article never came to the decisive conclusion of a better alternative (only possible alternatives that some companies are looking into). The article only states that it has problems, not that it's not the best we have so far.
Let me know if the article has anything else that you would like to discuss.
i on the other hand have always approached this with a great deal of humility knowing that interviews are hard, people are nervous, and doing what i can to put them at ease.
Theoretically, if one day your supervisor told you to use coding interviews instead, would you suddenly become a mean interviewer and have fun watching candidates suffer at the given problem? It's great that you are aware of this problem in other interviewers, but you're nice because you're more mature and understanding, not because you don't use coding interviews.
i've hired plenty of people who've gone on to have very distinguished careers
A people hire A people, B people hire C people. lazy programming tests are the way to hire lots of C people.
Oh gosh, FAANG companies are hiring all wrong! Then I'll be waiting for your company (and others) to beat them with your "A level people"!
Perhaps coding interviews can't distinguish between A and C, but big companies would prefer lots of C people, so lazy programming tests are still better for them (for the 4 points I mentioned above).
They don't care about having a bunch of Cs as long as they don't get Fs. And they don't have time to get a bunch of As, assuming that it is even possible to select As by interviewing.
1
u/emasculine Aug 14 '20
"Companies fear that [at home tests] are often plagiarized by aspiring jobseekers". It's a fear, it is not saying that it actually happens. just like the "fear" of telecommuting slackers. at least the latter we'll soon be able to see if that fear was justified; thus far the fearmongers seem to be just that.
And no, programming tests, etc are not objective because the person giving them determines whether you passed or failed, and that leads to very subjective results. I once "failed" a whiteboard programming test for strstr after telling the interviewer what i was writing was a crap algorithm and that in real life i'd look it up with Knuth. he said nothing as i wrote out the crappy algorithm as requested which would have worked, and then gave me the thumbs down after the interview. this is entirely common behavior because interviewers think they are being objective when they aren't.
and yes, they are wrong. google even admitted that their hiring practices were abusive, useless, and counterproductive. and no they do not correlate with a low false positive rate: that's irony. that was what was most insightful about the google revelation: they tried to be "objective" with tests, etc, and they still failed to predict whether candidates would translate to good employees.
as i've repeatedly said, this trend toward programming tests is relatively new. the internet was not built with a bunch of gateway tests and all of the other shitty things that have taken hold in the mean time. somehow we managed to build it despite our "naivety". tests, etc most certainly did not led to more diversity which an actual meritocracy would predict, but instead they are just as prone to "looks like me" as any other set of techniques.
re: forced to use test: i would refuse my superior. but i think that this isn't really coming from managers, per se. i think it's driven by people who think that they know how to interview despite having given it exactly no thought before. but of course dev managers general come from devs, so who knows.
and i don't see why you keep bringing up big companies. yes, they can get by with the law of large numbers. but their shitty attitude and behavior is not lost on a lot of 5%'rs who refuse to even engage them because they run a sausage factory. medium and smaller companies cannot afford to be so cavalier, so it's even worse when they take up the shitty and ineffective techniques of the likes of Google thinking that they must know, but never got the Google memo that they figured out that it doesn't actually work. there is so much in tech HR that is taken as delivered wisdom that turns out to be complete crap and wrong. look at M$'s stack ranking nonsense. it too was a dismal failure which was widely replicated by all of the HR lemmings.
god, i'm so glad that i don't have to put up with this shit anymore. i pity the smart younger people who have to put up with this abuse, and make no mistake: it is abuse.
→ More replies (0)
3
u/fabo3000 Aug 11 '20
I'd like to point out that competitive programming is not done just for fun, it also has educational purposes. This was the way I had the opportunity to learn programming in high school, if it weren't for competitive programming, I guess I'd have chosen another career as I had no previous interest in programming at all untill I started doing programming contests for Olympiads in Informatics. Competitive programming contests is certainly one of the many ways to empower the youth to look for a programming career when they get into college.
0
u/emasculine Aug 11 '20
sorry, i don't see how this translates to real life whatsoever.
5
u/fabo3000 Aug 11 '20
it doesn't, competitive programming is about solving puzzles using what a computer can do, it's normally related to algorithms and cs stuff, so I guess it helps more if you pursue a career in academia, but it will only be the starting point. It has nothing to do with software engineeging either, and it is not by any means a substitute to what you can learn by doing personal projects. In my experience, competitive programming improved my logical reasoning and that helped me in other aspects of my life, but the most important thing is that it literally changed my life, I have no way to compare what would have been if I had learnt to program in other ways, but it was for sure an exciting way to do it. For me at least, it was not about becoming the fastest programmer in a contest, it was about what new things I could discover and learn by doing so.
12
6
2
u/khedoros Aug 10 '20
I did a bit in college. It was kind of fun, especially working in teams. And it was a novel experience at the time, actually having a short deadline, and needing to find a good path, commit to it fully, and execute. It was fun partly because there weren't really any consequences to failure. You get to think about some new problems and work with a team to solve them. Fun.
Now I wouldn't touch it with a 10-foot pole; too much of a PTSD-like experience, considering the abuse of similar problems for employment tests.
0
u/emasculine Aug 10 '20
THIS! i hadn't thought of that way but that's exactly why i'd give it a big nope. of course i think that most tech interviews are glorified frat hazing rituals.
10
u/_jetrun Aug 10 '20
Then don't do it.
Why so judgmental?
2
u/phao Aug 11 '20
Then don't do it.
This should be the top comment (coming from someone who also dislikes programming competitions).
4
u/algmyr Aug 11 '20
It feels like you're assuming the only thing you learn when doing competitive programming is to program quickly. That's so far from the truth. You learn general problem solving, you learn data structures, you learn algorithms. You learn how to apply all the above, breaking down problems and solving them.
At least for me, I do it for fun and to learn stuff. I think a lot of people I've interacted with have the same basic outlook (combined with some general competitive nature, for sure).
Granted, just doing competitive programming and picking up bad habits is...bad. But combined with some run-of-the-mill software development you can learn best practices as well. The skill sets can be quite orthogonal, you can know what the proper thing to do is, but still make shortcuts because it's easier/faster when called for (this is what I urge people in competitive programming to do).
1
u/-Flyer Aug 10 '20
Yeah I know what you mean. But there's comp. versions of almost everything. For example, im a student pilot as well as CS student and flying is relaxing and all that stuff for me too (usually), yet there are people that race planes, y'know? Plus I've had moments when while I'm attending a CS summer camp I try to spit out code as fast as I can and there's something fun about saying "Ha, I am speed!"
But like I said I'm a student pilot on the side and that's just the cocky side of me. More competitive people get a bigger rush from that type of thing.
2
u/emasculine Aug 10 '20
i'm not knocking competition per se by any means. i used to race sailboats which can just as easily be used for relaxing booze cruises too. it just strikes me that programming is a really bad thing to gamify. imho, of course.
1
u/Kalsifur Aug 11 '20
I feel like you do because I'm not much for stress and also because I usually collapse when under time pressure lol, but I do see why people would like a challenge like this. No different than me comparing myself on Strava segments and shit.
1
u/emasculine Aug 11 '20
funny, i wrote a ski tracking app that literally made competing against your friends a feature (basically patterned after D&D where the mountain is the "monster" to be defeated). it really caused behavioral changes with friends. so i'm not against this in the abstract. it's just seems that programming a is really weird thing to gamify
1
u/programmerChilli Aug 11 '20
The core thing that's appealing is having a tight feedback loop. When you write code in real life, you have no idea whether 1. it really works or has bugs or 2. could you have written it more efficiently. Doing competitive programming provides easy feedback for both of these.
In addition, much of real life programming is boring - not so for competitive programming.
1
u/emasculine Aug 11 '20
sorry, huh? you don't know if it has bugs or whether it really works? i don't know where you work, but not being able to determine those things on the fly is nothing i've ever experienced.
1
u/programmerChilli Aug 11 '20
What? Your code just runs without any bugs? For any reasonably large program, it's very difficult/impossible to make sure you've caught all the bugs. The best you can do is write test cases, which are 1. A pain, and 2. Probably not exhaustive.
Have you actually worked on anything moderately large?
1
u/emasculine Aug 11 '20
who said anything about writing bug free code? if you're saying you get to leverage their testing rig and/or performance testing, that's not very realistic unless you are one of those write-tests-first types, which is just top-down programming in disguise. i've written an embedded multi-threaded operating system with a networking stack and dozens of device drivers and graphic kernels with an embedded debugger. is that moderately large enough?
1
u/programmerChilli Aug 11 '20
you don't know if it has bugs or whether it really works?
If your code has bugs then it's not correct. It doesn't even sound like we disagree here.
My point is that in competitive programming, all the problems you solve have pre-existing testing setups with exhaustive tests written out to make sure your submitted code is correct. Thus, if you make a bug or a mistake, you can quickly figure that out.
This is not true of real world programming, as you are almost never provided with an exhaustive testing suite upfront (as you mentioned).
1
u/emasculine Aug 11 '20
sure, and of course there is no guarantee that their testing rig is correct either. to my mind, that makes its utility even less because debugging and test are critical skills. coming up with approaches, and tinkering with them to find the best one is the fun part of writing code, and i just don't get why you'd want to compete with other people, especially if time is of the essence. a good design doesn't need to be compared to another in real life because you rarely get that opportunity. the closest i've come to that was writing a network protocol implementation where i could see the other person's code i was interop'ing with after the fact since they open sourced it. his was adequate and got the job done, and he probably would have had the same opinion had he seen mine. but that of course is because most code is pretty mundane. a network protocol driver isn't the most exciting thing, but is useful for exposing bugs in the protocol itself. but now that i think about it, there was something of a competition between murray and me... i edged him out by about a day on asking him if he was ready :)
1
u/programmerChilli Aug 11 '20
You still need to debug and come up with approaches in competitive programming. You can just do it in a much tighter loop than normal programming. Sure, testing is somewhat important, but it is pretty often considered to be a massive pain.
I also think you have a misunderstanding about competitive programming. The fundamental aspect of competitive programming is solving the problems - you don't necessarily need to do it in a contest setting.
1
u/emasculine Aug 11 '20
what exactly is alternative to testing? being able to test your own code is critical, to get to the point where somebody else can validate its correctness and not find a buggy piece of junk. i guess i don't see debugging and testing as separate tasks in the development phase.
i did ask what's up with competitive programming, after all since i don't know much about it. if it's mislabeled from the obvious inference (ie compete == compete with somebody) that's news, but weird.
1
Aug 11 '20
In industry you aren't going to be given unlimited resources to write code; competitive programming is simply incentivizing you to do it quicker.
The constraints imposed by competitive programming forces you to solve real-world situations the best way possible and utilize known algorithms to their full potential, instead of the common way of approaching tasks with the simplest (and slowest) way. In most of competitive programming, it challenges your ability to think of and try multiple efficient solutions, normally in mere lines of code. It does not measure how much code you can write; it measures how many problems you can solve.
1
u/emasculine Aug 11 '20
quicker and quicker and quicker and dev managers go "oh look! faster sausage factory! MUST HAVE!". the net effect: faster sausage with more bugs and shittier designs. and since i'm just drawing a salary at work, i don't like those incentives. if you don't think dev managers aren't watching this sort of thing, you are painfully naive. where do most dev managers come from? former programmers.
1
u/caoash Aug 12 '20
Judging from your post, it sounds like you saw a video or two about competitive programming and developed the impression that it's a bunch of programmers not enjoying programming and trying to solve as many problems as fast as possible so they can land their dream job at some company.
Maybe some people who grind out problems on sites like Leetcode to help solve job interview questions do that, but I don't think that's competitive programming. I think that's interview prep, and if you're not enjoying it, I totally agree it's not something you should associate yourself with.
However, the reality is, most people who do competitive programming aren't like that. They solve problems because they enjoy problem-solving, and it really is a zen-like experience. There are so many elegant and diverse problems in the competitive programming world that will absolutely blow your mind, and it's so much fun to think about them.
Competitive programming is not taking contests under pressure (though some people enjoy that), it's problem-solving. It's looking at amazing algorithms and data structures and reading solutions to problems you thought were impossible. It's about improving your problem-solving ability and being in a community of like-minded individuals who all share this passion for solving problems with code. Job interviews and rated contests and all of those misconceptions that are spread are only a very small part of it all.
1
u/emasculine Aug 12 '20
to each their own, i guess. i have to say that from the hiring standpoint i'd much rather see people take on outside projects which is completely by their own initiative and amusement, but i seem to be an outlier these days. projects require you do the grunt work too, which almost always the bulk of any software project, and time you spend working.
6
u/turtle_dragonfly Aug 10 '20
I haven't done competitive programming, but I think there is a certain ... "fluency" that can be gained from doing programming a lot, and forcing yourself to keep moving rather than thinking about the best solution to every problem. I sometimes get stuck going the opposite direction — chewing over the best way to do something when it really doesn't matter.
I see code from people with competitive programming backgrounds (and demoscene too, I feel there's some overlap), and it's usually an interesting combination of:
hard to read (lots of variables named
p,xp,ne, etc. with mnemonics only the author knows, few comments, etc)having no-nonsense efficiency, which I appreciate. Sometimes making use of undefined behavior which is nevertheless reliable on real-world systems.
elegant (once you understand it)
containing non-obvious problem-specific assumptions, making it hard to generalize
I guess I'm just saying I feel like there are pros and cons. I think there's something gained other than just speed-of-implementation.
Probably some people, with the right temperament, find that state to be zen-like, too. Like going through bullet hell in a shooter (:
2
u/dreadpenguin Aug 11 '20 edited Aug 11 '20
> having a gun put to my head while chugging out code.
Perhaps you can get better answers for "What is up with competitive programming?" if you simply ask people why they do it, rather than starting with an inaccurate caricature. People do competitive for different reasons, and for a lot of us that do it for fun, it feels nothing like having a gun on my head. We look forward to programming contests because we want to see new ideas, get better at breaking down problems, and learn new things. Other people have commented on general skills that you develop as competitive programmers. I'd like to list some specific skills that I've picked up:
* Using address sanitizer, compiler debug flags, and debugging.
* How to deal with integer precision and floating point arithmetic.
* Learn about gotchas and bug-prone areas in a programming language in order to avoid them during a contest.
* Using language features in creative ways, e.g. using template non-type creatively, learning how to do recursion with lambdas.
* Calculating limit for memory and estimating running time. Estimating stack size needed.
* Practice generic programming while preparing for a contest that allows pre-written code.
Yes, these skills can be picked up by other means like personal projects. But why limit the tools that people can use to learn things? I personally find competitive programming a pretty effective way to learn these things because you get free adversarial input and instant feedback.
1
u/jleongdev Aug 10 '20
What languages are most competitions coded in?
2
u/WorthyDebt Aug 10 '20
I do CodeForce and apparently C++ is the language most people use. The reason is simple, it has the fastest compiling time.
1
1
1
1
u/badaliy Nov 20 '22
Competitive programming is great to improve your coding skills but there are some drawbacks...
Here is the best illustration - https://www.youtube.com/watch?v=g5tV9EMNLXA&ab_channel=CSYusuf
)))
Just a joke!
0
Aug 11 '20
[deleted]
0
u/emasculine Aug 11 '20 edited Aug 11 '20
i have every right to be skeptical with this with managers who think this is some new norm and pick it up as the latest trend in how to run dev teams. the herd mentality of management runs very deep.
0
u/tilievl Aug 11 '20
Well I think Google, Amazon, FB etc can afford being above the herd mentality yet they actively use this way.
I think the thing they realized is, programming experience is seriously overrated. The practice of firing an "old" worker, splitting his salary in two and hiring two talented freshmen is considered good. There is no point for them in checking how good you are in current frameworks, systems, patterns etc, because after a year or two things will change and you will work with something you've met for the first time. That's why the ability to learn and adapt is very precious. And in my humble opinion competitive programmers are aces in these things. A good IOI/ICPC participant has a memory (and, what's more, a memory he actively uses) of 1000+ problems, which is, I'd say 10% algorithms, data structures and other maths and 90% approaches, micropatterns and observations he uses for solving next problems either by recalling the similar problem explicitly or doing it intuitively. Of course, competitive programming problems are shown to be consisting of repetitive patterns but the number, the variety and the difficulty of these patterns is impressive enough to be a key point in these interviews. Even though solving these problems won't necessarily make you better at programming, it's pretty visible that guys who are good at competitions are generally smart and talented people who did not waste their time in school.
Skipping other topics as deep C++ knowledge, theoretical basis, diligence, pressure immunity etc.
1
u/emasculine Aug 11 '20
this post typifies every thing that is wrong with tech interviews. adapting is important, but to say that competing puts you at an advantage is absurd. there are plenty of ways to be adaptive that don't involve contests. you actually might see how adaptive somebody is by looking at their resume, but apparently that's useless. and the problem with dividing a person in two and getting two inexperienced junior programmers is that you get churn with every new and shiny thing with no ability to see beyond the hype of the day. most new things are just a rebranded fad of an old thing, especially with frameworks, patterns, etc. yet every new generation of programmer is utterly convinced that experienced people are stupid and in the way.
most programming does not require intricate knowledge of zillions of algorithms. the bulk of programming is totally mundane and requires knowledge of lots of stuff beyond programming itself. you have to slog through the boring stuff so you can support the interesting stuff. somebody who is only willing/expects to do the interesting stuff is not a good employee. i don't care how much of rock star they think they are, their prima donna attitude is toxic. and i say this as somebody who has written a metric shit ton of difficult and innovative code -- try writing a preemptive multithreaded embedded OS by yourself before the term thread was even coined. yet that experience is seriously overrated. god i am so glad i don't have to deal with this toxic bullshit anymore if don't i want to.
1
u/tilievl Aug 11 '20
I said good at competitive programming => most likely good and adaptive in general, only this side of implication. And I believe IT companies are aware of false negatives, they either do something about it or don't consider worth it.
Besides, if one's so adaptive why won't one consider showing adaptivity and adapting to this design of interviews? Moreover, noone's making people participate in contests and the problems are not particularly hard.
most new things are just a rebranded fad of an old thing
Even if the most, not all of them, right? Someone has to do this part as well.
requires knowledge of lots of stuff beyond programming itself
Developers publish their docs and API instructions in the internet. You can search stuff online.
Toxic
Noone's toxic. If you think talking good about yourself is toxic, programming problems may not be the biggest issue on interviews.
1
u/emasculine Aug 11 '20
i doubt it's terribly transferable. algorithms and data structures make up a vanishingly small part of programming in my experience. companies to a one think that they are the smartest kids on the block wrt interviewing. the google study -- the one who made a big huge deal about being the smartest -- showed that they suck. and i think you badly misunderstand adaptivity. adaptivity means being able to pick up new tech over the years. it doesn't mean being able to tell you how many manholes there are in manhattan and all of the rest of that dross.
far too many tech frameworks are driven by somebody else's business model. being able to recognize that is not junior engineers' forte.
and i mean that most programming has nothing to do with data structures and algorithms beyond just the normal stuff that you find in libraries and programming languages and don't need to think very hard about.
and yes, toxic. i've been in way too many interviews where it was obvious that the interviewer was there to make you understand exactly how much larger his programming penis was. i wrote this about this new noxious environment:
https://rip-van-webble.blogspot.com/2013/07/interviews-as-hazing-rituals.html
1
u/tilievl Aug 11 '20
how many manholes there are in manhattan how many golf balls would fit in the airplane
Sorry but it has nothing to do with competitive programming. And the Google Study article from year 2013 you linked didn't say a thing about it as well.
algorithms and data structures
And it's not the main point of competitive programming for interviewers either.
Although there is a question mark in the post, it looks more like you're not willing to listen to the opposing opinion rather than convince people in something by linking sources. I don't need to be convinced in anything though, thanks.
1
u/emasculine Aug 11 '20
you were the one who dragged interviewing into this, although you weren't the only one. i'm only saying that since *you* brought it up, using algorithms as some sort of benchmark as to whether to employ somebody, where competing would give you a big leg up in interviews, is exactly what the google study said was completely ineffective in predicting whether somebody would be a good employee. i don't care what you do with your free time, but cheering on a discredited interviewing technique is not a good look.
1
Mar 29 '24
Why did you post about competitive programming if you wanted to bitch about technical interviews?
39
u/ImagineACreativeUser Aug 10 '20 edited Aug 10 '20
Personally, I don't think of it as a way to become a better programmer of get better jobs. I consider it as a hobby, although it does have some very good effects.
It's also not only about writing code quickly, sure speed helps a lot during contests, but solving hard problems is the main goal. Learning interesting algorithms and coming up with observations to simplify tough problems is the main reason I enjoy competitive programming. I also enjoy the rush of contests and aiming for better ranks each time.
Pros and cons in my opinion:
Pros:
Improves general problem solving skills which could be applied in many aspects of life.
Improves self-learning ability
Being good at implementing stuff in efficient ways.
Cons:
As mentioned is other comments, to solve problems faster, competitive programmers tend to use meaningless variable names and maybe do lots of shortcuts that make the code harder to read. I think this can be solved by doing other programming activities and not just competitive programming all the time.
I recommend trying out competitive programming, even if you don't like the rush of contests, you can just try to solve interesting problems from time to time as peacefully as you like :)