Settings

Theme

Guess the Programming Language

tutorialzine.com

22 points by martinaglv 12 years ago · 18 comments

Reader

nate_martin 12 years ago

I was expecting this to be a lot less straightforward. It would be interesting to see if you could trick people by writing code in such a way that it looks like it is a different language.

  • bradbeattie 12 years ago

    "In computing, a polyglot is a computer program or script written in a valid form of multiple programming languages, which performs the same operations or output independent of the programming language used to compile or interpret it." http://en.wikipedia.org/wiki/Polyglot_(computing)

    That might make it even trickier if the answer isn't a set of radio buttons, but checkboxes instead.

wingerlang 12 years ago

I think this was too easy. Maybe it should group more similar languages together or something.

  • mutagen 12 years ago

    The choices offered gave away too much, I was able to pick out languages I've never spent any time looking at, much less coding, from the choices offered. Make me choose from the whole list of 20 or more instead of 3 or 4 each time and I'd get less than half instead of 20/20.

    Maybe I'm more aware than I give myself credit for, though.

    • wingerlang 12 years ago

      I did the same. "Well it's not C++ and not JS so it must be [language I've never paid attention before]" and yes it was.

izzydata 12 years ago

The php one had a <?php tag at the top of it. Just saying.

  • LyndsySimon 12 years ago

    That's almost a language requirement. You could use short tags, and begin the file with "<?" :)

infogulch 12 years ago

If you've done (heck, even seen) a hello world in half of these languages, you can get the rest via elimination.

sold 12 years ago

A harder quiz: http://helloworldquiz.com/

cessor 12 years ago

I loved the one that somehow looked like BF* but was actually JS ;)

Confusion could arise when doing python in ruby or having some subtle distinction between c and c++, but I guess the test is not made to trick people or diagnose actual language knowledge. Still, lots of fun!

diasporick 12 years ago

I haven't written a line in half of these languages, and I got a perfect score.

I still don't know what this says about the uniqueness of programming languages or the ratio of code reading to code writing in the industry.

maninalift 12 years ago

Am I shallow that it made me feel good getting all the answers right even though I knew most of the people who tried it would?

blt 12 years ago

somewhere there's a much harder version, it has code that could be c/c++, c#/java, scheme/CL, except for one little distinguishing feature.

killertypo 12 years ago

seemingly way too easy.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection