Printer Friendly
The Free Dictionary
982,449,522 visitors served.
?
Dictionary/
thesaurus
Medical
dictionary
Legal
dictionary
Financial
dictionary
Acronyms
 
Idioms
Encyclopedia
Wikipedia
encyclopedia
?

case and paste

    0.03 sec.
(programming)case and paste - (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.

?Page tools
Printer friendly
Cite / link
Email
Feedback
? Mentioned in
 
Encyclopedia browser? ? Full browser
 
 
Encyclopedia
?

Disclaimer | Privacy policy | Feedback | Copyright © 2008 Farlex, Inc.
All content on this website, including dictionary, thesaurus, literature, geography, and other reference data is for informational purposes only. This information should not be considered complete, up to date, and is not intended to be used in place of a visit, consultation, or advice of a legal, medical, or any other professional. Terms of Use.