Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Danger, danger Will Robinson (documenting code)

by jorg (Friar)
on Mar 29, 2001 at 19:07 UTC ( [id://68107]=note: print w/replies, xml ) Need Help??


in reply to Danger, danger Will Robinson (documenting code)

This is one I came across recently:
Copying and pasting code snippets together with the comments (helpfull comments that is), then change the code but don't bother updating the comment..
Guaranteed confusion when updating a rather big sourcetree, after all, one checks the comments first to see if a section of code needs updating... *sigh*


Jorg

"Do or do not, there is no try" -- Yoda
  • Comment on Re: Danger, danger Will Robinson (documenting code)

Replies are listed 'Best First'.
Re: Re: Danger, danger Will Robinson (documenting code)
by dws (Chancellor) on Mar 30, 2001 at 11:42 UTC
    Adele Goldberg, one of the principals behind Smalltalk and later founder of ParcPlace Systems, coined a term that covers copying chunks of code but neglecting to fix comments. She calls it "Rape and Paste Programming".

    It's an expression that grabs your attention and forces you to stop and think.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://68107]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (4)
As of 2024-04-20 04:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found