Relaxing with a few beers at home, this was fun. "12 minutes, 19 seconds for all 5 levels. Well done!" Don't care that I'll be blasted for being a slow old man. Come on, you know you want to! Stallman, babbage, lovelace and torvalds await.
That was great fun for non webdev Javascript coder, and I was about 3 mins in and finishing 4th problem.
However, getting one of the tests wrong in 4th problem because of two chinese UTF-8 symbol having more length than "tiny" kind of irked me and reminded me why I do not do webdev.
I suppose this is actually a good kind of test, because real webdevs would actually have learned not to use s.length but use something else.
What is it though? This seems like a Javascript fail more than anything else.
Re:The Engineer Crunch
by danielweber on Wednesday February 19, 2014 @08:50AM
(#7263581)
I just did that and I'm pretty sure I used "s.length()" and I didn't even notice any Chinese characters.
I had to check typeof (apparently those two chinese characters are not a string) to fix this, again this is actually useful, but was not expected given the ease of first 3 problems.
Please put a warning if you link to a site that auto-plays audio.
Gah, that made me jump.
My cousin's employer has started using Javascript Under Pressure [1] as the first round of technical interviews - it lightens the mood, and fully half of the people applying for a front-end development position at his company can't finish the first one, which is literally to write a function that returns the argument multiplied by two.
[1]http://games.usvsth3m.com/javascript-under-pressure/