Computing Reviews
Today's Issue Hot Topics Search Browse Recommended My Account Log In
Review Help
Search
Managing the copy-and-paste programming practice in modern IDEs
Jablonski P.  Object oriented programming systems and applications (Companion to the 22nd ACM SIGPLAN Conference on Object Oriented Programming Systems and Applications, Montreal, Quebec, Canada, Oct 21-25, 2007)933-934.2007.Type:Proceedings
Date Reviewed: Dec 13 2007

The doctrine “Don’t Repeat Yourself” (DRY), promulgated by Andy Hunt and Dave Thomas in The pragmatic programmer, suggests that copy-and-paste as a program development technique is wrong. An obvious preferred approach would be to determine the commonalities to be used where the copying and pasting are to take place, and to create a new abstraction rather than a repetition—further, the common practice of refactoring attempts, among other things, to remove code that has been copied and pasted.

However, Jablonski argues that copying and pasting are going to occur (abstractions can be expensive, and they can obscure simple structure), so a pragmatic approach to dealing with this practice is needed. The paper proposes tracking copying and pasting as they occur in a development context (rather than detecting afterward that they have occurred), and extracting rules embodying the intent of the code being considered. A tool is being developed to support this approach, and the first part of the tool is being prototyped. Presumably, results will be published as they become available.

Reviewer:  D. T. Barnard Review #: CR135018 (0810-0987)
Bookmark and Share
  Reviewer Selected
 
 
Integrated Environments (D.2.6 ... )
 
 
Object-Oriented Languages (D.3.2 ... )
 
 
Object-Oriented Programming (D.2.3 ... )
 
 
Coding Tools and Techniques (D.2.3 )
 
 
Object-Oriented Programming (D.1.5 )
 
Would you recommend this review?
yes
no
Other reviews under "Integrated Environments": Date
Modern languages and Microsoft’s component object model
Gray D., Hotchkiss J., LaForge S., Shalit A., Weinberg T. Communications of the ACM 41(5): 55-65, 1998. Type: Article
Aug 1 1998
Websphere studio application developer 5.0 practical J2EE development
Livshin I., APress, LP, 2003.  656, Type: Book (9781590591208)
Nov 4 2003
A generative approach to framework instantiation
Cechticky V., Chevalley P., Pasetti A., Schaufelberger W.  Generative programming and component engineering (Proceedings of the second international conference, Erfurt, Germany, Sep 22-25, 2003)267-286, 2003. Type: Proceedings
Jan 27 2004
more...

E-Mail This Printer-Friendly
Send Your Comments
Contact Us
Reproduction in whole or in part without permission is prohibited.   Copyright 1999-2024 ThinkLoud®
Terms of Use
| Privacy Policy