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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

How to Write Unmaintainable Code

4 点作者 _o_大约 7 年前

2 条评论

_o_大约 7 年前
&quot;Hungarian Notation is the tactical nuclear weapon of source code obfuscation techniques; use it! Due to the sheer volume of source code contaminated by this idiom nothing can kill a maintenance engineer faster than a well planned Hungarian Notation attack.&quot; &#x2F;...&#x2F; &quot;Insist on carrying outright orthogonal information in your Hungarian warts. Consider this real world example a_crszkvc30LastNameCol. It took a team of maintenance engineers nearly 3 days to figure out that this whopper variable name described a const, reference, function argument that was holding information from a database column of type Varchar[30] named &quot;LastName&quot; which was part of the table&#x27;s primary key. When properly combined with the principle that &quot;all variables should be public&quot; this technique has the power to render thousands of lines of source code obsolete instantly!&quot;<p>:D :D :D :D
detaro大约 7 年前
Seems to be an incomplete copy of the original at <a href="http:&#x2F;&#x2F;mindprod.com&#x2F;jgloss&#x2F;unmain.html" rel="nofollow">http:&#x2F;&#x2F;mindprod.com&#x2F;jgloss&#x2F;unmain.html</a> ?