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.

"No way to prevent this" say users of only language where this regularly happens

208 pointsby tbillington12 months ago

16 comments

fnordian_slip12 months ago
Just in case someone needs the reference, the onion uses &#x27;&quot;no way to prevent this&quot; says only nation where this regularly happens&#x27; as a reoccurring article at every major school shooting[0], to highlight the frequency of such events and the fact that nothing has really changed since the last one.<p>[0] <a href="https:&#x2F;&#x2F;www.theonion.com&#x2F;no-way-to-prevent-this-says-only-nation-where-this-r-1848971668" rel="nofollow">https:&#x2F;&#x2F;www.theonion.com&#x2F;no-way-to-prevent-this-says-only-na...</a>
评论 #40441144 未加载
评论 #40438397 未加载
评论 #40439092 未加载
pdimitar12 months ago
I&#x27;ve been doing programming for ~31 years in total and ~22 years professionally and at this point I have lost all hope that programmers at large will ever gain these mythic qualities called &quot;self-reflection&quot; and &quot;introspection&quot;.<p>Truth is, these people are simply afraid for their cozy jobs, that&#x27;s all there is to it. Derivative states of mind like Stockholm Syndrome and Sunk Cost Fallacy are quite normal to appear in these conditions.<p>On OP: I could not agree more. People always downplay their fuck-ups, that&#x27;s sadly part of being a Homo Sapiens, but the lack of awareness is still both despairing and hilarious to watch.<p>And finally, C&#x2F;C++&#x27;s niches have decreased but these people will not adapt, of course. Almost anything I&#x27;ve done with those languages 15-20 years can today be done with Rust. Or if you are on a tight time budget -- Golang, and you still won&#x27;t lose too much speed.<p>But sure, &quot;nothing can be done, these things sometimes happen&quot;. Sigh.
评论 #40438903 未加载
评论 #40438768 未加载
评论 #40439026 未加载
评论 #40439043 未加载
评论 #40439096 未加载
评论 #40438734 未加载
评论 #40438968 未加载
isoprophlex12 months ago
Maybe C programmers need some more thoughts and prayers at deployment time?
评论 #40438621 未加载
评论 #40438939 未加载
评论 #40438819 未加载
nomilk12 months ago
More broadly:<p>&gt; &quot;No way to prevent $THIS&quot; say users of only language where $THIS regularly happens<p>A weird psychological quirk I&#x27;ve noticed (of myself, and others) is we&#x27;ll often exhibit a sort of &#x27;programming language xenophobia&#x27;, where we apathetically accept (or don&#x27;t even notice) unpleasantries of our language of choice, yet be quite averse to the unpleasantries of other languages.<p>Maybe it&#x27;s due to sunk cost; time&#x2F;effort has already been spent finding work arounds for or adapting to the warts of our native tongue, whereas doing so for unfamiliar languages would require additional effort.
评论 #40438606 未加载
评论 #40438759 未加载
评论 #40438565 未加载
评论 #40438883 未加载
评论 #40438593 未加载
评论 #40439577 未加载
评论 #40438643 未加载
cookiengineer12 months ago
Alternative headline should be &quot;But I have been taught that using C++ makes me the better programmer&quot; because the stereotypes of echo chambers on the internet raised a lot of unreflected programmers to be this way.<p>There is a place for C, where there&#x27;s no alternative. But that place is where 99% of programmers never work, because they are not doing kernel nor firmware development (which, in the meantime, also has a lot of support by and for memory safe VMs and languages).<p>The issue I have with this narcisstic fatigue (similar to the author&#x27;s point I assume) is that there is no reflection when they fuck up a codebase.<p>The best code is the code that is safe and easy to read, and doesn&#x27;t need to use &quot;clever tricks&quot; that beginners cannot understand.<p>If you are using some tricks for type casting to implement your ideas into code, you probably should not write code.<p>Code should be dumb and easily maintainable. If it is not, you made the wrong choice for the programming language.
评论 #40438681 未加载
评论 #40438495 未加载
评论 #40438776 未加载
评论 #40438461 未加载
评论 #40438739 未加载
评论 #40438589 未加载
akoboldfrying12 months ago
Some of the HN discussion about whether &quot;new projects in C should be allowed&quot; is moot: Fluent Bit was imported into git in 2015 [0] (a few months <i>before</i> Rust&#x27;s first public release), and may be considerably older than that for all I know.<p>I suppose incidents like this actually do give a reason to &quot;rewrite it in Rust&quot;, when &quot;it&quot; is &quot;widely deployed infrastructure written in C&quot;. OTOH, I&#x27;m sure there were plenty of non-memory-safety bugs introduced and later fixed over the years, and rewriting in Rust will recapitulate that subset of bugs.<p>[0] <a href="https:&#x2F;&#x2F;github.com&#x2F;fluent&#x2F;fluent-bit&#x2F;commit&#x2F;49269c5ec3c74411943e362cfef85052665ae97f">https:&#x2F;&#x2F;github.com&#x2F;fluent&#x2F;fluent-bit&#x2F;commit&#x2F;49269c5ec3c74411...</a>
评论 #40440199 未加载
diego_sandoval12 months ago
I thought it was going to be about JS and npm, given some of their fiascos [1][2][3]<p>[1] <a href="https:&#x2F;&#x2F;qz.com&#x2F;646467&#x2F;how-one-programmer-broke-the-internet-by-deleting-a-tiny-piece-of-code" rel="nofollow">https:&#x2F;&#x2F;qz.com&#x2F;646467&#x2F;how-one-programmer-broke-the-internet-...</a><p>[2] <a href="https:&#x2F;&#x2F;www.bleepingcomputer.com&#x2F;news&#x2F;security&#x2F;dev-corrupts-npm-libs-colors-and-faker-breaking-thousands-of-apps&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.bleepingcomputer.com&#x2F;news&#x2F;security&#x2F;dev-corrupts-...</a><p>[3] <a href="https:&#x2F;&#x2F;www.sonatype.com&#x2F;blog&#x2F;everything-matters-why-the-npm-package-sparked-controversy" rel="nofollow">https:&#x2F;&#x2F;www.sonatype.com&#x2F;blog&#x2F;everything-matters-why-the-npm...</a>
评论 #40438769 未加载
评论 #40438691 未加载
consp12 months ago
Oh no ... a bug in a C program. This easy bashing on existing C programs is getting boring and annoying.<p>Write a new userspace program? Use <i>anything</i> else, all language shave flaws so pick one which supports the features you need. Want to quickly write something because you are not allowed to rewrite the entire ecosystem you need into a new language since the project will go massively over budged: Use what you can and what&#x27;s available and accept the risks, which is the 99th percentile of software.
mikewarot12 months ago
Free Pascal and Lazarus which is a GUI built on it support strings that don&#x27;t require manual allocation and are counted and reference counted. A huge amount of grief would go away if that library could be supported in the Linux kernel somehow, and all of the string parameters in system calls ported.
nubinetwork12 months ago
&gt; a vulnerability in HTTP parsing code that allows for heap corruption and arbitrary code execution by making a HTTP GET request with a megabyte of the letter &#x27;A&#x27; in its body<p>You mean a buffer overflow? Why write so technical then dumb down something that&#x27;s pretty obvious.
评论 #40439078 未加载
davedx12 months ago
Thoughts and prayers
subjectsigma12 months ago
I bet this person felt really smart posting about this problem that <i>surely</i> nobody has ever thought of before
评论 #40444579 未加载
1vuio0pswjnm712 months ago
Terrible analogy. School shootings are not the result of mistakes. They are intentional acts.
Simon_O_Rourke12 months ago
Prince Marcel O&#x27;Keefe must be C royalty!
KaiserPro12 months ago
Needs more furries.
评论 #40438411 未加载
mjevans12 months ago
The headline is misleadingly focusing on a soundbite out of the full quote.<p>&quot;It&#x27;s a shame, but what can we do? There really isn&#x27;t anything we can do to prevent memory safety vulnerabilities from happening if the programmer doesn&#x27;t want to write their code in a robust manner.&quot; -- Some (uncredited?) C programmer.<p>Does C have more footguns as a low level language? Of course. That&#x27;s part of the freedom of bringing only the baggage a project needs. Sadly, like many dangerous or sharp tools, incorrect use will lead to harms.<p>If someone has a choice, a safer more modern language can accommodate less skilled practitioners.
评论 #40438376 未加载
评论 #40438538 未加载
评论 #40438313 未加载
评论 #40438990 未加载
评论 #40438486 未加载
评论 #40438307 未加载
评论 #40438365 未加载
评论 #40438410 未加载
评论 #40438394 未加载
评论 #40438418 未加载
评论 #40438482 未加载
评论 #40438432 未加载
评论 #40438415 未加载