莫莉卫士
Molly Guard

原始链接: https://bookofjoe2.blogspot.com/2026/02/molly-guard.html

## “莫莉护卫”——设计中的安全网 “莫莉护卫”是一种设计元素——最初是重要按钮上的物理保护罩——旨在防止意外激活。 传说这个名字源于一个孩子“莫莉”,她在参观数据中心时反复按下了一个关键按钮。 起初这是一种硬件功能(例如凹陷的按钮或SIM卡弹出器),但这个概念也延伸到了软件中。“你确定吗?”对话框和Ctrl+Alt+Del之类的组合键充当软件莫莉护卫,需要用户有意的操作。 有趣的是,“反向莫莉护卫”也存在——由*无操作*触发的自动化操作,防止系统仅仅停止运行。 作者强调了找到这些功能时的轻松感,回忆起因未响应提示而导致无人值守机器停止运行的沮丧。 最终,“莫莉护卫”以其所有形式,代表了一种防止错误并确保系统按预期运行的周到方法。

相关文章

原文

From Marcin Wichary's Unsung:

..........................................

Old-school computing has the term "molly guard": it's the little plastic safety cover you have to move out of the way before you press some button of significance.

Anecdotally, this was named after Molly, an engineer's daughter who was invited to a datacenter and promptly pressed a big red button, as one would.

Then she did it again later the same day.

You might recognize molly guards from any aerial combat movie you ever watched:

And some vestigial forms of molly guards exist everywhere in civilian hardware, too: from recessed buttons, through plastic ridges around keys, 

to something like a SIM card ejection hole:

Of course, molly guards happen in software, too: from the cheapest "are you sure?" dialogs through extra modifier keys (in Ctrl+Alt+Del, the Ctrl and Alt keys are the guards).

But it's also worth thinking of reverse molly guards: buttons that will press themselves if you don't do anything after a while.

I see them sometimes, and always consider them very thoughtful. This is the first example that comes to my mind:

There is no worse feeling for a programmer than waking up, walking up to the machine that was supposed to work through the night, and seeing it did absolutely nothing, stupidly waiting for hours for a response to a question that didn't even matter.

联系我们 contact @ memedata.com