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.

A brief history of one line fixes (2014)

96 pointsby neamaralmost 3 years ago

5 comments

thrdbndndnalmost 3 years ago
&gt; I was fairly certain the sarcasm (or satire as I prefer to call it; sounds more intellectual) would be obvious.<p>I get that the author was being sarcastic, but I don&#x27;t get what purpose they serve other than be obnoxious.
评论 #31846180 未加载
评论 #31846271 未加载
评论 #31847464 未加载
评论 #31846875 未加载
boffinAudioalmost 3 years ago
I love these. The best one I saw recently was an off-by-one error that fixed ADC read accuracy on ARM ..<p><a href="https:&#x2F;&#x2F;lore.kernel.org&#x2F;all&#x2F;20210322121923.804433865@linuxfoundation.org&#x2F;" rel="nofollow">https:&#x2F;&#x2F;lore.kernel.org&#x2F;all&#x2F;20210322121923.804433865@linuxfo...</a><p>That Wilfried (my boss at the time) got into the CONTRIBUTORS file for that fix is a constant source of amusement ..
gleennalmost 3 years ago
I find the lack of tests pretty appalling for this code. How do people ship code and never see something like a user login failure case etc. People talk a lot of trash about TDD, but I feel like a lot of senior devs make this highly egotistical &quot;I know better&quot; argument all the time and I&#x27;ve seen a lot of hot garbage for code because people were too busy to write the test.
评论 #31846706 未加载
评论 #31846668 未加载
评论 #31847918 未加载
评论 #31847499 未加载
chihuahuaalmost 3 years ago
Re: memset - &quot;It&#x27;s so trivial, it doesn&#x27;t need a test&quot; And yet... someone managed to get it wrong.
melenaosalmost 3 years ago
My personal one liner was a static keyword in a web application.<p>It was working perfectly when they was only one user and this is why it was so difficult to debug.