Live data from Hacker News

Show HN: 15-question language identification quiz

quiz.triplebyte.com

71–80 of 92 posts

Re: Show HN: 15-question language identification quiz

#74
post #2

We (Triplebyte) actually tested a while ago whether identifying languages was predictive as an interview question (we thought it might predict general experience / exposure to lots of code). It was not predictive of anything. So this quiz is just for fun!

Came here just to confirm this. I got all right but it doesn't seem to be valid test for hiring. Fun quiz! :)

Can confirm. I'm a terrible programmer but got 100%. I guess it selects for people with very unfocused careers and no real specialism.

Re: Show HN: 15-question language identification quiz

#75
post #52
post #47

Earlier quoted context omitted.

Ditto. I'm positive that code would be valid Perl with the right libraries. Which isn't saying much.

Same here, because I knew they intersected and presumed it was a trick question. Technically, I believe it is neither valid perl nor PHP because it's missing an opening brace on one of the if statements.

PHP lets you skip using curly braces for conditionals. I've seen real-world code which used this style only once, and it was about as bad as you'd expect.

Re: Show HN: 15-question language identification quiz

#77
post #74

Earlier quoted context omitted.

Came here just to confirm this. I got all right but it doesn't seem to be valid test for hiring. Fun quiz! :)

Can confirm. I'm a terrible programmer but got 100%. I guess it selects for people with very unfocused careers and no real specialism.

One could as easily argue that it selects for people who closely follow Hacker News - I got 15/15 too, but only because I'd previously seen several of the more esoteric languages mentioned here.

Re: Show HN: 15-question language identification quiz

#78

> Just as the ++ in the name C++ is intended to imply that C++ is a step above C, the # in the name C# is intended to resemble two ++ operators stacked on each other, indicating that C# is a step above C++. I've sort of followed C# since it was released, and never realized this.

I recall C# being a musical reference (a higher note than c), which is why it's pronounced C-sharp and not say, c-pound. I would occasionally call it Db (D-flat) to be an arse. I'm not sure if there was a formalized reasoning behind the name or if what I heard was just a rationalisation.

a complete arse would reply that Db and C# are not the same thing.

Re: Show HN: 15-question language identification quiz

#80
post #20

Interestingly enough, question 5 is actually syntactically correct Perl, but not PHP.

Well, it is correct PHP as it is missing an opening "When interpreting as PHP however

  if(isset($_SESSION['uid']))
      header("Location: reg");
  }
is either missing an opening bracket or has got one too many closing brackets.
Post reply on HN