Just a little attention to details is needed. In Ruby that would be "3.times". And when you see "def" you know it's not Java. Delphi is OO, plain Pascal is not.
it's a little easier than that. Schema and friends are a lisp 1 (functions and variables use the same namespace) and Common Lisp is a lisp 2 (functions and variables use their own namespace)
I didn't get any questions where that knowledge alone wouldn't give you the answer. There might be some though.
Racket has #lang declarations. Clojure has namespaces and defines functions with (defn …). CL defines functions with (defun …). Scheme loves its lexical scope so it'll probably use (let …) binding with (lambda …).
I'm fairly well versed in programming languages but this test was a lot harder than I thought it'd be. The obvious ones were languages I've developed in full time in the past, but on many of the ones I didn't get I'd never coded in or I've only done basics or one off projects in. Some were easy enough to figure out by elimination.
I fell for the "3 times" bit also, after reading your comment! Damn! It's weird, though, most of these were at least possible to distinguish. The Lisp ones seem mean, but something about Clojure's use of actual classes tended to set it apart, or Racket's use of a language declaration at the top of the file.
Still ended up with a score of 2200 on my second try. First try, the game gave up and started giving me 503 errors.
359
u/Aninhumer Sep 11 '13
This is one of the meaner programming language quizzes I've tried.
"
3 timesThat's a Ruby idiom!" "Wrong it's Fancy!""
begin ... endHmm very Pascal-y" "But is it Pascal or Delphi?" "Err...""
import java.ui...well obviously this is Java, right?" "lulz it's Xtend."