March 6, 2007

Copying and Pasting Hazardous waste

Jeff Atwood recently talked about Curly’s law of doing just one thing. He’s talking about simplifying your code so that it does just one thing. You can take it even one step further and know when you need to refactor and abstract your code. If you find yourself copying and pasting code from one section of code to another, then stop. If you had to do that, then you should create a new class or function that duplicates that code. You will save yourself a world of support headaches in the future.

Technorati Tags: , , , , ,

Share and Enjoy:These icons link to social bookmarking sites where readers can share and discover new web pages.
  • BlinkList
  • blogmarks
  • del.icio.us
  • digg
  • Furl
  • Ma.gnolia
  • NewsVine
  • Reddit
  • YahooMyWeb
Permalink • Print • Comment

Trackback uri

http://www.mindfulgeek.com/2007/03/copying-and-pasting-hazardous-waste/trackback/

Leave a comment




Made with WordPress and the Semiologic theme and CMS • Electric Kubrick skin by Denis de Bernardy