Live data from Hacker News

JS assessment: A test-driven approach to assessing JS skills

github.com

11–12 of 12 posts

Re: JS assessment: A test-driven approach to assessing JS skills

#11
post #6
post #4

I like this idea but I think the design needs to be pretty drastically rethought. Node.js is not really the right medium for this sort of test, although it might function as a first barrier for screening the interested; "you must be able to follow readmes to install software" etc. What I'm more concerned is the idea that this is apparently structured like an automated test. If you used it that way, then here is a fun…

I agree, I also thought it wasn't clear if we were supposed to be writing tests, or code that was to be tested. Instead of modifying the test cases have them fill out a functions file and then run the random tests against those.

My fear with doing that is that if the functions file is separated from the tests file, then it becomes difficult to see at a glance what the function needs to do in order to make the test pass. That said, I agree that what you're supposed to do could be more clear -- would you care to open an issue so we can discuss it on the repo?

Re: JS assessment: A test-driven approach to assessing JS skills

#12
I found the tests really fun. I confess I had to turn to MDN for help with a couple of the questions, and I definitely picked up some new JS knowledge.

I agree with drostie that the node requirement is quite a large barrier to entry. A standalone app (no server required) would probably reach a wider audience.

I don't think it's a concern that someone might hardcode the answers. These sort of tests are about challenging yourself, and where's the challenge in cheating?

For anyone interested, I posted my solutions at http://f6design.com/journal/2012/04/15/test-your-javascript-...

My 'partial' solution (and probably the rest too!) could be improved I'm sure. Thanks e2daipi for cluing me in about currying.

Post reply on HN