TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

How to Write Unmaintainable Code

46 pointsby adgasfalmost 9 years ago

9 comments

grncdralmost 9 years ago
From <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>:<p>&gt; I would like to remind you this essay is copyrighted material. It is illegal to repost it without permission. I will usually give you that permission if you translate the essay into another language and if you provide a link back to the English-language original. I do this for three reasons.<p><pre><code> 1. That way any change I make to the essay is instantly reflected in any English-language copy anyone reads. 2. That way the formatting and images are preserved. Pirated copies usually screw up the formatting. 3. Google ad revenue from this essay is the main source of income from the website. It pays to keep me on the air. </code></pre> I don&#x27;t understand how the creator of this GitHub repo could miss this, it&#x27;s the first thing in the original article...
评论 #12166614 未加载
评论 #12166226 未加载
TickleStevealmost 9 years ago
&quot;Hungarian Notation is the tactical nuclear weapon of source code obfuscation techniques&quot;<p>...never a truer word was said.<p>(<a href="http:&#x2F;&#x2F;www.joelonsoftware.com&#x2F;articles&#x2F;Wrong.html" rel="nofollow">http:&#x2F;&#x2F;www.joelonsoftware.com&#x2F;articles&#x2F;Wrong.html</a>)
alxmdevalmost 9 years ago
I had the pleasure of dealing with C++ classes with a dozen or more gratuitously overloaded operators, including overloaded cast operators. You&#x27;d cast an object to a certain type in order to access a member of that type, instead of accessing that member in a normal way. I never doubted for a second that it was all done for job security, this stuff is real.
lettergramalmost 9 years ago
I swear... I have worked with coworkers who have taken a lot of these principles to heart.
评论 #12172418 未加载
评论 #12166448 未加载
MichaelMoser123almost 9 years ago
no, he missed one obfuscation trick that should be quite natural in java land - just create deep nested class hierarchies that serve no apparent purpose - AbstractSingletonProxyFactoryBean for everybody; no hope to understand what is going on here.
评论 #12166476 未加载
评论 #12166365 未加载
tomeldersalmost 9 years ago
Dear god! I&#x27;m an awful programmer.
评论 #12166098 未加载
priitmaxxalmost 9 years ago
Best way to keep a job is to just be a good engineer. When people are motivated they will deobfuscare the code base.
TheCartographeralmost 9 years ago
Write it in R?
评论 #12166979 未加载
评论 #12168022 未加载
nvusuvualmost 9 years ago
wDiabloical.