4 ms·
Ruby-jokes/job_interview
- sp332 14y agoLooks like an upgrade from HQ9+ http://esolangs.org/wiki/HQ9%2B http://esolangs.org/wiki/HQ9%2B
- pcwalton 14y agoI really hope nobody has ever actually asked candidates to write quines.
- koobe 14y agoThat does not look like a quine to me.
- Falling3 14y agoWell the quine function sure does.
- sp332 14y agoI don't know Ruby, so this is probably obvious, but: Why does quine() need an argument? What good is __FILE__ there?
- Falling3 14y agoEven though you don't know ruby, you should really check out the source code. It's very simple. __FILE__ is a reference to the current file name. If you'd looked at the source code, you'd see that it's actually a pretty cheap quine, since it has access to that magic variable. You could do the same thing with just: puts File.read(__FILE__)
- sp332 14y agoOh man, i was just thinking of this in terms of a REPL and didn't think of incorporating it into a file. duh :) thanks
- hcarvalhoalves 14y ago> => "I have a special interest in modular mobile startup platforms." Sounds legit.
- pavel_lishin 14y agoShit, I think that might be what we actually do.
- mhartl 14y agoThe attention to detail cracks me up. It even has a test suite!
- rinrae 14y ago"Also, most job interviews are dumb, and we felt the need to point this out." +1. Also, I'm happy to be working in an industry where you can get a job without these kind of job interviews.