Science Fair Projects Ideas - Copy and paste programming

All Science Fair Projects

      

Science Fair Project Encyclopedia for Schools!

  Search    Browse    Forum  Coach    Links    Editor    Help    Tell-a-Friend    Encyclopedia    Dictionary     

Science Fair Project Encyclopedia

For information on any area of science that interests you,
enter a keyword (eg. scientific method, molecule, cloud, carbohydrate etc.).
Or else, you can start by choosing any of the categories below.

Copy and paste programming

Copy and paste programming is an informal computer programming style that simply copies code from one program to another. It is generally criticized as a bad practice or an anti-pattern. The term is in conjecture with a common activity in computing, copy and paste.

Copy and pasting is often done by inexperienced or student programmers, who find the act of writing code from scratch difficult and prefer to search for a pre-written solution or partial solution they can use as a basis for their own problem solving. The problem in this approach lies with the fact that the inexperienced programmers do not fully understand the pre-written code they are taking. The code often comes from disparate sources such as friends or co-worker's code, Internet forums, code provided by students' professors/TAs and computer science textbooks. The result is invariably a disjointed clash of styles and often has superfluous code that tackles problems for which solutions are no longer required. Bugs can also easily be introduced by assumptions and design choices made in the separate sources that no longer apply when placed in a new environment.

Copy and pasting is also done by experienced programmers, who often have their own libraries of well tested, ready-to-use code snippets and generic algorithms that are easily adapted to specific tasks. However, adherents of object oriented methodologies claim that this form of programming is still wrong. Instead of making multiple, mutated copies of a generic algorithm, the algorithm should be written as a reusable class and should be written so flexibly that all new code can be interfaced to use this generic code directly, rather than mutate the original. This way, if the original algorithm has a bug to fix or can be improved, all software using it stands to benefit and the programmer does not need to hunt down each and every instance of the code.

Use of programming idioms and design patterns are distinct from copy and paste programming, as they are expected to be recalled from the programmer's mind, rather than retrieved from a code bank.

External links

10-26-2009 08:16:03
The contents of this article is licensed from www.wikipedia.org under the GNU Free Documentation License. Click here to see the transparent copy and copyright details
Science kits, science lessons, science toys, maths toys, hobby kits, science games and books - these are some of many products that can help give your kid an edge in their science fair projects, and develop a tremendous interest in the study of science. When shopping for a science kit or other supplies, make sure that you carefully review the features and quality of the products. Compare prices by going to several online stores. Read product reviews online or refer to magazines.

Start by looking for your science kit review or science toy review. Compare prices but remember, Price $ is not everything. Quality does matter.
Science Fair Coach
What do science fair judges look out for?
ScienceHound
Science Fair Projects for students of all ages
All Science Fair Projects.com Site
All Science Fair Projects Homepage
Search | Browse | Links | From-our-Editor | Books | Help | Contact | Privacy | Disclaimer | Copyright Notice