Everything about Copy-and-paste programming
Pejorative term for highly repetitive programming
Copy-and-paste programming, sometimes referred to as just pasting, is the production of highly repetitive computer programming code, as produced by copy and paste operations. It is primarily a pejorative term; those who use the term are often implying a lack of programming competence and ability to create abstractions. It may also be the result of technology limitations as subroutines or libraries would normally be used instead. However, there are occasions when copy-and-paste programming is considered acceptable or necessary, such as for boilerplate, loop unrolling, languages with limited metaprogramming facilities, or certain programming idioms, and it is supported by some source code editors in the form of snippets. Wikipedia →
đź§ Start here: a 6-step reading path
- Read the overview: Copy-and-paste programmingA 5-minute orientation
- Skim a recent paper: THE PHENOMENON OF COUNSELOR DOING COPY-PASTE IN DESIGNING GUIDANCE AND COUNSELING PROGRAMSInfluential work since 2022
- Pick up a classic book: American FilmThe most-reprinted book on the subject
- Go sideways: Code reuseA closely related topic
- Go sideways: Code bloatA closely related topic
đź“– Definitions
No dictionary entry for this exact phrase.
🗂️ The subject at a glance
🏆 Landmark papers (most cited)
- No matching papers found.
🆕 Influential since 2022
📚 Books worth reading
American FilmAmerican Film Institute · 1975
Automate the Boring Stuff with PythonAl Sweigart · 2015
The Conspirators HierarchyJohn Coleman · 1992
The UNIX operating systemChristian, Kaare, Kaare Christian · 1983
Office in a Minute, Steps for Performing Basic Tasks in Microsoft Office 2013Diane L. Martin · 2010
Welcome to computers for ESL studentsOlivia Adendorff · 2006
Windows 7 AnnoyancesDavid A. Karp · 2010- 📕Route/discards
Ranked by number of editions on Open Library, a rough measure of how lasting a book is.
đź”— Related topics
- Code reuse Code reuse is the practice of using existing source code to develop software instead of writing new code. Software reuse is a broader term that implies…
- Code bloat In computer programming, code bloat is the production of executable code (source code or machine code) that is unnecessarily long, slow, or otherwise wasteful…
- Duplicate code In computer programming, duplicate code is multiple occurrences of equivalent source code in a codebase. A duplicate code fragment is also known as a code…
- Inline expansion In computing, inline expansion, or inlining, is a manual or compiler optimization that replaces a function call site with the body of the called function…
- Snippet (programming) In computer programming, a snippet is a relatively small amount of source code that is stored and later inserted into a larger codebase as part of the…
- Branch (computer science) A branch, jump or transfer is an instruction in a computer program that can cause a computer to begin executing a different instruction sequence and thus…
- Don't repeat yourself "Don't repeat yourself" (DRY) is a principle of software development aimed at reducing repetition of information which is likely to change, replacing it…
- Example-centric programming Example-centric programming is an approach to software development that helps the user to create software by locating and modifying small examples into…