JargonFile/original/html/D/DWIM.html
2014-03-27 18:54:56 +00:00

30 lines
4.2 KiB
HTML
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>DWIM</title><link rel="stylesheet" href="../../jargon.css" type="text/css"/><meta name="generator" content="DocBook XSL Stylesheets V1.61.0"/><link rel="home" href="../index.html" title="The Jargon File"/><link rel="up" href="../D.html" title="D"/><link rel="previous" href="dusty-deck.html" title="dusty deck"/><link rel="next" href="dynner.html" title="dynner"/></head><body><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">DWIM</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="dusty-deck.html">Prev</a> </td><th width="60%" align="center">D</th><td width="20%" align="right"> <a accesskey="n" href="dynner.html">Next</a></td></tr></table><hr/></div><dt><a id="DWIM"/><dt xmlns="" id="DWIM"><b>DWIM</b>: <span xmlns="http://www.w3.org/1999/xhtml" class="pronunciation">/dwim/</span></dt></dt><dd><p> [acronym, &#8216;Do What I Mean&#8217;] </p></dd><dd><p> 1. <span class="grammar">adj.</span> Able to guess, sometimes
even correctly, the result intended when bogus input was provided. </p></dd><dd><p> 2. <span class="grammar">n. obs.</span> The BBNLISP/INTERLISP
function that attempted to accomplish this feat by correcting many of the
more common errors. See <a href="../H/hairy.html"><i class="glossterm">hairy</i></a>. </p></dd><dd><p> 3. Occasionally, an interjection hurled at a balky computer, esp.
when one senses one might be tripping over legalisms (see
<a href="../L/legalese.html"><i class="glossterm">legalese</i></a>). </p></dd><dd><p> 4. Of a person, someone whose directions are incomprehensible and
vague, but who nevertheless has the expectation that you will solve the
problem using the specific method he/she has in mind.</p></dd><dd><p>Warren Teitelman originally wrote DWIM to fix his typos and spelling
errors, so it was somewhat idiosyncratic to his style, and would often make
hash of anyone else's typos if they were stylistically different. Some
victims of DWIM thus claimed that the acronym stood for &#8216;Damn
Warren&#8217;s Infernal Machine!'.</p><p>In one notorious incident, Warren added a DWIM feature to the command
interpreter used at Xerox PARC. One day another hacker there typed
<b class="command">delete *$</b> to free up some disk space. (The
editor there named backup files by appending <b class="command">$</b> to the original file name, so he was trying to
delete any backup files left over from old editing sessions.) It happened
that there weren't any editor backup files, so DWIM helpfully reported
<b class="command">*$ not found, assuming you meant 'delete
*'.</b> It then started to delete all the files on the disk! The
hacker managed to stop it with a <a href="../V/Vulcan-nerve-pinch.html"><i class="glossterm">Vulcan nerve pinch</i></a>
after only a half dozen or so files were lost.</p><p>The disgruntled victim later said he had been sorely tempted to go to
Warren's office, tie Warren down in his chair in front of his workstation,
and then type <b class="command">delete *$</b> twice.</p><p>DWIM is often suggested in jest as a desired feature for a complex
program; it is also occasionally described as the single instruction the
ideal computer would have. Back when proofs of program correctness were in
vogue, there were also jokes about <span class="firstterm">DWIMC</span> (Do What I Mean, Correctly). A related
term, more often seen as a verb, is DTRT (Do The Right Thing); see
<a href="../R/Right-Thing.html"><i class="glossterm">Right Thing</i></a>.</p></dd><div class="navfooter"><hr/><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="dusty-deck.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="../D.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="dynner.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">dusty deck </td><td width="20%" align="center"><a accesskey="h" href="../index.html">Home</a></td><td width="40%" align="right" valign="top"> dynner</td></tr></table></div></body></html>