One-off code

One-off code

One-off code refers to computer programs that are typically written for some specific purpose that the programmer expects to need only once.

For example, a person might need to categorize a set of text files according to some criteria. If there are hundreds of files and he knows a suitable programming language (e.g. Perl), he might write a program to automate the process, especially if he expects the effort spent on writing a computer program to do the task will be less than that required to categorize the files manually. Further, if he expects never to have to repeat the task, a different approach than that suitable to regular categorization tasks will be likely.

One-off code tasks may feature less formal code writing, a lack of in-code comments, and quick and dirty techniques. Conversely, a programmer expecting to have to do a given task regularly might spend more time on making the program parameterizeable, general, usable as a component or subroutine, and "presentable": suitable for publication under the programmer's name.

Historically, interpreted languages were geared towards such one-off coding, while compiled languages existed for programs of lasting value. Today, that difference has vanished for two reasons: many interpreted languages are used in large projects (Perl, Python, etc.), and, on the other hand, some compiled languages contain facilities specifically aimed at one-off programming. For example, the compiled programming language D employs very rapid compilation (comparable to the first phase of running a Perl program), and the compiler provides a "compile and run at once" switch,[1] many users use D for tasks where one would typically use Perl, Shell, or Python.

References


Wikimedia Foundation. 2010.

Игры ⚽ Нужна курсовая?

Look at other dictionaries:

  • Code of Vengeance — Title card for the 1985 TV movie Also known as Dalton and Dalton s Code of Vengeance Genre …   Wikipedia

  • Off-label use — is the practice of prescribing pharmaceuticals for an unapproved indication or in an unapproved age group, unapproved dose or unapproved form of administration.[1] In the United States, the Food and Drug Administration Center for Drug Evaluation… …   Wikipedia

  • Code Geass — – Hangyaku no Lelouch Originaltitel コードギアス 反逆のルルーシュ Genre Drama, Science Fiction …   Deutsch Wikipedia

  • Off Centre — This article is about the television show. For the book by Damon Knight, see Off Center. Off Centre Intertitle Genre Sitcom …   Wikipedia

  • One-time pad — Excerpt from a one time pad In cryptography, the one time pad (OTP) is a type of encryption, which has been proven to be impossible to crack if used correctly. Each bit or character from the plaintext is encrypted by a modular addition with a bit …   Wikipedia

  • Code of Virginia — Title page to the Code of 1819, formally titled The Revised Code of the Laws of Virginia The Code of Virginia is the statutory law of the U.S. state of Virginia, and consists of the codified legislation of the Virginia General Assembly. The 1950… …   Wikipedia

  • Code: Breaker — Code:Breaker Cover of the first volume コード: ブレイカー (Kōdo:Bureikā) Genre Action, School Life, Supernatural, Comedy …   Wikipedia

  • Code of Silence (film) — Code of Silence Promotional movie poster for the film Directed by Andrew Davis Produced by …   Wikipedia

  • Off He Goes — Single by Pearl Jam from the album No Code B side Dead Man …   Wikipedia

  • One Meridian Plaza — in 1972 General information Status Demolished Type …   Wikipedia

Share the article and excerpts

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