Deprecation Explained

Deprecation is the discouragement of use of something human-made, such as a term, feature, design, or practice. Typically something is deprecated because it is claimed to be inferior compared to other options available.

Something may be deprecated when it cannot be controlled, such as a term. Even when it can be controlled, something may be deprecated even when it might be useful for example, to ensure compatibility and it may be removed or discontinued at some time after being deprecated.[1]

Etymology

In general English usage, the verb "to deprecate" means "to express disapproval of (something)". It derives from the Latin deponent verb deprecari, meaning "to ward off (a disaster) by prayer".

An early documented usage of "deprecate" in this sense is in Usenet posts in 1984, referring to obsolete features in 4.2BSD and the C programming language.[2] An expanded definition of "deprecate" was cited in the Jargon File in its 1991 revision,[3] and similar definitions are found in commercial software documentation from 2014 and 2023.[4]

Software

While a deprecated software feature remains in the software, its use may raise warning messages recommending alternative practices. Deprecated status may also indicate the feature will be removed in the future. Features are deprecated, rather than immediately removed, to provide backward compatibility and to give programmers time to bring affected code into compliance with the new standard.

Notable reasons for deprecation include:

ReasonExample(s)
The feature has been replaced by a more powerful alternative feature.The Linux kernel contains two modules to communicate with Windows networks: smbfs and cifs. The latter provides better security, supports more protocol features, and integrates better with the rest of the kernel. Since the inclusion of cifs, smbfs has been deprecated.[5]
The feature contains a design flaw, frequently a security flaw, and so should be avoided, but existing code depends upon it.
  • In the simple C, use of the standard function gets can introduce a buffer overflow into the program that uses it.[6]
  • The Java API methods Thread.stop, .suspend and .resume are further examples.[7]
The feature is considered extraneous and will be removed in a planned future version.Early versions of the Web markup language HTML included a FONT element to allow page designers to specify the font in which text should be displayed. With the release of Cascading Style Sheets and HTML 4.0, the FONT element became extraneous, and detracted from the benefits of noting structural markup in HTML and graphical formatting in CSS. Thus, the FONT element was deprecated in the Transitional HTML 4.0 standard, and eliminated in the Strict variant.[8]
A planned future version of the software will make major structural changes, making it impossible or impractical to support older features.
  • When Apple Inc. planned the transition from Mac OS 9 to Mac OS X, it created a subset of the older system's API which would support most programs with minor changes: the Carbon library (which has since been deprecated itself), available in both Mac OS 9 and Mac OS X. Programmers who were, at the time, chiefly using Mac OS 9, could ensure that their programs would run natively on Mac OS X by using only the API functions supported in Carbon. Other Mac OS 9 functions were deprecated, and were never supported natively in Mac OS X.[9]
  • Naming consistency: A library may expose names that are inconsistent. For example, an API that uses both "color" and "colour" is inconsistent. To enforce consistency, all identifiers using one spelling would be duplicated for the other spelling and identifiers using the unfavored spelling deprecated.
A feature that once was available independently is combined with its co-feature.In VLC Media Player, VLC used to stand for "VideoLan Client", and a separate "VideoLan Server" was available as its co-feature. Both the client and server became available in the same package, and so getting one independently would be impractical.[10]

Other usage

A building code example is the use of ungrounded ("2-prong") electrical receptacles (UK English: "unearthed"). Over time, these older devices were widely deprecated in favor of safer grounded ("3-prong") receptacles. The older, ungrounded receptacles were still permitted in many places by "grandfathering" them in existing electrical wiring, while prohibiting them for new installations. Thus, though ungrounded receptacles may still be available for legal purchase in a location where they are obsolete, they would generally be intended only for repairs to existing older electrical installations.

In writing and editing, usage of a word may be deprecated because it is ambiguous, confusing, or offensive to some readers. For example, the words sanction and inflammable may be misinterpreted because they have auto-antonymic or self-contradictory meanings; writing style guides often recommend substituting other words that are clearly understood and unambiguous. Some word usages that have acquired different connotations over time, such as gay or colored, may be deprecated as obsolete in formal writing.

In technical standards, use of a certain clause may be discouraged or superseded by new clauses. As an example, in the Ethernet standard IEEE 802.3-2012, Clause 5 (Layer Management) is "deprecated" by Clause 30 (Management), except for 5.2.4.

Deprecation may also occur when a technical term becomes obsolete, either through change or supersession. An example from paleontology is the previously deprecated term Brontosaurus: before being recognized once again as a unique genus,[11] it was considered a popular, yet deprecated, name for the genus Apatosaurus.[12] Some deprecated terms in medicine are consumption (tuberculosis), grippe (influenza), and apoplexy (stroke). In chemical nomenclature, the international standards organization IUPAC (International Union of Pure and Applied Chemistry) has deprecated the term "methyl ethyl ketone", and now recommends using the term "ethyl methyl ketone" instead.[13]

See also

External links

Notes and References

  1. Web site: JEP 277: Enhanced Deprecation. openjdk.java.net. 2018-02-09. 19 September 2018. https://web.archive.org/web/20180919074206/http://openjdk.java.net/jeps/277. live.
  2. Web site: Shea . Ammon . A New Meaning of 'Deprecate' . 2023-03-01 . Words We're Watching . Merriam-Webster.
  3. Book: The Jargon File, Version 2.9.10 . July 1992 . Raymond . Eric S. . Eric S. Raymond . Steele . Guy L. . Guy L. Steele Jr. . . 2023-03-01.
  4. Web site: Stewart . Meghan . 2023-02-27 . Windows client features lifecycle . 2023-03-01 . What's new in Windows . Microsoft.
  5. Web site: 2006-05-15 . On the future of smbfs . 2023-03-01 . LWN.net.
  6. Book: GNU. The GNU C Library. Line Input. https://www.gnu.org/software/libc/manual/html_node/Line-Input.html#Line-Input. GNU. 2008-08-02. Deprecated function: char * gets (char *s). ... The gets function is very dangerous because it provides no protection against overflowing the string s. The GNU library includes it for compatibility only. You should always use fgets or getline instead.. 26 January 2021. https://web.archive.org/web/20210126185245/http://www.gnu.org/software/libc/manual/html_node/. live.
  7. Web site: Java Thread Primitive Deprecation. Oracle. 13 May 2011. 15 October 2011. https://web.archive.org/web/20111015170714/http://download.oracle.com/javase/7/docs/technotes/guides/concurrency/threadPrimitiveDeprecation.html. live.
  8. Book: Musciano . Chuck . HTML & XHTML : the definitive guide . Kennedy . Bill . 2007 . O'Reilly . 978-0-596-52732-7 . 6th . Beijing . HTML’s Obsolete Expanded Font Handling . 77574682 . https://www.oreilly.com/library/view/html-xhtml/0596527322/ch04s10.html.
  9. News: Simenel . Éric . 2000 . Carbonization 101 . 16 . MacTech . 12 . 2023-03-01.
  10. Web site: The cross-platform streaming solution . 2023-03-01 . VideoLAN.
  11. Web site: Brontosaurus Finally Validated as a Distinct Dinosaur . . 27 June 2020 . 9 April 2020 . https://web.archive.org/web/20200409073314/https://abcnews.go.com/Technology/brontosaurus-finally-validated-distinct-dinosaur-species/story?id=30134546 . live .
  12. Book: Upchurch, Paul . Barrett, Paul M. . Dodson, Peter . Weishampel, David B. . Dodson, Peter . Osmólska, Halszka . The Dinosauria . limited. 2nd . 2004. University of California Press . Berkeley . 0-520-24209-2 . 259–322 . Sauropoda.
  13. Book: Nomenclature of Organic Chemistry : IUPAC Recommendations and Preferred Names 2013 (Blue Book) . . 2014 . Cambridge . 725 . 10.1039/9781849733069-FP001 . 1 June 2024 . 978-0-85404-182-4.