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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Is user a monkey?

147 点作者 mindaugas超过 14 年前

13 条评论

lesterbuck超过 14 年前
In 1993, I was taking a course in Software Verification &#38; Validation at the Univ of Houston Clear Lake, next door to Johnson Space Center and down the street from the IBM division doing the Space Shuttle software. That is the group that is CMM Level 5 and gets a bug report about once a year or so. It happened that the instructor of this course was a mid-level IBM tech guy in that organization. And he had stories...<p>After Challenger blew up, NASA demanded that every shuttle vendor report the cumulative probability that their component of the system would lead to a loss of vehicle accident. NASA took all those probabilities and came up with their best guess of the probability of a loss of vehicle accident for each flight. While Feynman praised the software process for the shuttle, the software group still had to come up with their number. So the instructor said they took all their statistics from the (individual, unique) software loads for each historical flight, and included the failures from their loss of vehicle accidents.<p>"Say what? The shuttle software hasn't had any loss of vehicle accidents." Well, turns out it had. Each unique software load for each mission is tested and trained against for many months before it flies. Sometimes they fail, just not yet in actual flight. For example, apparently one time the shuttle crew was practicing launch aborts, where the launch is aborted just after clearing the pad and the orbiter lands like a glider. About the only crew member involved in that is the pilot. Everyone else is just strapped in being bored, and after a few hours of sitting still, the co-pilot got "frisky." During the launch phase, he randomly tapped some keys on his keypad and ... BOOM! Loss of vehicle accident.<p>Monkeys at work! I suppose it could be argued that with all the bumping around during the launch phase, a stray hand could accidentally "fuzz" that keypad.
评论 #1862403 未加载
kevingadd超过 14 年前
Probably related: <a href="http://folklore.org/StoryView.py?project=Macintosh&#38;story=Monkey_Lives.txt" rel="nofollow">http://folklore.org/StoryView.py?project=Macintosh&#38;story...</a>
pgbovine超过 14 年前
when i was doing Palm OS programming back in the stone age, i remember the simulator had a "monkey testing mode", where it would just generate GUI events randomly. it was actually quite useful for uncovering sporadic crashes.<p>EDIT: ha, i found a reference, they're called Gremlins<p><a href="http://users.jyu.fi/~mweber/teaching/docs/palmos/book/ch10.htm#P370_19896" rel="nofollow">http://users.jyu.fi/~mweber/teaching/docs/palmos/book/ch10.h...</a>
评论 #1861051 未加载
评论 #1861264 未加载
评论 #1860996 未加载
adk超过 14 年前
This is referring to a test tool called The Monkey: <a href="http://developer.android.com/guide/developing/tools/monkey.html" rel="nofollow">http://developer.android.com/guide/developing/tools/monkey.h...</a>
评论 #1864778 未加载
kd0amg超过 14 年前
I guess this goes up there with Be's is_computer_on_fire()<p><a href="http://www.tycomsystems.com/beos/BeBook/The%20Kernel%20Kit/System.html" rel="nofollow">http://www.tycomsystems.com/beos/BeBook/The%20Kernel%20Kit/S...</a>
评论 #1861879 未加载
mlni超过 14 年前
Skype must to have a similarly named function in it. In skype chat window, when you press random keys on a keyboard in groups, the other side sees a cat icon in the chat. Kind of neat of them to think of that.
评论 #1864356 未加载
tlholaday超过 14 年前
More euphonious in a ternary operator than an if clause:<p>value = isUserAMonkey() ? left : right ;<p>if (isUserAMonkey()) { ... }<p>For an if clause, I prefer userIsAMonkey:<p>if (userIsAMonkey) { ... }
评论 #1863575 未加载
scrrr超过 14 年前
Make sure to not use this method when targeting anything below API Level 8.
AttentionStepFn超过 14 年前
Always assume yes, at least when it comes to stress testing.
thefool超过 14 年前
What does it return?
评论 #1861568 未加载
评论 #1861383 未加载
sabat超过 14 年前
"The customer is not an idiot. She is your wife." --Jean-Louis Gassee
评论 #1862027 未加载
adolfoabegg超过 14 年前
Infinite monkey theorem applies too I think... <a href="http://en.wikipedia.org/wiki/Infinite_monkey_theorem" rel="nofollow">http://en.wikipedia.org/wiki/Infinite_monkey_theorem</a>
nuclear_eclipse超过 14 年前
Doesn't seem to work well, I ran this code on my mom's phone and it returned False. I'll have submit a bug report when I get home...
评论 #1864732 未加载