Live data from Hacker News

What's That Programming Language?

wtpl.heroku.com

71–80 of 107 posts

Re: What's That Programming Language?

#72
post #70
post #49

Please, if you show me a list of things, let me use my arrowkeys. Also, can you finish more gracefully than giving my undefined?

That is annoying. Also irritating is the fact that the quiz seems to stop accepting answers after a couple of questions for me; in both Chrome and Firefox so far. I want so desperately to get a score! Edit: Actually, it just turns out (after reading the source) that in some cases it just won't accept the answer if it's wrong. I did the honourable thing and selected "Forfeit", allowing me to continue :)

I know auto-accepting only the correct answer is a pretty unorthodox way to do it, but I initially took to making this to familiarize myself with the various syntaxes, and it's the approach I tend to opt for when teaching myself things by rote (notably the Japanese kana and one to ten in all sorts of spoken languages) and it seems to work pretty well. Something about pressing Enter or a "submit" button breaks the neural flow for me; I tend to recall things much more effectively when I become a "constant input stream", for lack of a better phrase. Apologies if it doesn't quite suit you.

Re: What's That Programming Language?

#73
post #49

Please, if you show me a list of things, let me use my arrowkeys. Also, can you finish more gracefully than giving my undefined?

But "undefined" is such a beautiful terminus; what lies beyond the horizon is entirely up to your imagination. : )

Also, I opted for Tab completion instead of arrow keys; it's much faster and far less finicky to implement robustly.

Re: What's That Programming Language?

#74
post #48

Earlier quoted context omitted.

Awesome work, either way! Very impressive collection of language samples. It would make great post to tell us how you put this together, especially where these code samples were from and anything else of interest. Kudos!

How I wish I could say I speak 70+ programming languages, but alas, they're all from Rosetta Code.[1] I would like to show a variety of "tasks", as the site calls them, but scraping seems like it would be a pain, so I went with the most interesting problem with a solid number of samples. As for the architecture, it's pretty much just a Ruby hash from language to code, and then a bit of CoffeeScript to glue everything…

I knew it was from Rosetta -- coincidentally, only a few days ago I submitted my own entry there http://rosettacode.org/wiki/99_Bottles_of_Beer#Fexl .

Re: What's That Programming Language?

#78
post #70

Earlier quoted context omitted.

That is annoying. Also irritating is the fact that the quiz seems to stop accepting answers after a couple of questions for me; in both Chrome and Firefox so far. I want so desperately to get a score! Edit: Actually, it just turns out (after reading the source) that in some cases it just won't accept the answer if it's wrong. I did the honourable thing and selected "Forfeit", allowing me to continue :)

I know auto-accepting only the correct answer is a pretty unorthodox way to do it, but I initially took to making this to familiarize myself with the various syntaxes, and it's the approach I tend to opt for when teaching myself things by rote (notably the Japanese kana and one to ten in all sorts of spoken languages) and it seems to work pretty well. Something about pressing Enter or a "submit" button breaks the neu…

It was more the cases where I was wrong, rather than right. Some feedback indicating that the form could not be submitted, and one needed to press "forfeit", would have been appreciated, if only because it is not the way web forms work.

It's a small thing (and I did like it once I realised how it worked) but when doing things in an unusual way a little bit more guidance is required at first.

Enjoyed the quiz!

Post reply on HN