Ask HN: Do all CS graduates know how to program a for loop?
Have you ever hired with a simple screening process like this? Are there indeed a lot of CS graduates who could not "Write a program using a for loop to print the integers from 1 to 100"?
Have you ever hired with a simple screening process like this? Are there indeed a lot of CS graduates who could not "Write a program using a for loop to print the integers from 1 to 100"?
where some counselors for the program, and even some STUDENTS who were of elementary school age were able to provide solutions he deemed correct. (He accepted as correct one student's Python program, noting that he doesn't know the details of Python, and I think the student's Python program would actually only print from 1 to 99, because of how Python indexes. But that would still be considered very well done in the hiring screen.) One of the counselors reproduced his model C code on the spot, taking less than three minutes to write it down with pencil and paper.
AFTER EDIT: Responding to the second-submitted top-level comment,
http://news.ycombinator.com/item?id=4603819
How could it be that one place is asking for that and turning him down with a working solution while another place is so desperate they just require a for-loop?
I think what is going on in the story I heard being contrary to the stories you hear is that there are several echelons of jobs, and several echelons of computer science departments. The young hacker I know best had a work-sample test for an in-person interview in which the problem specification was, "Write code to implement a four-function calculator." He didn't have any problem with that, and thought the problem was easy. He also has NOT completed a degree in computer science, although he was pursuing one before he entered full-time employment at a different startup with a different hiring process. He is not afraid of work-sample tests, not at all. But he would (currently) be screened out of contention by requirements to possess a degree, which he does not yet have.
Some other workplaces, perhaps places to get a steady job (and, crucially, visa status to remain in the United States), may get a lot of applicants who have actual earned CS degrees, but who have never acquired much independent coding ability. This is an empirical question, and the question I am trying to get a reality check on here. If you asked the EASY question asked by the hiring supervisor who told me his story to every CS grad who approaches you for a job, from any college and of any current visa status, are you sure that all without exception could pass that rather relaxed coding test?
I think a lot of hiring managers presume CS degree = proficient coder and that's certainly not the case.
Unless languages, projects & specific mention of coding is included on a resume then coding ability could easily be zero.
This is anecdotal, obviously, but the talk of fizzbuzz and for-loop is all myth to myself and friends. I'm very skeptical of all of the for-loop or fizzbuzz programming exercises. Additionally the recent CS graduate I knew had to do things like implement http://en.wikipedia.org/wiki/Levenshtein_distance and such which makes me doubt the validity of these more. How could it be that one place is asking for that and turning him down with a working solution while another place is so desperate they just require a for-loop? Something doesn't feel correct.