TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Show HN: 15-question language identification quiz

140 点作者 DanielDe将近 8 年前

33 条评论

ammon将近 8 年前
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!
评论 #14763895 未加载
评论 #14765476 未加载
评论 #14763888 未加载
评论 #14768185 未加载
评论 #14768186 未加载
throwaway2016a将近 8 年前
Got 14&#x2F;15 but I have a feeling it was only because I made the assumption I would not see the same language twice. Without that assumption a few were toss ups for me.<p>Of all the languages on there the only one in that set I had never used &#x2F; seen at all is Kotin and that&#x27;s the one I got wrong.<p>Several of them were mandatory for me to learn in college but I haven&#x27;t seen since. (looking at you, Prolog and Verilog... Verilog is useful but I don&#x27;t do hardware dev)
评论 #14765424 未加载
评论 #14766134 未加载
评论 #14765201 未加载
评论 #14764312 未加载
评论 #14777921 未加载
rpeden将近 8 年前
15&#x2F;15, not that it matters. I guess all those years of reading about languages on HN and trying out languages even when I had no real use for them was good for <i>something</i>, at least. :)
nvr219将近 8 年前
I am not a programmer other than one visual basic course I took in college.<p>My score: &quot;You got 8 out of 15 right You&#x27;re in the top 50% of engineers. Can your friends beat you? Share your score and challenge them to do better!&quot;
pmontra将近 8 年前
14&#x2F;15. I guessed wrong between Piet and GLSL which I never heard about. How many possible questions are there?
评论 #14764238 未加载
评论 #14765427 未加载
评论 #14765002 未加载
评论 #14765606 未加载
yakshaving_jgt将近 8 年前
I got 12&#x2F;15 initially. Then I followed the link to retry the test, and somehow got 15&#x2F;15. It&#x27;s amazing how quickly you can progress as an engineer.
ynniv将近 8 年前
That must be top 3% for a large value of 3, or perhaps a small value of 100. How&#x27;s the HN traffic doing? ;-)
hghmn将近 8 年前
I know this is intended as just a fun test, but the highlight.js library used on these pages adds the language name as part of the class name on the code block...
amyjess将近 8 年前
13&#x2F;15<p>One was because I got two LISPs mixed up with each other, the other because it was in a language I didn&#x27;t recognize (Piet) and there were two languages I didn&#x27;t know anything about as options (GLSL was the other).
评论 #14765367 未加载
emersonrsantos将近 8 年前
Do one with only assembly languages and we have to guess the architecture.
评论 #14767543 未加载
vram22将近 8 年前
Just did it, and got 14&#x2F;15. But see below.<p>Saw this thread yesterday and at first did not feel like taking the quiz (because I thought I would not do well, also because I didn&#x27;t think it was too interesting).<p>But today read about half of this thread again. Then felt motivated to take the quiz (just for fun). Was not expecting more than say 8&#x2F;15. Surprised to see I got 14&#x2F;15 (but in top 3% of engineers -- definitely not :). It was definitely partly due to reading some of this thread first, else I would never have been able to figure out the Ada&#x2F;VHDL question (at least just by guessing &#x2F; logic &#x2F; prior knowledge), even less the Piet one (since had never heard of it - at least had heard of Ada and VHDL). I guess the result was also partly due to being interested in programming languages right from the start of my career, and having at least read a little about many, and having dabbled in some (apart from the ones I worked in for non-trivial periods).<p>Anyway - somewhat interesting quiz idea.
tluyben2将近 8 年前
Wrote code in all but Piet, so knew it was not glsl. I must spend way too much time behind a computer as i also knew all besides Piet even if it was not multiple choice :)<p>I do think it should be harder; like when you get a lesser known language, also add the choice for others; APL + K + J for instance, or worse (for many) K or J showing either.<p>C vs C++ vs D.<p>Prolog vs Haskell vs Ocaml. Curveball there could be something like Mercury.<p>Haskell vs Purescript.
_raoulcousins将近 8 年前
14&#x2F;15. I basically only program Python, but I guessed based on vague stereotypes of different languages. The wrong one was guessing Java for C#.
评论 #14768508 未加载
viach将近 8 年前
So the scheme is I answer questions in order to get my ego higher, you bribe me with &quot;you are top n&quot;, I leave my CV?
评论 #14764322 未加载
jadell将近 8 年前
11&#x2F;15 A few I missed because I didn&#x27;t know enough to tell them apart (eg Kotlin&#x2F;Swift.) Others were process of elimination or a straight up guess. And I didn&#x27;t even know there was an abstract visual programming language!
lojack将近 8 年前
Interestingly enough, question 5 is actually syntactically correct Perl, but not PHP.
评论 #14767074 未加载
评论 #14769146 未加载
acheron将近 8 年前
Stupidly, I missed Ruby&#x2F;Python from going too quickly right at the beginning. Then missed Ada&#x2F;VHDL from never having heard of VHDL, and I thought &quot;oh, looks like Ada.&quot;<p>Anyway, fun stuff. I laughed when Piet came up.
评论 #14766090 未加载
still_grokking将近 8 年前
Too easy (15&#x2F;15). Had only once to look a second time at the code snippet (elisp vs. clojure, but there were [] around the param, that made it clear).<p>Would be more fun if they would implement the same code snippet in different (but maybe quite similar) languages and one would have to label the (lets say six for an interesting difficulty level) snippets.
MichaelBurge将近 8 年前
&gt; 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++.<p>I&#x27;ve sort of followed C# since it was released, and never realized this.
评论 #14766668 未加载
hyperpape将近 8 年前
It&#x27;s a bit of a giveaway that R included domain specific terminology: otherwise it would&#x27;ve been hopeless for me. Maybe the same for VHDL, but I know so little about it that I don&#x27;t even know if you could write code without domain specific elements.
vram22将近 8 年前
BTW, what is the reason for the Piet question not showing any code or image (until you answer the question)? Is it somehow related to how the language works, or some feature of it?
ajeet_dhaliwal将近 8 年前
Surprised how the ones I&#x27;m familiar with jump out instantaneously, only got 10&#x2F;15 but should have got 11, silly mistake confusing ruby and python. Hadn&#x27;t even heard of some of the ones at the end.
nobleach将近 8 年前
Ahhhhhh! APL and Piet I didn&#x27;t feel bad about (as I have never seen either) But VHDL vs Ada! Bad miss on my part. 12&#x2F;15 is not too bad I guess....
评论 #14766617 未加载
vortico将近 8 年前
Happened to get all of them, but it was getting harder at the end! Was C, C++, Java, Python or included because the quiz would have been too easy?
评论 #14764026 未加载
pklausler将近 8 年前
Damn, I miss APL.
Osmium将近 8 年前
Perhaps this should be a &#x27;poll&#x27; post so people can vote for their results? (9&#x2F;15)
asadlionpk将近 8 年前
My startup provides online compiler service for 20+ languages[0] so my work involves testing every language frequently. So this was easy for me.<p>[0] <a href="https:&#x2F;&#x2F;codepad.remoteinterview.io" rel="nofollow">https:&#x2F;&#x2F;codepad.remoteinterview.io</a>
timwaagh将近 8 年前
it was a fun test. i got like 13&#x2F;15. not too bad i think considering the people who are on this site are making mistakes as well. maybe i deserve a higher salary?
rvense将近 8 年前
All fun and games till the plug at the end...
DonaldFisk将近 8 年前
14&#x2F;15. Confused Swift and Objective C.
noncoml将近 8 年前
13 out of 15 (No idea bout VHDL and Piet)
optikals将近 8 年前
Smart! Enjoy it so much!
wambotron将近 8 年前
I got 11 of 15, but I can only write competently in maybe 4 of them (JS, Java, Python, PHP).