请输入您要查询的百科知识:

 

词条 Cruft
释义

  1. History

  2. Software

  3. Computer hardware

  4. See also

  5. References

  6. External links

{{about|a computing term}}

Cruft is a jargon word for anything that is left over, redundant and getting in the way. It is used particularly for defective, superseded, useless, superfluous, or dysfunctional elements in computer software.

History

Around 1958, the term was used in the sense of "garbage" by students frequenting the Tech Model Railroad Club (TMRC) at the Massachusetts Institute of Technology (MIT).[1] In the 1959 edition of the club's dictionary, it was defined as "that which magically amounds in the Clubroom just before you walk in to clean up. In other words, rubbage".[2] Its author Peter Samson later explained that this was meant in the sense of "detritus, that which needs to be swept up and thrown out. The dictionary has no definition for 'crufty,' a word I didn't hear until some years later".[2] Cruft can also refer to alumni who remain socially active at MIT.[3]

The origin of the term is uncertain, but it may be derived from Harvard University's Cruft Laboratory (built in 1915 as a gift from a donor named Harriet Otis Cruft[4]), which was the Harvard Physics Department's radar lab during World War II. As late as the early 1990s, unused technical equipment could be seen stacked in front of Cruft Hall's windows. According to students, if a place filled with useless machinery is called Cruft Hall, the machinery itself must be cruft. This image of "discarded technical clutter" would then have quickly migrated from hardware to software.{{cn|date=December 2015}} Cruft may also be a play on the archaic medial "s", rendering "crust" as "cruſt".[5] In the TMRC dictionary, the relation to the term "crud" (dirt, crap) is pointed out by humorously defining the better known word (crud) by the more obscure one (cruft).[2]

The Oxford English Dictionary offers an etymology of the word "crufty" and cites usage in Jamaica, where the word meant rough, coarse-looking or scabby, perhaps acting as a modified version of "scruffy".

Software

The FreeBSD handbook uses the term to refer to leftover or superseded object code that accumulates in a folder or directory when software is recompiled and new executables and data files produced.[6] Such cruft, if required for the new executables to work properly, can cause the BSD equivalent of dependency hell.[7] The word is also used to describe instances of unnecessary, leftover or just poorly written source code in a computer program that is then uselessly, or even harmfully, compiled into object code.[8]

Cruft accumulation may result in technical debt, which can subsequently make adding new features or modifying existing features—even to improve performance—more difficult and time-consuming.

In the context of Internet or Web addresses (Uniform Resource Locators or "URLs"), cruft refers to the characters that are relevant or meaningful only to the people who created the site, such as implementation details of the computer system which serves the page. Examples of URL cruft include filename extensions such as .php or .html, and internal organizational details such as /public/ or /Users/john/work/drafts/.[9]

Computer hardware

Cruft may also refer to unused and out-of-date computer paraphernalia, collected through upgrading, inheritance, or simple acquisition, both deliberate and through circumstance.[5] This accumulated hardware, however, often has benefit when IT systems administrators, technicians, and the like have need for critical replacement parts. An unused machine or component similar to a production unit could allow near-immediate restoration of the failed unit, as opposed to waiting for a shipped replacement.

See also

  • Bloatware
  • Dead code removal, the automatic removal of unnecessary code by compilers
  • Duplicate code
  • Feature creep
  • Muda (Japanese term)
  • Spaghetti code
  • Junk DNA
  • Vestigial organ

References

1. ^{{cite book |first=Steven |last=Levy |authorlink=Steven Levy |title=Hackers: Heroes of the Computer Revolution |edition=25th Anniversary |publisher=O'Reilly Media |date=2010 |isbn=9781449393748 |url=https://books.google.com/books?id=mShXzzKtpmEC&pg=PA8&dq=%22garbage+was+called+cruft%22 |page=8}}
2. ^{{cite web |first=Peter |last=Samson |authorlink=Peter Samson |url=http://www.gricer.com/tmrc/dictionary1959.html |title=AN ABRIDGED DICTIONARY of the TMRC LANGUAGE |orig-year=June 1959 |date=2005 |accessdate=30 May 2018}}
3. ^{{cite web|url=http://mitadmissions.org/blogs/entry/speaking_mitese|title=Speaking MITese |publisher=Massachusetts Institute of Technology |accessdate=8 June 2016}}
4. ^{{cite web|url=http://www.thecrimson.com/article/1916/3/10/bronze-tablet-erected-in-cruft-memorial/|title=Bronze Tablet Erected in Cruft Memorial Laboratory|website=thecrimson.com|accessdate=26 November 2014}}
5. ^{{cite web | url=http://catb.org/jargon/html/C/crufty.html | title=crufty | work=The Jargon File, version 4.4.7}}
6. ^{{cite web | url=http://www.freebsd.org/doc/en/books/handbook/makeworld.html | title=20.4.16.6. What do I do if something goes wrong? | work=FreeBSD Handbook |edition=3rd | accessdate=2007-08-18}}
7. ^{{cite web |url=http://disfunksioneel.blogspot.co.uk/2011/04/linux-software-dependencies.html |title=A nice picture of (dependency) hell |type=blog |publisher=disfunksioneel |accessdate=30 May 2018}}
8. ^{{cite web |url=http://searchsoftwarequality.techtarget.com/definition/cruft |title=Cruft |publisher=TechTarget |accessdate=30 May 2018}}
9. ^{{cite web | url=http://www.w3.org/Provider/Style/URI | title=Hypertext Style: Cool URIs don't change |last=Berners-Lee |first=Tim |work=W3C Style |year=1998 |accessdate=2007-08-18 | quote={{nowrap|What makes a cool URI? /}} {{nowrap|A cool URI is one which does not change. /}} {{nowrap|What sorts of URI change? /}} {{nowrap|URIs don't change: people change them.}}}}

External links

{{wiktionary}}
  • In the Beginning...was the Command Line - article by Neal Stephenson which includes coverage of the "cruft" concept.
  • Verity Stob's Index of Cruftidity at Dr. Dobb's Journal

2 : Anti-patterns|Pejoratives

随便看

 

开放百科全书收录14589846条英语、德语、日语等多语种百科知识,基本涵盖了大多数领域的百科知识,是一部内容自由、开放的电子版国际百科全书。

 

Copyright © 2023 OENC.NET All Rights Reserved
京ICP备2021023879号 更新时间:2024/9/21 22:09:35