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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Short Thoughts on Computers and Programming

63 点作者 stargrave超过 2 年前

13 条评论

mikewarot超过 2 年前
&gt;Continuing a legacy is an honorable task, except in programming.<p>This is the most important of the items in the list. The &quot;upgrade or you&#x27;re unclean&quot; ethos has some very deep roots.<p>It goes all the way down to the security model of our operating systems. It was perfectly reasonable to assume that a user knew what they were doing with their own files back in the days when Unix was written. That wasn&#x27;t assumed in the world of mainframes, which were designed to multiplex hardware across tens, hundreds, or even thousands of jobs.<p>In mainframes, your job is explicitly given resources to use and a run time environment. No matter what went wrong, a job run for Acme Inc couldn&#x27;t corrupt the files of Bob&#x27;s Distributor.<p>We don&#x27;t have that... we&#x27;ve been lead to believe that we just have to be pure enough, our code has to be perfect enough, and defect free, in order to have safety. We blame everything except the OS, mostly because we don&#x27;t want to cast doubt on the wisdom of Linus, and the sanctity of Linux.<p>We recreate the mainframe model, over and over, in part, not in whole. I&#x27;ll paraphrase Greenspun&#x27;s 10th rule[1]<p><pre><code> Any sufficiently popular computing environment contains an ad hoc, informally-specified, bug-ridden, slow implementation of capability based security. </code></pre> That&#x27;s why we have Virtual Machines, Containers, and now WASM... which I hope actually manages to fend off the stupidity of letting an application decide which files to access.<p>We need to make better choices. Legacies are a choice, lots of old stuff is tossed by kids all the time, the legacies are the good things kept from the past. Keeping legacies alive is a choice.<p>[1] <a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Greenspun%27s_tenth_rule" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Greenspun%27s_tenth_rule</a>
评论 #32954191 未加载
watashiato超过 2 年前
&gt; Never changing the defaults is like living in a motel your whole life.<p>Seldom changing the defaults is like being at home in many places.
CrLf超过 2 年前
&quot;The future was better in the past.&quot;<p>Perhaps this is one of the reasons retro is seeing such a resurgence (pun intended) these days.
评论 #32951480 未加载
jansan超过 2 年前
&quot;Affordances are so called because many contemporary UI designers have deemed them too expensive.&quot;<p>I do not understand this. I know what &quot;affordable&quot; means and that it must be a word play, but I have no idea what the other meaning could be.
评论 #32950026 未加载
评论 #32950018 未加载
评论 #32950915 未加载
评论 #32950081 未加载
tonetheman超过 2 年前
Write your code like you will need to debug it at 2:00 am drunk
cafard超过 2 年前
&quot;Hypocrisy is taking pride in Unix shell scripts kept since the 1990:s while scoffing at banks running Cobol.&quot;<p>Well, maybe obliviousness is.
einpoklum超过 2 年前
&gt; In the future, when computers are at long last voice controlled, open office floor plans will finally disappear.<p>More likely we will all get sore throats talking at computers before this happens...
评论 #32950364 未加载
评论 #32949858 未加载
dahart超过 2 年前
&gt; It&#x27;s important to consider ergonomics in sedentary jobs: every now and then, programmers should shift a bit.<p>I’m curious if this was an intentional pun? I thought maybe in addition to moving now and then, it’s subtly suggesting to write low-level code? Having taken a recent career trajectory from high level code to assembly &amp; hardware, I’m being exposed to reasons why practicing some bit-level hacking is good for my understanding of how the machine works. Maybe that wasn’t the intent here and I’m seeing faces in the clouds. :P
评论 #32953191 未加载
ruslan超过 2 年前
&quot;The mouse is a much faster input device than the keyboard: the latter is almost always stationary.&quot;<p>What ?
评论 #32951593 未加载
评论 #32950252 未加载
everybodyknows超过 2 年前
&gt; Never changing the defaults is like living in a motel your whole life.<p>Maintaining an ideal set of defaults is like trying to arrange your favorite lamp and flower vases in every hotel room where your job requires you to spend the night.
revskill超过 2 年前
(Fix) bugs is more important than adding (new) features.
enahs-sf超过 2 年前
Love the domain name. Gave me a chuckle.
eimrine超过 2 年前
&gt; Programming is one of the few crafts that will only make you dirty on the inside.<p>What are any others examples? Killing people?
评论 #32952916 未加载