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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Crash-only Software

29 点作者 ams1将近 15 年前

6 条评论

mkramlich将近 15 年前
When I first wrote programs for a Unix box I would think of the main program as the application. But there would almost always be some sort of shell script to wrap invocation. Sometimes also a cronjob. Maybe a watchdog restart daemon process, etc. Then my understanding expanded to really consider all of this working in concert as the application, even the OS and it's configuration, and any other service dependencies. Whatever had to be a certain way, manually configured or tuned or whatever, to achieve the desired application result.<p>I think that's also where the notion of error handling comes into play because it's obvious at that level that it's not enough to just handle exceptional cases gracefully inside the body of your main program(s), and in fact, you may not want to, you may want to let certain things percolate up and cause the process to exit, if only to achieve a uniformity in how you handle edge cases.
stcredzero将近 15 年前
<i>Or imag ine a crash-only busi ness that goes bank rupt every four years as part of its busi ness plan. Every part of the enter prise is designed to scat ter and re-form, so the busi ness can with stand even an exis ten tial cri sis. It’s a fero cious com peti tor because it fears nothing.</i><p>Is that a startup or a terrorist cell?<p>In a way, the traditional edit-compile-test-debug cycle is a "deploy-only" development style. The "continuous integration" part of extreme programming is taking that even further.
metellus将近 15 年前
I'm having trouble finding a distinction between crash-only software and software with good error handling. If the software (or bank or government or whatever) crashes and then restarts gracefully and automatically, I don't see how it could be said to have crashed.
评论 #1465095 未加载
评论 #1464744 未加载
评论 #1465583 未加载
robinsloan将近 15 年前
I'm curious to know if anybody here on HN has anything to say about the analogy. How might this extend beyond the domain of programming? Where else could this pattern apply?<p>E.g. there's a terrific comment over on Snarkmarket that talks about gliders, and how they are, in a sense, always crashing.
评论 #1465426 未加载
ig1将近 15 年前
Isn't this basically a standard principle behind fault tolerant systems design (and languages like Erlang) where you just stuff the system fully of redundancy so you can crash individual parts when they go wrong and recover instantly ?
eru将近 15 年前
Is this a dupe? I read this before, probably on HN.<p>Anyway, it deserves to be re-submitted in any case.