6 ms·
How'd you do it if the keyboard wasn't working?
by w1ntermute 11y ago
How'd you do it if the keyboard wasn't working?
- knodi123 11y agoOur main product was developed on a keyboard that was missing a "w". It's not a big deal, though - you can use a for(;;) loop instead of a while loop without hurting performance. And it's easy to just avoid "w" words in the view templates by being clever with word choice. Of course, that's not true at all. But giving someone a defective-but-not-entirely-broken tool can be a clever way of seeing how they work around problems or how they deal with frustration. Joking aside, we once let a guy go during his 1 week probationary period because he got a little too angry at a slow server. It's a valuable test.
- CydeWeys 11y agoIt's too contrived though; not having a single working keyboard anywhere isn't a real business situation. A slow bottlenecked server, sure. If the "w" key weren't working I'd copy-paste "w" characters from elsewhere in the document, or bring up the on-screen keyboard. Writing bastardized code -- for (;;), really?! -- would be a huge negative against a candidate. And, of course, if a company really didn't have a working keyboard to provide me with, I'd never work there in the first place, because if they can't even provide working peripherals there's no limit to what else they might skimp on. I actually have three keyboards at my desk right now -- one with Cherry MX blues, one with Cherry MX browns, and a Model M. No way in hell would I ever write code without "w"s.
- grecy 11y agoWhenever you need a character your keyboard won't produce - either because it's broken or because it's in a different language and you can't figure out how to get it, just google the character and copy/paste it. i.e. Google "double u"
- Terr_ 11y agoOr just use the mouse to open your whatever "Character Map" program comes with your OS... which works when you're missing the same letters you'd need to "sound them out", or even with no keyboard at all. (Assuming you managed to log in.)
- grecy 11y agoTry doing that when you sit down at a machine that has the language set to something you can't read :)
- scintill76 11y agoI actually like "for (;;) {}" as an idiom for an infinite loop (or at least, the terminating conditions are in the body rather than the loop construct itself.) It maybe stands out more than "while(true)", so readers can easily see what's going on. But maybe that's just a justification, and the real reason is that it looks clever because not everybody knows you can do that with a C-style for loop.
- christianmann 11y ago#define ever (;;)
- 0xdeadbeefbabe 11y agoThe W button? That's interesting. It wasn't related to the Clinton transition out of the White House[0] was it? [0] http://www.truthorfiction.com/trashingthewhitehouse/ http://www.truthorfiction.com/trashingthewhitehouse/
- ssharp 11y agoMaybe it's why I'm not a developer anymore, but my approach to a broken "w" key wouldn't be figuring out a workaround to using "while", but rather copying and pasting a "w" from somewhere else.
- TeMPOraL 11y agoMy would be to (in order): jury-rig the keyboard to make it type "w" anyway, rebind it to some unused key, or just bring my own keyboard from home (if this would not be an interview but probational period setting).
- tremendo 11y agoascii 119, son on Win Alt-119. But seriously, stand up and ask for a working keyboard first. The test there is communication.
- __z 11y agoExactly. If someone's approach to a broken keyboard is some workaround instead of just asking for another keyboard it is a sign they handle problems very, very poorly.
- blablabla123 11y agoIt's an insurance company, maybe they want to assure that they still work even if there is something exploding. ;)
- raverbashing 11y agoJust find a text where there's a w, copy and paste it. (And then make a preprocessor run where \/\/ is replaced with a w)
- deleted 11y ago[deleted]
- throwaway12357 11y agoI'm sorry but I can't help to find this situation ridiculous. Unless you're from a very poor country there is no excuse for not having a working keyboard. I don't know if that was part of the test, but if it was, it's worse than the big blue chip corps asking about the number of piano tuners. Which actually can be valuable at understanding how one reasons about unknown problems/areas. About the server being slow, well I don't know the magnitude of the slowness or the anger, but unless you're a ramen fueled startup there is no excuse for having slow machines. It's management failure. It's a waste of developer time. Instead of coding the dev is having to deal with stress inducing constant 5 second hiccups or similar things. Put yourself in the interviewee's shoes. Do you really want to work in a company that can't conduct a proper interview and has broken/slow hardware? And yes, I do use vim and I do like w very much.
- knodi123 11y ago> Do you really want to work in a company that can't conduct a proper interview and has broken/slow hardware? Slow is relative. The employee in question was trying to figure out why a remote server was experiencing extreme slowdown. He ssh-ed in, but he was able to type far faster than the beleaguered remote could echo his keystrokes. So he needed to just carefully type his commands, wait for them to appear, and then press enter. Instead, he typed angrily and too quickly, swore at the connection, and eventually started slamming his keyboard in a fit of pique. It was a totally reasonable real-world slow machine problem, and a totally useful insight into the mindset of a potential new employee. Not egregious at all. We're developers, sometimes we have to walk into an annoying situation and deal with it like adults.
- JoeAltmaier 11y agoYeah but poor guy - in an interview situation the pressure is different and public. He might have done fine at his own desk.
- garmega 11y agoIt wasn't during the interview. According to knodi123's first comment it was during the guy's first week on the job. >Joking aside, we once let a guy go during his 1 week probationary period because he got a little too angry at a slow server.
- malkia 11y agoNot at a company, but in Bulgaria every year there is a National Programming Olympiad - basically high-schoolers (but some time even mid-schoolers) would compete by solving 2 or 3 exercises in small amount of time. Their code would be ran, against tests, and it should finish in time, and with correct answers. Possibly code review might be done as well. Most used languages were Pascal, C, C++, Basic. But then computers were not provided, each school had to travel with a computer for each student. So around 1993/94 a friend of mine, who also had some terrible medial situation at the time, and was quite weak decided to compete, and to make things worse for him - his spacebar wasn't working. I think he did a lot of presses of Alt+32 (or was it Alt+20 - I haven't used this combination of entering ASCII codes in a long time). He finish pretty good for the situation and keyboard problem he had, and next year when he was healthy and with good keyboard he did just awesome!
- logfromblammo 11y agoIf the 'w' key is the only worn out key on a keyboard, I would suspect that it had seen heavy use attached to a gaming PC, as the "forward" key in the default WASD movement layout. I have a keyboard with a broken 'w' key myself, and I know exactly why that key cap died young. It sure wasn't from typing out "while".
- damon_c 11y agoYou might benefit from more strafing.
- s73v3r 11y agoI dunno. If you're not going to care enough about your employees to give them the best possible tools, why do I want to work there again?
- yellowapple 11y agoSomewhat off-topic, but I'm suddenly reminded of a joke proposal for Fortran to drop the letter 'O' entirely from its character set (in response to frustration regarding its confusion with '0'), the justification being that 'GOTO' statements would suddenly be impossible and therefore incapable of doing harm.
- Qwertious 11y agoIt wasn't working "properly". For all we know, that just means the insert and home keys were switched around somehow. Or maybe caps lock was broken.
- vijayr 11y agoThey changed the keyboard twice :p