Talk:Copy-and-paste programming: Difference between revisions

Content deleted Content added
Cewbot (talk | contribs)
m Maintain {{WPBS}} and vital articles: 1 WikiProject template. Create {{WPBS}}. Keep majority rating "C" in {{WPBS}}. Remove 1 same rating as {{WPBS}} in {{WikiProject Computer science}}.
 
(7 intermediate revisions by 7 users not shown)
Line 1:
{{WikiProject Computerbanner scienceshell|class=StartC|importance=Low}}
{{WikiProject Computer science|importance=Low}}
 
}}
== Expanded, organized, referenced ==
I have expanded this section's discussion of copy and paste programming by experienced programmers, and rather than having it as one continuous block of uninterrupted text, I've rearranged much of the text to create two distinct major sections. Also, I have added a number of references. I believe this article now qualifies for removal of the "no references" designation, as well as the "stub" designation.
Line 84 ⟶ 85:
I've made a simple animation to show one of the problems of C&P programming: when original code block contains error, all copypasted blocks will contain this error too and the fixing the bug will not be a trivial task (in gif programmer accidentally forgot to change some code blocks). Do you have any notes for animation? Do you have any objections not to include animation to article? Waitnig for feedback. --[[User:Atroshko|Atroshko]] ([[User talk:Atroshko|talk]]) 06:54, 7 December 2013 (UTC)
[[File:Forgotten edits in copypaste programming.gif|thumbnail]]
 
== POV issues ==
 
This article contains express terms connecting "copy-paste" and "snippet" usage as indications of inexperience or lack of proficiency in programming and editing operations. This position is not substantiated by any citations, and it also seems to ignore that experienced and highly proficient programmers use such methods as a simple means of saving keystrokes and reducing the risk of repetitive strain and other occupational hazards experienced routinely by professional programmers.
 
Moreover, this position seems to ignore the obvious fact that *most* professional-grade editors and IDEs contain support for some kind of abbreviation or snippet management, precisely because there is demand for this among programmers and other professionals who do not wish to manually type boilerplate and needlessly repetitive data entry.
 
[[User:Dreftymac|dr.ef.tymac]] ([[User talk:Dreftymac|talk]]) 15:32, 30 May 2014 (UTC)
 
While I was reading this article, I kept thinking of a couple of projects I was working on in [[C (programming language)|C]] using [[X Window System|X Windows]] on [[Unix]] in the early [[1990]]s. For the user interface, the first two things I wrote a generalized string input routine, and the second thing was a generalized menu routine (that would read the menu from a text file, so you could change the menu without recompiling the program). I spent the best part of a year cheerfully plugging those two routines into well over a dozen programs on several wholly different projects and it saved me whole bunches of time. [[User:JHobson3|JHobson3]] ([[User talk:JHobson3|talk]]) 17:11, 18 August 2016 (UTC)
 
== External links modified ==
 
Hello fellow Wikipedians,
 
I have just added archive links to {{plural:1|one external link|1 external links}} on [[Copy and paste programming]]. Please take a moment to review [https://en.wikipedia.org/w/index.php?diff=prev&oldid=686168507 my edit]. If necessary, add {{tlx|cbignore}} after the link to keep me from modifying it. Alternatively, you can add {{tlx|nobots|deny{{=}}InternetArchiveBot}} to keep me off the page altogether. I made the following changes:
*Added archive https://web.archive.org/20080516005005/http://www.stanford.edu/class/cs106x/handouts/14-Decomposition.pdf to http://www.stanford.edu/class/cs106x/handouts/14-Decomposition.pdf
 
When you have finished reviewing my changes, please set the ''checked'' parameter below to '''true''' to let others know.
 
{{sourcecheck|checked=false}}
 
Cheers. —[[User:Cyberbot II|<sup style="color:green;font-family:Courier">cyberbot II</sup>]]<small><sub style="margin-left:-14.9ex;color:green;font-family:Comic Sans MS">[[User talk:Cyberbot II|<span style="color:green">Talk to my owner</span>]]:Online</sub></small> 13:05, 17 October 2015 (UTC)
 
== Testing ==
 
Unit test code is an example where copy-and-paste programming may be acceptable. Could cite https://mtlynch.io/good-developers-bad-tests/ as a source, if deemed reliable enough. [[User:Syneil|Syneil]] ([[User talk:Syneil|talk]]) 09:20, 17 March 2021 (UTC)