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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

What is the best comment in source code that you have ever encountered?

13 点作者 efz1005大约 8 年前

7 条评论

rglover大约 8 年前
Without a doubt:<p>&lt;!-- &lt;![CDATA[ METAL ABS ~~real turnt up!!<p><pre><code>   /フフ         ム`ヽ  &#x2F; ノ)   ∧∧      ) ヽ ゙&#x2F; |  (´・ω・`)ノ⌒(ゝ_,ノ &#x2F; ノ⌒7⌒ヽー--く \  / 丶_ ノ 。   ノ、  。|&#x2F;    `ヽ `ー-&#x27;_人`ーノ     丶  ̄ _人&#x27;彡ノ      ノ  r&#x27;十ヽ&#x2F; ]]&gt;</code></pre> --&gt;<p><a href="http:&#x2F;&#x2F;metalab.co&#x2F;" rel="nofollow">http:&#x2F;&#x2F;metalab.co&#x2F;</a>
评论 #13962639 未加载
CalChris大约 8 年前
<i>You are not expected to understand this.</i><p>Unix 6th Edition context switching code
评论 #13972553 未加载
angerbot大约 8 年前
This rant [1] on the PSD format has to be my favourite:<p><pre><code> &#x2F;&#x2F; At this point, I&#x27;d like to take a moment to speak to you about the Adobe PSD format. &#x2F;&#x2F; PSD is not a good format. PSD is not even a bad format. Calling it such would be an &#x2F;&#x2F; insult to other bad formats, such as PCX or JPEG. No, PSD is an abysmal format. Having &#x2F;&#x2F; worked on this code for several weeks now, my hate for PSD has grown to a raging fire &#x2F;&#x2F; that burns with the fierce passion of a million suns. &#x2F;&#x2F; If there are two different ways of doing something, PSD will do both, in different &#x2F;&#x2F; places. It will then make up three more ways no sane human would think of, and do those &#x2F;&#x2F; too. PSD makes inconsistency an art form. Why, for instance, did it suddenly decide &#x2F;&#x2F; that *these* particular chunks should be aligned to four bytes, and that this alignement &#x2F;&#x2F; should *not* be included in the size? Other chunks in other places are either unaligned, &#x2F;&#x2F; or aligned with the alignment included in the size. Here, though, it is not included. &#x2F;&#x2F; Either one of these three behaviours would be fine. A sane format would pick one. PSD, &#x2F;&#x2F; of course, uses all three, and more. &#x2F;&#x2F; Trying to get data out of a PSD file is like trying to find something in the attic of &#x2F;&#x2F; your eccentric old uncle who died in a freak freshwater shark attack on his 58th &#x2F;&#x2F; birthday. That last detail may not be important for the purposes of the simile, but &#x2F;&#x2F; at this point I am spending a lot of time imagining amusing fates for the people &#x2F;&#x2F; responsible for this Rube Goldberg of a file format. &#x2F;&#x2F; Earlier, I tried to get a hold of the latest specs for the PSD file format. To do this, &#x2F;&#x2F; I had to apply to them for permission to apply to them to have them consider sending &#x2F;&#x2F; me this sacred tome. This would have involved faxing them a copy of some document or &#x2F;&#x2F; other, probably signed in blood. I can only imagine that they make this process so &#x2F;&#x2F; difficult because they are intensely ashamed of having created this abomination. I &#x2F;&#x2F; was naturally not gullible enough to go through with this procedure, but if I had done &#x2F;&#x2F; so, I would have printed out every single page of the spec, and set them all on fire. &#x2F;&#x2F; Were it within my power, I would gather every single copy of those specs, and launch &#x2F;&#x2F; them on a spaceship directly into the sun. &#x2F;&#x2F; &#x2F;&#x2F; PSD is not my favourite file format. </code></pre> 1: <a href="https:&#x2F;&#x2F;github.com&#x2F;zepouet&#x2F;Xee-xCode-4.5&#x2F;blob&#x2F;master&#x2F;XeePhotoshopLoader.m#L108" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;zepouet&#x2F;Xee-xCode-4.5&#x2F;blob&#x2F;master&#x2F;XeePhot...</a>
Philomath大约 8 年前
I once read:<p>&quot;I don&#x27;t know why, but it works.&quot;
s3cur3大约 8 年前
<p><pre><code> #include &quot;some_file.h&quot; &#x2F;&#x2F; we want this for reasons that i would certainly explain, if not for my wretched laziness</code></pre>
exabrial大约 8 年前
&#x2F;&#x2F; we&#x27;ll never encounter this exception<p>&#x2F;&#x2F; e.printStackTrace();<p>Except we were. So I put in:<p>System.exit();
DoofusOfDeath大约 8 年前
&quot;Why the hell do we need this? She won&#x27;t tell me.&quot;