The Artima Developer Community
Sponsored Link

.NET Buzz Forum
"Why" Instead of "How" and "What"

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Peter G Provost

Posts: 849
Nickname: pprovost
Registered: Aug, 2003

Peter G Provost is a Solution Architect for Interlink Group in Denver, CO.
"Why" Instead of "How" and "What" Posted: Aug 11, 2003 6:35 PM
Reply to this message Reply

This post originated from an RSS feed registered with .NET Buzz by Peter G Provost.
Original Post: "Why" Instead of "How" and "What"
Feed Title: Peter Provost's Geek Noise
Feed URL: /error.aspx?aspxerrorpath=/Rss.aspx
Feed Description: Technology news, development articles, Microsoft .NET, and other stuff...
Latest .NET Buzz Posts
Latest .NET Buzz Posts by Peter G Provost
Latest Posts From Peter Provost's Geek Noise

Advertisement

Jimmy Nilsson writes:

If we transfer this little story to programming, it reminds me about that I think we should be asking ourselves "why?" when writing comments. If you also need to write comments for "how" and "what", it might be a sure sign of smelly code and an indication that you need to do some refactoring.

Ahhh... that makes me feel good. Nice and simple. Comments should say WHY you did something. If you have to write WHAT or HOW, then you have a problem.

Thanks Jimmy!

Read: "Why" Instead of "How" and "What"

Topic: Converting to a DateTime from time_t Previous Topic   Next Topic Topic: Geek Gauntlets

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use