Case and paste


case and paste
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)

Read Also:

  • Case based reasoning

    case based reasoning artificial intelligence (CBR) A technique for problem solving which looks for previous examples which are similar to the current problem. This is useful where heuristic knowledge is not available. There are many situations where experts are not happy to be questioned about their knowledge by people who want to write the knowledge […]

  • Case-bay

    (in a roof or floor) the section between two principals.

  • Casebook

    a book in which detailed records of a case are kept and from which illustrative material can be taken in the presentation of a thesis, lecture, or the like. Historical Examples But excuse me one moment; to satisfy you I will look up his case in my casebook. Dr. Rumsey’s Patient L. T. Mead noun […]

  • Casebound

    bound in hard covers. bound by gluing sewn sheets into a separately made cover. adjective another word for hardback

  • Casebox

    a device, similar to an abacus, for recording the cards as they are drawn from the dealing box.


Disclaimer: Case and paste definition / meaning 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. All content on this website is for informational purposes only.