Oxbow code

Oxbow code

In computer programming, oxbow code refers to fragments of program code that were once needed but which are now never used. Such code is typically formed when a program is modified, either when an item is superseded with a newer version but the old version is not removed, or when an item is removed or replaced, but the item's supporting code is not removed.

Such code is normally removed unless sufficiently amusing or educational.

Similarly, variables and data structures can be left around after the last code that used them has gone, though these are more commonly called unused variables or unreferenced variables.

The term is taken by analogy with oxbow lakes which are formed in nature when a bend in a river becomes so pronounced that the water breaks through from before the bend to after it, making the river straight again. When the sides of the new course silt up a curved lake is left, disconnected from the main stream.

Examples

(from gnash/server/asobj/Global.cpp 1.46)

    static void
    as_global_escape(const fn_call& fn)
    {
        // List of chars we must convert to escape sequences
        const string hexdigits = "0123456789ABCDEF";
        string input = fn.arg(0).to_string();
        URL::encode(input);
        fn.result->set_string(input.c_str());
    }

In this, "hexdigits" is oxbow code (or oxbow data).


Wikimedia Foundation. 2010.

Игры ⚽ Нужен реферат?

Look at other dictionaries:

  • Oxbow, Oregon — Oxbow   Unincorporated community   …   Wikipedia

  • Oxbow, Saskatchewan — Oxbow   Town   Oxbow water tower Motto: Progress with Pride …   Wikipedia

  • Oxbow, North Dakota —   City   Location of Oxbow, North Dakota …   Wikipedia

  • Oxbow Elementary — is a small school in the township of White Lake, Michigan. It is located at 100 Oxbow Lake Road, ZIP code is 48386 It has grade levels K 5 and is therefore considered an Elementary School . It is a tributary to White Lake Middle School and… …   Wikipedia

  • Oxbow, Maine —   Plantation   …   Wikipedia

  • Oxbow Airport — IATA: none – ICAO: none – TC LID: CJW2 Summary Airport type Public Operator Town of Oxbow Location …   Wikipedia

  • Oxbow — Oxbow, ND U.S. city in North Dakota Population (2000): 248 Housing Units (2000): 84 Land area (2000): 0.406874 sq. miles (1.053798 sq. km) Water area (2000): 0.000000 sq. miles (0.000000 sq. km) Total area (2000): 0.406874 sq. miles (1.053798 sq …   StarDict's U.S. Gazetteer Places

  • Oxbow, ND — U.S. city in North Dakota Population (2000): 248 Housing Units (2000): 84 Land area (2000): 0.406874 sq. miles (1.053798 sq. km) Water area (2000): 0.000000 sq. miles (0.000000 sq. km) Total area (2000): 0.406874 sq. miles (1.053798 sq. km) FIPS… …   StarDict's U.S. Gazetteer Places

  • Oxbow — Original name in latin Oxbow Name in other language State code CA Continent/City America/Regina longitude 49.23335 latitude 102.1676 altitude 582 Population 1058 Date 2008 04 11 …   Cities with a population over 1000 database

  • Area code 315 — is a telephone area code in upstate New York. It stretches from west of Syracuse to Little Falls, north to the Canadian border, east to Massena and south to near Cortland.New York State regulators announced that area code 315 is projected to… …   Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”