case and paste

Computing Dictionary

case and paste definition

programming
(From "cut and paste") The addition of a new feature to an existing system by selecting the code from an existing feature and pasting it in with minor changes. This usually results in gross violation of the fundamental programming tenet, Don't Repeat Yourself.
Common in telephony circles because most operations in a telephone switch are selected using "case" statements. Leads to software bloat.
In some circles of Emacs users this is called "programming by Meta-W", because Meta-W is the Emacs command for copying a block of text to a kill buffer in preparation to pasting it in elsewhere. The term is condescending, implying that the programmer is acting mindlessly rather than thinking carefully about what is required to integrate the code for two similar cases.
At DEC, this is sometimes called "clone-and-hack" coding.
[Jargon File]
(1996-03-01)
The Free On-line Dictionary of Computing, © Denis Howe 2010 http://foldoc.org
Cite This Source
Explore Dictionary.com
Previous Definition: case agreement
Next Definition: case based reasoning
Words Near: case and paste
More from Thesaurus.com
Synonyms and Antonyms for case and paste
More from Reference.com
Search for articles containing case and paste
More from Dictionary.com Translator
Dictionary.com Word FAQs

Dictionary.com presents 366 FAQs, incorporating some of the frequently asked questions from the past with newer queries.

Copyright © 2014 Dictionary.com, LLC. All rights reserved.
  • Please Login or Sign Up to use the Recent Searches feature