4 ms·
Mostly agree with minor exception of ask them to debug something not code something. More time is spent fixing changing (for the sake of change of course) and
by VLM 13y ago
Mostly agree with minor exception of ask them to debug something not code something. More time is spent fixing changing (for the sake of change of course) and updating and upgrading than plain blank sheet starting.
Also, debugging code is harder. Any idiot can write something that occasionally works with some limited simple input and doesn't need to scale or do much error handling or recovery or cooperate with the OPS guys and their designs in any way. If you hire a guy who can code but not debug what he wrote, you're in big trouble sooner or later.
Give em a fizzbuzz with pathological parenthesis which mess it up, or half a fizzbuzz and ask them to finish it. Or give them a mortgage amortization calculator or similar with an obvious fencepost/off-by-one error (this is almost more of a spreadsheet problem than a real programming problem, but...). This is almost too stereotypical of a classroom task, but give them an OO design of a simulation of an elevator (literal, not an analogy) and ask him to add another floor to the elevator design, or add a fire dept override keyswitch, or maybe implement those door sensors so it doesn't move if any doors are open. Given a really crude simple importer for CSV text files, make it smarter so it can handle embedded commas inside quotes. Here's a crude simple roman numeral to decimal translator which handles I and V, now either add X or add prefix notation or whatever its called where IV = 4 not 6. Here's the worlds dumbest prime number checker which tests all positive integers smaller than the test number for divisibility... your task is make it faster.
- jedberg 13y ago> Any idiot can write something that occasionally works with some limited simple input and doesn't need to scale or do much error handling or recovery or cooperate with the OPS guys and their designs in any way. You'd like to think so, but what I'm saying is that isn't the case. > Give em a fizzbuzz with pathological parenthesis which mess it up, or half a fizzbuzz and ask them to finish it. I ask them to write regular FizzBuzz and they can't. :(
- VLM 13y agoI predict you're in SV or perhaps NYC. Everywhere else the supply of programmers exceeds the demand such that only the top programmers/grads are in any danger of even getting an interview. You could be running into people with bad attitudes. I'll blame youthful indiscretion or whatever, but one really bad interview I was in, I couldn't believe I took a day off work and drove half way across the state to interview for what amounted to a ridiculous low entry level position (bait and switch) so I started flirting with the cute HR lady and talked ham radio antennas for an hour with my future bosses boss because if they wasted my time I was going to waste theirs. Well, kids have never been known for excessive professionalism, I wouldn't do that now but I wouldn't get caught in a bait and switch either. So I guess what I'm getting at is do they look smoking hot pissed off or more confused?