Jump to content

Kludge

From Wikipedia, the free encyclopedia

This is an old revision of this page, as edited by Hyju (talk | contribs) at 15:15, 17 July 2020. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Part of the Miles Glacier Bridge, with a "kludge" (temporary fix) to make the bridge usable after earthquake damage.

A kludge or kluge (/klʌ, kl/) is a workaround or quick-and-dirty solution that is clumsy, inelegant, inefficient, difficult to extend and hard to maintain. This term is used in diverse fields such as computer science, aerospace engineering, Internet slang, evolutionary neuroscience, and government. It is similar in meaning to the naval term jury rig.

Etymology

The word has alternate spellings (kludge and kluge), pronunciations (/klʌ/ and /kl/, rhyming with judge and stooge respectively, and several proposed etymologies.

Jackson W. Granholm

The Oxford English Dictionary (2nd ed., 1989), cites Jackson W. Granholm's 1962 "How to Design a Kludge" article in the American computer magazine Datamation.[1]

kludge /kluːdʒ/ Also kluge. [J. W. Granholm's jocular invention: see first quot.; cf. also bodge v., fudge v.][2]
'An ill-assorted collection of poorly-matching parts, forming a distressing whole' (Granholm); esp. in Computing, a machine, system, or program that has been improvised or 'bodged' together; a hastily improvised and poorly thought-out solution to a fault or 'bug'. ...

The OED entry also includes the verb kludge ("to improvise with a kludge or kludges") and kludgemanship ("skill in designing or applying kludges").

Granholm humorously imagined a fictitious source for the term:

Phineas Burling is the Chief calligrapher with the Fink and Wiggles Publishing Company, Inc. . . . According to Burling, the word "kludge" first appeared in the English language in the early fifteen-hundreds. . . . The word "kludge" is, according to Burling, derived from the same root as the German "klug" (Dutch kloog, Swedish Klag, Danish Klog, Gothic Klaugen, Lettish Kladnis and Sanskrit Veklaunn), originally meaning "smart" or "witty". In the typical machinations of language in evolutionary growth, the word "Kludge" eventually came to mean "not so smart" or "pretty ridiculous". . . . Today "kludge" forms one of the most beloved words in design terminology, and it stands ready for handy application to the work of anyone who gins up 110-volt circuitry to plug into the 220 VAC source. The building of a Kludge, however, is not work for amateurs.[3]

Although OED accepts Granholm's coinage of the term, there are examples of its use before the 1960s.

Germanic sources

American Yiddish speakers use klug (קלוג) to mean "too smart by half", the reflected meaning of German klug ("clever"). This may explain the idea of clever but clumsy and temporary, as well as the pronunciation variation from German.[4]

Cf. German Kloß ("clod", diminutive Klößchen), Low Saxon klut, klute, Dutch kluit,[5] perhaps related to Low German diminutive klütje ("dumpling, clod"), Danish Jutland dialect klyt ("piece of bad workmanship, kludge"),[6] and Standard Danish kludder ("mess, disorder").

Arguments against the derivation from German klug:

  • There is no equivalent usage in German
  • Both pronunciations contain the soft "g" () not present in German
  • The word emerges in English only in the 20th century
  • The alleged Swedish translation, klag, is incorrect and would properly be spelled klok.

Paper feeder

Another hypothesis dates to 1907, "when John Brandtjen convinced two young machinists from Oslo, Norway named Abel and Eneval Kluge to service and install presses for his fledgling printing equipment firm". In 1919, the brothers invented an automatic feeder for printing presses which was a success, though "temperamental, subject to frequent breakdowns, and devilishly difficult to repair — but oh, so clever!" The Kluge brothers continued to innovate, and the company remained active as of 2017. Given that the feeder bore the Kluge name, it seems reasonable that it became a byword for over-complex mechanical contraptions.

Acronym

Other suggested folk etymologies or backronyms for kludge or kluge are: klumsy, lame, ugly, dumb, but good enough; or klutzy lashup, under-going engineering.[7]

Kludge vs kluge

The Jargon File (a.k.a. The New Hacker's Dictionary), a glossary of computer programmer slang maintained by Eric S. Raymond, differentiates kludge from kluge and cites usage examples predating 1962. Kluge seems to have the sense of overcomplicated, while kludge has only the sense of poorly done.

kludge /kluhj/

  1. n. Incorrect (though regrettably common) spelling of kluge (US). These two words have been confused in American usage since the early 1960s, and widely confounded in Great Britain since the end of World War II.
  2. [TMRC] A crock that works. (A long-ago Datamation article by Jackson Granholme [sic] similarly said: "An ill-assorted collection of poorly matching parts, forming a distressing whole.")
  3. v. To use a kludge to get around a problem. "I've kludged around it for now, but I'll fix it up properly later."[8]

This Jargon File entry notes kludge apparently derives via British military slang from Scots cludge or cludgie[9][10] meaning "a common toilet", and became confused with U.S. kluge during or after World War II.

kluge: /klooj/ [from the German 'klug', clever; poss. related to Polish & Russian 'klucz' (a key, a hint, a main point)]

  1. n. A Rube Goldberg (or Heath Robinson) device, whether in hardware or software.
  2. n. A clever programming trick intended to solve a particular nasty case in an expedient, if not clear, manner. Often used to repair bugs. Often involves ad-hockery and verges on being a crock.
  3. n. Something that works for the wrong reason.
  4. vt. To insert a kluge into a program. "I've kluged this routine to get around that weird bug, but there's probably a better way."
  5. [WPI] n. A feature that is implemented in a rude manner.[8]

This entry notes kluge, which is now often spelled kludge, "was the original spelling, reported around computers as far back as the mid-1950s and, at that time, used exclusively of hardware kluges".

Kluge "was common Navy slang in the World War II era for any piece of electronics that worked well on shore but consistently failed at sea". A summary of a 1947 article in the New York Folklore Quarterly states:

On being drafted into the navy, Murgatroyd gave his profession as "kluge maker". . . . Whenever Murgatroyd was asked what he was doing, he said he was making a kluge, and actually he was one of the world's best kluge makers. Not wanting to seem ignorant, his superiors kept giving him commendations and promotions. . . . One day . . . the admiral asked him what a kluge was – the first person ever to do so. Murgatroyd said it was hard to explain, but he would make one so the admiral could see what it was. After a couple of days, he returned with a complex object. "Interesting," said the admiral, "but what does it do?" In reply, Murgatroyd dropped it over the side of the ship. As the thing sank, it went "kluge".[11][12]

The Jargon File further includes kluge around "to avoid a bug or difficult condition by inserting a kluge", kluge up "to lash together a quick hack to perform a task".

After Granholm's 1962 "How to Design a Kludge" article popularized the kluge variant kludge, both were interchangeably used and confused. The Jargon File concludes:

The result of this history is a tangle. Many younger U.S. hackers pronounce the word as /klooj/ but spell it, incorrectly for its meaning and pronunciation, as 'kludge'. ... British hackers mostly learned /kluhj/ orally, use it in a restricted negative sense and are at least consistent. European hackers have mostly learned the word from written American sources and tend to pronounce it /kluhj/ but use the wider American meaning! Some observers consider this mess appropriate in view of the word's meaning.

Industries

Aerospace engineering

In aerospace, a kludge was a temporary design using separate commonly available components that were not flightworthy in order to proof the design and enable concurrent software development while the integrated components were developed and manufactured. The term was in common enough use to appear in a fictional movie about the US space program.[13]

Perhaps the ultimate kludge was the first US space station, Skylab. Its two major components, the Saturn Workshop and the Apollo Telescope Mount, began development as separate projects (the SWS was kludged from the S-IVB stage of the Saturn 1B and Saturn V launch vehicles, the ATM was kludged from an early design for the descent stage of the Apollo Lunar Module). Later the SWS and ATM were folded into the Apollo Applications Program, but the components were to have been launched separately, then docked in orbit. In the final design, the SWS and ATM were launched together, but for the single-launch concept to work, the ATM had to pivot 90 degrees on a truss structure from its launch position to its on-orbit orientation, clearing the way for the crew to dock its Apollo Command/Service Module at the axial docking port of the Multiple Docking Adapter.

The Airlock Module's manufacturer, McDonnell Douglas, even recycled the hatch design from its Gemini spacecraft and kludged what was originally designed for the conical Gemini Command Module onto the cylindrical Skylab Airlock Module. The Skylab project, managed by the National Aeronautics and Space Administration's Marshall Space Flight Center, was seen by the Manned Spacecraft Center (later Johnson Space Center) as an invasion of its historical role as the NASA center for manned spaceflight. Thus, MSC personnel missed no opportunity to disparage the Skylab project, calling it "the kludge".[citation needed]

Computer science

In modern computing terminology, a "kludge" (or often a "hack") is a solution to a problem, the performance of a task, or a system fix which is inefficient, inelegant ("hacky"), or even incomprehensible, but which somehow works. It is similar to a workaround, but quick and ugly. To "kludge around something" is to avoid a bug or difficulty by building a kludge, perhaps exploiting properties of the bug itself. A kludge is often used to modify a working system while avoiding fundamental changes, or to ensure backwards compatibility. Hack can also be used with a positive connotation, for a quick solution to a frustrating problem.[14][15]

A kludge is often used to fix an unanticipated problem in an earlier kludge; this is essentially a kind of cruft.

A solution might be a kludge if it fails in corner cases. An intimate knowledge of the problem domain and execution environment is typically required to build a corner-case kludge. More commonly, a kludge is a heuristic which was expected to work almost always, but ends up failing often.

A 1960's Soviet anecdote tells of a computer part which needed a slightly delayed signal to work. Rather than setting up a timing system, the kludge was to connect long coils of internal wires to slow the electrical signal.

Another type of kludge is the evasion of an unknown problem or bug in a computer program. Rather than continue to struggle to diagnose and fix the bug, the programmer may write additional code to compensate. For example, if a variable keeps ending up doubled, add later code which divides by two, rather than search for the original incorrect computation.

In computer networking, use of NAT (Network Address Translation) (RFC 1918) or PAT (Port Address Translation) to cope with the shortage of IPv4 addresses is an example of a kludge.

In FidoNet terminology, kludge refers to a piece of control data embedded inside a message.

Evolutionary neuroscience

The kludge or kluge metaphor has been adapted in fields such as evolutionary neuroscience, particularly in reference to the human brain.

The neuroscientist David Linden discusses how intelligent design proponents have misconstrued brain anatomy.

The transcendent aspects of our human experience, the things that touch our emotional and cognitive core, were not given to us by a Great Engineer. These are not the latest design features of an impeccably crafted brain. Rather, at every turn, brain design has been a kludge, a workaround, a jumble, a pastiche. The things we hold highest in our human experience (love, memory, dreams, and a predisposition for religious thought) result from a particular agglomeration of ad hoc solutions that have been piled on through millions of years of evolution history. It's not that we have fundamentally human thoughts and feelings despite the kludgy design of the brain as molded by the twists and turns of evolutionary history. Rather, we have them precisely because of that history.[16]

The research psychologist Gary Marcus's book Kluge: The Haphazard Construction of the Human Mind compares evolutionary kluges with engineering ones like manifold vacuum-powered windshield wipers – when you accelerated or drove uphill, "Your wipers slowed to a crawl, or even stopped working altogether."

For instance, the vertebrate eye's retina that is installed backward, facing the back of the head rather than the front. As a result, all kinds of stuff gets in its way, including a bunch of wiring that passes through the eye and leaves us with a pair of blind spots, one in each eye.[17]

Other uses

In John Varley's 1985 short story "Press Enter_", the antagonist, a reclusive hacker, adopts the identity Charles Kluge.

In the science fiction television series Andromeda, genetically engineered human beings called Nietzscheans use the term disparagingly to refer to genetically unmodified humans.

In a 2012 article, political scientist Steven Teles used the term "kludgeocracy" to criticize the complexity of social welfare policy in the United States. Teles argues that institutional and political obstacles to passing legislation often drive policy makers to accept expedient fixes rather than carefully thought out reforms.[18][19]

See also

References

  1. ^ Robina Mapstone (7 June 1973), Computer Oral History Collection, Jackson Granholm (PDF), Smithsonian National Museum of American History, archived from the original (pdf) on 30 November 2006
  2. ^ This OED2 defines these two kludge cognates as bodge "to patch or mend clumsily" and fudge "to fit together or adjust in a clumsy, makeshift, or dishonest manner".
  3. ^ Jackson W. Granholm (February 1962). How to Design a Kludge. Datamation. pp. 30–31.
  4. ^ "Yiddish Dictionary Online ייִדיש װערטערבוך אַפֿן װעב".
  5. ^ "Wörterbuchnetz – Grammatisch-Kritisches Wörterbuch der Hochdeutschen Mundart".
  6. ^ Hansen, Aage (1926). Knudsen, Gunnar; Kristensen, Marius (eds.). "Et par etymologier" (PDF). Danske Studier (in Danish). Nordisk Forlag: 90. Retrieved 22 December 2011.
  7. ^ "kludge - Synonyms of kludge | Antonyms of kludge | Definition of kludge | Example of kludge | Word Synonyms API | Word Similarity API". wordsimilarity.com. Retrieved 15 July 2019.
  8. ^ a b Eric S. Raymond. "The Jargon File: kludge". Retrieved 2 November 2010.
  9. ^ SND Cludgie
  10. ^ SND Cludie
  11. ^ "Obsolete Occupations".
  12. ^ Agnes Nolan Underwood (Winter 1947). Folklore from G. I. Joe, New York Folklore Quarterly. Vol. III, No. 4. New York Folklore Society. pp. 285–297.
  13. ^ Marooned, a 1969 film. Dialog between space crew and Ted approximately 30 minutes into the movie, following capsule power down. Ted says, "I'm in Huntsville kludging up a simulator of the XRV." The film was based on the 1964 novel of the same name.
  14. ^ Kidder, Tracey (1982). The Soul of a New Machine. Avon. ISBN 978-0-380-59931-8.
  15. ^ Raymond, Eric S. (2004). "The Jargon File: The Meaning of 'Hack'".
  16. ^ Linden, David J. (2007). The Accidental Mind: How Brain Evolution Has Given Us Love, Memory, Dreams, and God. Belknap Press. pp. 245–246. ISBN 978-0-674-02478-6.
  17. ^ Marcus, Gary (2008). Kluge: The Haphazard Construction of the Human Mind. Houghton Mifflin Co. pp. 4–5. ISBN 978-0-618-87964-9.
  18. ^ Teles, Steven M. (Fall 2017). "Kludgeocracy in America". National Affairs (33). Retrieved 19 November 2017.
  19. ^ Lawler, Joseph (14 December 2012). "Steven Teles Explains "Kludgeocracy"". Real Clear Policy. Retrieved 19 November 2017.