What's That Programming Language?
wtpl.heroku.com
wtpl.heroku.com
It would be interesting to see how much code you need to be able to accurately identify the language.
[1] http://mark0.net/soft-trid-e.html [2] http://www.peid.info/
OT: Falcon is actually a pretty interesting little language.
I missed Erlang, even though I have a copy of Programming Erlang somewhere. Guess it didn't take.
The other one where this happened was F#. I tried OCaml and Snandard ML and was thinking "this HAS to be OCaml..." and again, felt silly for not thinking of F#.
Boy am I smart.
What is interesting is so many languages look like C or Lisp or ML or its variants.
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 :)
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!
Also, I opted for Tab completion instead of arrow keys; it's much faster and far less finicky to implement robustly.
;-)
Not sure how they would get around this one.
If the input text is correct, it is automatically submitted and you move on to the next language sample. If you haven't typed the correct answer, nothing happens and you can either keep guessing or forfeit.
Edit: Darn, was beat to it.
Cool app, it's pretty fun despite a few (seeming) bugs here and there. Some languages in there I've never even heard of... guess I'll have to check them out. At the same time, there are a few I can think of that aren't included... room for expansion, I guess.
I like it that you can clearly see several "streams" of syntax. That does make it hard to find the correct C family.
Looking at the source in a programming challenge is still winning, right?
edit: I just finished, 63/75
Languages never saw before :
seed7, whenever.
Happy to see my friend COBOL too.
int main(){
for(int i = 99; i > 0; i--){
write(i + " bottles of beer on the wall, " + i + " bottles of beer.\n");
write("Take one down and pass it around, " + (i-1) + " bottles of beer on the wall.\n\n");
}
write("No more bottles of beer on the wall, no more bottles of beer.\n");
write("Go to the store and buy some more, 99 bottles of beer on the wall.\n");
}My 5 bugged languages were : scala, groovy, Dart, they're all not too unrelated.
#define write(x) {};
it's even valid C :)I have clicked "forfeit" approximately 10 times, and all returned languages were AAABABBBCBCCCCC-esque if you know what I mean?
Array::shuffle = -> @sort -> 0.5 - Math.random()
was just too damned sexy to pass up, but it's apparently pretty bad at distribution. Running it ten times seems to have helped. : )Damn, I thought I was good at this.
edit: 46/77 I guess, after 75 it's only undefined (so my score should probably be 46/75)
Interesting though :D
Wow, there are so many languages I still need to try.... I'm proud I got ones like Piet, Io, and Racket, though.
But I wouldn't bother.
21/76 (27.63%)
'Batch file' should accept 'batch,' imo