hook n.
A software or hardware feature included in order to
simplify later additions or changes by a user. For example, a
simple program that prints numbers might always print them in base
10, but a more flexible version would let a variable determine what
base to use; setting the variable to 5 would make the program print
numbers in base 5. The variable is a simple hook. An even more
flexible program might examine the variable and treat a value of 16
or less as the base to use, but treat any other number as the
address of a user-supplied routine for printing a number. This is
a hairy but powerful hook; one can then write a routine to
print numbers as Roman numerals, say, or as Hebrew characters, and
plug it into the program through the hook. Often the difference
between a good program and a superb one is that the latter has
useful hooks in judiciously chosen places. Both may do the
original job about equally well, but the one with the hooks is much
more flexible for future expansion of capabilities (EMACS, for
example, is all hooks). The term `user exit' is
synonymous but much more formal and less hackish.
A software or hardware feature included in order to
simplify later additions or changes by a user. For example, a
simple program that prints numbers might always print them in base
10, but a more flexible version would let a variable determine what
base to use; setting the variable to 5 would make the program print
numbers in base 5. The variable is a simple hook. An even more
flexible program might examine the variable and treat a value of 16
or less as the base to use, but treat any other number as the
address of a user-supplied routine for printing a number. This is
a hairy but powerful hook; one can then write a routine to
print numbers as Roman numerals, say, or as Hebrew characters, and
plug it into the program through the hook. Often the difference
between a good program and a superb one is that the latter has
useful hooks in judiciously chosen places. Both may do the
original job about equally well, but the one with the hooks is much
more flexible for future expansion of capabilities (EMACS, for
example, is all hooks). The term `user exit' is
synonymous but much more formal and less hackish.
Related:
- hook n.
A software or hardware feature included in order to
simplify later additions or changes by a user.
For example, a simple program that prints numbers... - brute force adj.
Describes a primitive programming style,
one in which the programmer relies on the computer's... - restriction n.
A bug or design error that limits a
program's capabilities,
and which is sufficiently egregious that nobody... - HAKMEM /hak'mem/ n.
MIT AI Memo 239 (February 1972).
A legendary collection of neat mathematical and... - restriction: n. A {bug} or design error that limits a program's
capabilities,
and which is sufficiently egregious that nobody can... - software rot n.
Term used to describe the tendency of
software that has not been used in a while to lose;
such failure may be semi-humorously ascribed to... - munching squares: n. A {display hack} dating back to the PDP-1
(ca.
1962, reportedly discovered by Jackson Wright), which... - N: /N/ quant. 1. A large and indeterminate number of objects:
"There were N bugs in that crock!" Also used in its... - TECO /tee'koh/ n.,v. obs.
1. [originally an acronym for
`[paper] Tape Editor and COrrector';
later, `Text Editor and COrrector'] n. A text editor...
From the same category:
- dumpster diving /dump'-ster di:'-ving/ n.
1. The practice
of sifting refuse from an office or technical installation to
extract confidential data,
especially security-compromising ... - shell out vi.
[Unix] To spawn an interactive
subshell from within a program (e.g.
a mailer or editor). "Bang foo runs foo in a subshell... - quux /kwuhks/ n.
[Mythically, from the Latin
semi-deponent verb quuxo,
quuxare, quuxandum iri; noun form variously `quux'... - cascade n.
1. A huge volume of spurious error-message
output produced by a compiler with poor error recovery.
Too frequently, one trivial syntax error (such as... - drop-outs n.
1. A variety of `power glitch' (see
glitch);
momentary 0 voltage on the electrical mains. 2...
