Search Options
close
Search the following clips:
All Clips
Everyone's Clips
My Guides
Sign Up
Install
Learn More
Login
Commenting out code is evil
ylodi
follow
0
6-4-2008 5:35 AM
214 views
tags:
programming
Add a Comment
Login
to Comment. Not a member yet?
Sign up
Today's Top Clips
Roses and Glass roses
Christmas Tree Worm
Hand-tinted Vintage Images of Japan & China
In Death, Little Boy Teaches Others How to Live
Titanoboa The Biggest Snake of All Time
Policewomen in Afghanistan have special roles to fill
Insect Photos 2009
New Year's Eve brings lunar rarity
Fantastically Named People
The First 3-D Image of a Mandelbrot Fractal Is Stunning
visit the
Top Clips page
View the Top Clips from
June 4, 2008
Embed This Clip In Your Site...
<div style="margin: 12px 0px; font-family: arial; color: #333333; background: #ffffff; border: solid 4px #e5e5e5; width: 100%; clear: left;"><div class="CM_CTB_Content_Wrap" style="margin: 0px; padding: 0px;background-color: #ffffff;"><div style="border-bottom: solid 1px #dcdcdc; white-space: nowrap; margin-bottom: 8px; background-color: #eeeeee ;background-image: url(http://clipmarks.com/images/source-bg.gif); background-repeat: repeat-x; height: 24px; line-height: 24px; vertical-align: middle; padding-bottom: 4px; color: #666666; font-size: 10px;" ><a href="http://clipmarks.com/clip-to-blog/" title="see clips that are hot right now"><img src="http://content.clipmarks.com/blog_embed/8fca1097-3dda-453b-b869-44b048718835/83D03DAE-1C28-4365-8114-2230103141A4/" alt="" width="19" height="19" border="0" style="vertical-align: middle; margin: 0px 4px; display: inline; border: none; float:none;" /></a>clipped from <a title="http://www.techworld.com.au/blog/entrenched/2008/06/commenting_out_code_is_evil" href="http://www.techworld.com.au/blog/entrenched/2008/06/commenting_out_code_is_evil" style="font-size: 11px;">www.techworld.com.au</a></div><blockquote style="text-align: left; padding: 0px 8px; margin: 4px 0px 8px 0px; background: transparent; border: none;" cite="http://www.techworld.com.au/blog/entrenched/2008/06/commenting_out_code_is_evil"><H1 id="page-title" class="title">Commenting out code is evil</H1></blockquote><div style="height: 2px; font-size: 2px; background: #dcdcdc; border-bottom: solid 1px #f5f5f5; margin: 2px 4px;"></div><blockquote style="text-align: left; padding: 0px 8px; margin: 4px 0px 8px 0px; background: transparent; border: none;" cite="http://www.techworld.com.au/blog/entrenched/2008/06/commenting_out_code_is_evil"><P>If you are a software developer you probably use some kind of <A href="http://en.wikipedia.org/wiki/Revision_control">version control system</A> like <A href="http://subversion.tigris.org/">subversion</A>, <A href="http://git.or.cz/">git</A>, or maybe <A href="http://bazaar-vcs.org/">Bazaar</A>, everyday at work. And if you aren't you should be.</P></blockquote><div style="height: 2px; font-size: 2px; background: #dcdcdc; border-bottom: solid 1px #f5f5f5; margin: 2px 4px;"></div><blockquote style="text-align: left; padding: 0px 8px; margin: 4px 0px 8px 0px; background: transparent; border: none;" cite="http://www.techworld.com.au/blog/entrenched/2008/06/commenting_out_code_is_evil"><P>When using version control there are some bad habits that need to be broken to get the most from it. One bad habit that really needs to be broken is the habit of commenting out dead code instead of deleting it.</P></blockquote><div style="height: 2px; font-size: 2px; background: #dcdcdc; border-bottom: solid 1px #f5f5f5; margin: 2px 4px;"></div><blockquote style="text-align: left; padding: 0px 8px; margin: 4px 0px 8px 0px; background: transparent; border: none;" cite="http://www.techworld.com.au/blog/entrenched/2008/06/commenting_out_code_is_evil"><P>It always starts the same way. You have to modify an existing piece of code, so you quickly comment out the old code and start adding your new code. Having the old code is handy - it gives you a reference for the new code you're writing and if something goes wrong you just uncomment it and you're back where you started. Easy.</P></blockquote></div><div style="margin: 0px 6px 6px 4px;"><table style="font-size: 11px;border-spacing: 0px;padding: 0px;" cellpadding="0" cellspacing="0" width="100%"><tr><td style="background:transparent;border-width:0px;padding:0px;"> </td><td align="right" style="background:transparent;border-width:0px;padding:0px;width:107px" width="107"><a href="http://clipmarks.com/share/83D03DAE-1C28-4365-8114-2230103141A4/blog/" title="blog or email this clip"><img src="http://content7.clipmarks.com/images/c2b-foot.png" border="0" alt="blog it" width="107" height="17" style="border-width:0px;padding:0px;margin:0px;" /></a></td></tr></table></div></div>
New from the makers of Clipmarks:
Amplify.com - Don't just share the news...Amplify it!
Clipmarks
Home
New Clips
Top Clips
Dashboard
Popular Topics
News
Life
Science
Technology
Entertainment
Get Started
Sign Up
Install Clipping Tool
How Clipping Works
Clip-to-Blog™
ClipSearch
Tools and Resources
FAQ
ClipWeek
Top Clippers
Top Tags
Site Map
About Clipmarks
About Us
Contact
Copyright
Privacy
EULA
OK