<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Code is read much more often than it is written, so plan accordingly</title><link>http://blogs.msdn.com/oldnewthing/archive/2007/04/06/2036150.aspx</link><description>Design for readability.</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>Kaveman&amp;#8217;s Daily Feed of Informative Blogs &amp;raquo; Code is read much more often than it is written, so plan accordingly</title><link>http://blogs.msdn.com/oldnewthing/archive/2007/04/06/2036150.aspx#2040396</link><pubDate>Fri, 06 Apr 2007 17:57:33 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2040396</guid><dc:creator>Kaveman’s Daily Feed of Informative Blogs » Code is read much more often than it is written, so plan accordingly</dc:creator><description>&lt;P&gt;PingBack from http://informativeposts.info/code-is-read-much-more-often-than-it-is-written-so-plan-accordingly/&lt;/P&gt;</description></item><item><title>re: Code is read much more often than it is written, so plan accordingly</title><link>http://blogs.msdn.com/oldnewthing/archive/2007/04/06/2036150.aspx#2040438</link><pubDate>Fri, 06 Apr 2007 18:08:02 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2040438</guid><dc:creator>Richard Avila</dc:creator><description>&lt;p&gt;&amp;gt; Design for readability.&lt;/p&gt;
&lt;p&gt;Funny; 10 minutes ago I thanked myself for doing that in a project I wrote two years ago.&lt;/p&gt;
</description></item><item><title>re: Code is read much more often than it is written, so plan accordingly</title><link>http://blogs.msdn.com/oldnewthing/archive/2007/04/06/2036150.aspx#2040447</link><pubDate>Fri, 06 Apr 2007 18:11:25 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2040447</guid><dc:creator>dave</dc:creator><description>&lt;p&gt;I've come to view programming as 'an act of explanation', and it's much more important for me to explain to myself how to do something than it is for me to explain to the computer to do it.&lt;/p&gt;
</description></item><item><title>Red Sweater Blog - Coding For Readability</title><link>http://blogs.msdn.com/oldnewthing/archive/2007/04/06/2036150.aspx#2040478</link><pubDate>Fri, 06 Apr 2007 18:23:09 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2040478</guid><dc:creator>Red Sweater Blog - Coding For Readability</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://www.red-sweater.com/blog/316/coding-for-readability"&gt;http://www.red-sweater.com/blog/316/coding-for-readability&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>re: Code is read much more often than it is written, so plan accordingly</title><link>http://blogs.msdn.com/oldnewthing/archive/2007/04/06/2036150.aspx#2040631</link><pubDate>Fri, 06 Apr 2007 18:49:42 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2040631</guid><dc:creator>Mike Weiss</dc:creator><description>&lt;p&gt;Two other common cases where Intellisense won't help you:&lt;/p&gt;
&lt;p&gt;1) Even in the IDE its not always working. Often it's just breaks. Mainly this happens in VC++. 2005 is better, but not as reliable as C# or VB.NET (or VB6's IDE). I'm not ragging on the VC++ IDE team - I'm amazed that it works at all.&lt;/p&gt;
&lt;p&gt;2) You're looking as code through source control or some type of diff tool.&lt;/p&gt;
</description></item><item><title>york times  &amp;raquo; Blog Archive   &amp;raquo; Code is read much more often than it is written, so plan accordingly</title><link>http://blogs.msdn.com/oldnewthing/archive/2007/04/06/2036150.aspx#2040741</link><pubDate>Fri, 06 Apr 2007 19:13:20 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2040741</guid><dc:creator>york times  » Blog Archive   » Code is read much more often than it is written, so plan accordingly</dc:creator><description>&lt;P&gt;PingBack from http://newyorktimesblogs.info/code-is-read-much-more-often-than-it-is-written-so-plan-accordingly/&lt;/P&gt;</description></item><item><title>out boy &amp;raquo; Code is read much more often than it is written, so plan accordingly</title><link>http://blogs.msdn.com/oldnewthing/archive/2007/04/06/2036150.aspx#2040890</link><pubDate>Fri, 06 Apr 2007 19:55:34 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2040890</guid><dc:creator>out boy » Code is read much more often than it is written, so plan accordingly</dc:creator><description>&lt;P&gt;PingBack from http://falloutboyblogs.info/code-is-read-much-more-often-than-it-is-written-so-plan-accordingly/&lt;/P&gt;</description></item><item><title>re: Code is read much more often than it is written, so plan accordingly</title><link>http://blogs.msdn.com/oldnewthing/archive/2007/04/06/2036150.aspx#2040909</link><pubDate>Fri, 06 Apr 2007 20:00:48 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2040909</guid><dc:creator>Adrian</dc:creator><description>&lt;p&gt;“Let us change our traditional attitude to the construction of programs. Instead of imagining that our main task is to instruct a computer what to do, let us concentrate rather on explaining to human beings what we want a computer to do.” —Donald Edwin Knuth&lt;/p&gt;
&lt;p&gt;“Programs should be written and polished until they acquire publication quality.” —Niklaus Wirth&lt;/p&gt;
</description></item><item><title>Development Chaos Theory &amp;raquo; Words of Wisdom</title><link>http://blogs.msdn.com/oldnewthing/archive/2007/04/06/2036150.aspx#2040997</link><pubDate>Fri, 06 Apr 2007 20:25:50 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2040997</guid><dc:creator>Development Chaos Theory » Words of Wisdom</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://chaosinmotion.com/blog/?p=47"&gt;http://chaosinmotion.com/blog/?p=47&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>Optimizing for Readability</title><link>http://blogs.msdn.com/oldnewthing/archive/2007/04/06/2036150.aspx#2041026</link><pubDate>Fri, 06 Apr 2007 20:32:40 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2041026</guid><dc:creator>Cornflower Blue</dc:creator><description>&lt;p&gt;About a week ago, Shawn wrote a post about different types of code , and how he designs them. In a few&lt;/p&gt;
</description></item><item><title>re: Code is read much more often than it is written, so plan accordingly</title><link>http://blogs.msdn.com/oldnewthing/archive/2007/04/06/2036150.aspx#2041028</link><pubDate>Fri, 06 Apr 2007 20:33:07 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2041028</guid><dc:creator>Stefan</dc:creator><description>&lt;p&gt;We can fix our own, but we also have to live with functions that are already take boolean values. And we have to worry about other non-self-documenting parameter values, such as &amp;quot;&amp;quot;, -1, and NULL.&lt;/p&gt;
&lt;p&gt;My &amp;quot;solution&amp;quot; is to comment each opaque parameter. For example, a CreateEvent() call looks something like this:&lt;/p&gt;
&lt;p&gt;CreateEvent(NULL /*security*/, TRUE /*manual?*/, FALSE /*signaled?*/, NULL /*name*/);&lt;/p&gt;
&lt;p&gt;It's not very pretty, but it's readable. (Alternatively, you could write a wrapper that uses enums and manifest constants but ... ew.)&lt;/p&gt;
</description></item><item><title>re: Code is read much more often than it is written, so plan accordingly</title><link>http://blogs.msdn.com/oldnewthing/archive/2007/04/06/2036150.aspx#2041114</link><pubDate>Fri, 06 Apr 2007 20:47:20 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2041114</guid><dc:creator>dave</dc:creator><description>&lt;p&gt;re me:&lt;/p&gt;
&lt;p&gt;I've come to view programming as 'an act of explanation', and it's much more important for me to explain to myself how to do something than it is for me to explain to the computer to do it.&lt;/p&gt;
&lt;p&gt;re Adrian:&lt;/p&gt;
&lt;p&gt;“Let us change our traditional attitude to the construction of programs. Instead of imagining that our main task is to instruct a computer what to do, let us concentrate rather on explaining to human beings what we want a computer to do.” —Donald Edwin Knuth&lt;/p&gt;
&lt;p&gt;====&lt;/p&gt;
&lt;p&gt;Dammit, Knuth got there first. Again.&lt;/p&gt;
&lt;p&gt;;-)&lt;/p&gt;
</description></item><item><title>re: Code is read much more often than it is written, so plan accordingly</title><link>http://blogs.msdn.com/oldnewthing/archive/2007/04/06/2036150.aspx#2041364</link><pubDate>Fri, 06 Apr 2007 21:40:30 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2041364</guid><dc:creator>Dustin Long</dc:creator><description>&lt;p&gt;Seconded on Stefan's approach. This is part of the reason I love when I'm able to use Lisp or Ruby. It's nice being able to use symbols for named boolean parameters like:&lt;/p&gt;
&lt;p&gt;(load &amp;quot;file.lisp&amp;quot; :verbose nil)&lt;/p&gt;
&lt;p&gt;or&lt;/p&gt;
&lt;p&gt;belongs_to :printable, :polymorphic =&amp;gt; true&lt;/p&gt;
</description></item><item><title>re: Code is read much more often than it is written, so plan accordingly</title><link>http://blogs.msdn.com/oldnewthing/archive/2007/04/06/2036150.aspx#2041470</link><pubDate>Fri, 06 Apr 2007 22:05:29 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2041470</guid><dc:creator>asdf</dc:creator><description>&lt;p&gt;Knuth's out of context quote is good but the idea he came up with is 100% garbage IMHO. I own 4 books done in &amp;quot;literate programming style&amp;quot; and they're nightmares to read compared to books that do things the lazy/normal way of pasting large blobs of code and then explaining what's going on.&lt;/p&gt;
</description></item><item><title>re: Code is read much more often than it is written, so plan accordingly</title><link>http://blogs.msdn.com/oldnewthing/archive/2007/04/06/2036150.aspx#2041603</link><pubDate>Fri, 06 Apr 2007 22:37:17 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2041603</guid><dc:creator>Neo</dc:creator><description>&lt;p&gt;I have a question now: What is the real way to do it then? Create an enum for everything - redefine 0 and 1 hundreds of times?&lt;/p&gt;
&lt;p&gt;Something else [I'm no expert with the C/C++ functions (or Win32 API). I use it only from time to time, if .NET isn't offering what i need]: EnableWindow(false) means the window is disabled?!? Wow, that's weird! If I see EnableWindow(BOOL) I wouldn't really understand what this BOOl is for! I would search a method called DisableWindow that disables a window (ShowScrollbar is the same).&lt;/p&gt;
</description></item><item><title>re: Code is read much more often than it is written, so plan accordingly</title><link>http://blogs.msdn.com/oldnewthing/archive/2007/04/06/2036150.aspx#2041843</link><pubDate>Fri, 06 Apr 2007 23:22:28 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2041843</guid><dc:creator>mikeb</dc:creator><description>&lt;p&gt;&amp;gt;&amp;gt; I have a question now: What is the real way to do it then? Create an enum for everything - redefine 0 and 1 hundreds of times?&lt;/p&gt;
&lt;p&gt;Yup. &amp;nbsp;For another take on this, see Scott Meyer's article: &amp;nbsp;&lt;a rel="nofollow" target="_new" href="http://www.aristeia.com/Papers/IEEE_Software_JulAug_2004_revised.htm"&gt;http://www.aristeia.com/Papers/IEEE_Software_JulAug_2004_revised.htm&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>???????? ?????? ??????????. ?????????????????? ?????? ???????????? ?????????????? &amp;laquo; ???????? ?????????????????????????? &amp;laquo; developers.org.ua</title><link>http://blogs.msdn.com/oldnewthing/archive/2007/04/06/2036150.aspx#2042130</link><pubDate>Sat, 07 Apr 2007 00:24:49 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2042130</guid><dc:creator>???????? ?????? ??????????. ?????????????????? ?????? ???????????? ?????????????? « ???????? ?????????????????????????? « developers.org.ua</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://www.developers.org.ua/archives/koldovsky/2007/04/07/more-equal-code/"&gt;http://www.developers.org.ua/archives/koldovsky/2007/04/07/more-equal-code/&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>re: Code is read much more often than it is written, so plan accordingly</title><link>http://blogs.msdn.com/oldnewthing/archive/2007/04/06/2036150.aspx#2042331</link><pubDate>Sat, 07 Apr 2007 01:01:27 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2042331</guid><dc:creator>jamie</dc:creator><description>&lt;p&gt;Indeed when I use an API that contains bool parameters, I create consts vars with reasonable names documenting the desired effect.&lt;/p&gt;
&lt;p&gt;//&lt;/p&gt;
&lt;p&gt;// create non-signaled auto-reset event for&lt;/p&gt;
&lt;p&gt;// ... [some useful description here]&lt;/p&gt;
&lt;p&gt;//&lt;/p&gt;
&lt;p&gt;const BOOL bIsManualResetEvent = FALSE;&lt;/p&gt;
&lt;p&gt;const BOOL bIsInitiallySignaled = FALSE;&lt;/p&gt;
&lt;p&gt;CreateEvent(NULL,bIsManualResetEvent, bIsInitiallySignaled, NULL);&lt;/p&gt;
&lt;p&gt;Null pointer parameters are nearly as bad. &amp;nbsp;&lt;/p&gt;
&lt;p&gt;Objective-C's solution is quite nice in this respect. &lt;/p&gt;
</description></item><item><title>re: Code is read much more often than it is written, so plan accordingly</title><link>http://blogs.msdn.com/oldnewthing/archive/2007/04/06/2036150.aspx#2042990</link><pubDate>Sat, 07 Apr 2007 03:40:30 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2042990</guid><dc:creator>david_douglass</dc:creator><description>&lt;p&gt;Thanks to discussions like these, I hope people (especially middle management) will start see how damaging contractors can be. &amp;nbsp;Contractors are almost always judged (at least by the people approving the invoices) on how quickly they can get things done. &amp;nbsp;They're also well aware they won't be kept around to maintain the code. &amp;nbsp;Many systems are seriously and unnecessarily flawed from inception because of this dynamic.&lt;/p&gt;
</description></item><item><title>Out of Cheese &amp;raquo; Designing for readability</title><link>http://blogs.msdn.com/oldnewthing/archive/2007/04/06/2036150.aspx#2044330</link><pubDate>Sat, 07 Apr 2007 12:46:21 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2044330</guid><dc:creator>Out of Cheese » Designing for readability</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://outofcheese.org/2007/04/07/designing-for-readability/"&gt;http://outofcheese.org/2007/04/07/designing-for-readability/&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>re: Code is read much more often than it is written, so plan accordingly</title><link>http://blogs.msdn.com/oldnewthing/archive/2007/04/06/2036150.aspx#2045919</link><pubDate>Sat, 07 Apr 2007 18:53:19 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2045919</guid><dc:creator>Igor</dc:creator><description>&lt;p&gt;I agree that code should be readable but having readability above the quality is absurd.&lt;/p&gt;
&lt;p&gt;I have recently read an article by Andrew Binstock at Intel Developer Services titled: &amp;quot;Intel Optimization Best Practices: No Magic, Just Discipline and Good Tools&amp;quot;.&lt;/p&gt;
&lt;p&gt;What bothered me the most was this part:&lt;/p&gt;
&lt;p&gt;&amp;quot;Thoroughly document all assembly code -- you can't expect other developers to understand it.&amp;quot;&lt;/p&gt;
&lt;p&gt;My question is &amp;quot;WHY?&amp;quot;&lt;/p&gt;
&lt;p&gt;Not &amp;quot;WHY SHOULD I DOCUMENT?&amp;quot; because documentation is a Good Thing™ but &amp;quot;WHY I CANNOT EXPECT OTHER DEVELOPERS TO UNDERSTAND IT?!?!?&amp;quot;&lt;/p&gt;
&lt;p&gt;IMO, serious developers must know assembler and the platform they write code for. The others who don't, they are not developers in my book.&lt;/p&gt;
</description></item><item><title>re: Code is read much more often than it is written, so plan accordingly</title><link>http://blogs.msdn.com/oldnewthing/archive/2007/04/06/2036150.aspx#2046254</link><pubDate>Sat, 07 Apr 2007 20:17:11 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2046254</guid><dc:creator>John</dc:creator><description>&lt;p&gt;It seems that only us &amp;quot;old guys&amp;quot; come to this conclusion. &amp;nbsp;I'm still wait to meet a young programmer (under 35) that knows jack about commenting code. &amp;nbsp;It takes years of slogging it out to really grok the reason there are things like /* &amp;nbsp; */&lt;/p&gt;
&lt;p&gt;sigh.&lt;/p&gt;
</description></item><item><title>re: Code is read much more often than it is written, so plan accordingly</title><link>http://blogs.msdn.com/oldnewthing/archive/2007/04/06/2036150.aspx#2047079</link><pubDate>Sat, 07 Apr 2007 23:35:49 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2047079</guid><dc:creator>Starfish</dc:creator><description>&lt;p&gt;Any young guy who's inherited a horrible ream of spaghetti code and had to comprehend it ought to appreciate there's some value to the slash-slash, assuming they care about being good programmers themselves. I shouldn't expect my CS lecturers to tell me 'great commenting', I'd like to think it's the norm and any less is bad...&lt;/p&gt;
</description></item><item><title>re: Code is read much more often than it is written, so plan accordingly</title><link>http://blogs.msdn.com/oldnewthing/archive/2007/04/06/2036150.aspx#2047081</link><pubDate>Sat, 07 Apr 2007 23:37:13 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2047081</guid><dc:creator>John C. Welch</dc:creator><description>&lt;p&gt;&amp;quot;&amp;quot;Thoroughly document all assembly code -- you can't expect other developers to understand it.&amp;quot;&lt;/p&gt;
&lt;p&gt;My question is &amp;quot;WHY?&amp;quot;&lt;/p&gt;
&lt;p&gt;Not &amp;quot;WHY SHOULD I DOCUMENT?&amp;quot; because documentation is a Good Thing™ but &amp;quot;WHY I CANNOT EXPECT OTHER DEVELOPERS TO UNDERSTAND IT?!?!?&amp;quot;&amp;quot;&lt;/p&gt;
&lt;p&gt;So all you need to program to an API are the raw API calls? No documentation explaining what each one does, what it's for, what the ideal use case is, some possible pitfalls? No comments in header files explaining what is going on?&lt;/p&gt;
&lt;p&gt;You're going to look at code you wrote 5 years ago, and without comments, *instantly* remember WHY you wrote it the way you did?&lt;/p&gt;
&lt;p&gt;By itself, code only answers &amp;quot;what&amp;quot;. It takes a human to answer &amp;quot;how&amp;quot;, and comments to answer &amp;quot;why&amp;quot;, especially if the code hasn't been looked at in a while. Self-documenting code is a myth, and one I wish would be taken out back and shot like Ol' Yeller with da hydrophobia. &lt;/p&gt;
&lt;p&gt;Anyone who can't be bothered to write clean, neat, readable, properly commented code can't be bothered to be paid to write code at all.&lt;/p&gt;
</description></item><item><title>re: Code is read much more often than it is written, so plan accordingly</title><link>http://blogs.msdn.com/oldnewthing/archive/2007/04/06/2036150.aspx#2047142</link><pubDate>Sat, 07 Apr 2007 23:47:56 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2047142</guid><dc:creator>Seth Werkheiser</dc:creator><description>&lt;p&gt;Wow, I do basic HTML work for a major publication, and I can't tell you how annoying it is to work with old HTML coded pages. Most looks like it was done in FrontPage or Word or something. uggg. So yea - moving forward I code most everything to be human friendly, especially for the point of, &amp;quot;hey. 12 months from now I might need to change something.&amp;quot;&lt;/p&gt;
&lt;p&gt;Good post.&lt;/p&gt;
</description></item><item><title>re: Code is read much more often than it is written, so plan accordingly</title><link>http://blogs.msdn.com/oldnewthing/archive/2007/04/06/2036150.aspx#2047196</link><pubDate>Sat, 07 Apr 2007 23:57:12 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2047196</guid><dc:creator>Eh</dc:creator><description>&lt;p&gt;Old news, Raymond. Old news.&lt;/p&gt;</description></item><item><title>re: Code is read much more often than it is written, so plan accordingly</title><link>http://blogs.msdn.com/oldnewthing/archive/2007/04/06/2036150.aspx#2047939</link><pubDate>Sun, 08 Apr 2007 02:52:38 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2047939</guid><dc:creator>Johannes Rössel</dc:creator><description>&lt;p&gt;&amp;quot;Programs must be written for people to read, and only&lt;/p&gt;
&lt;p&gt;incidentally for machines to execute.&amp;quot;&lt;/p&gt;
&lt;p&gt;- Abelson &amp;amp; Sussman, Structure and Interpretation of Computer Programs, preface to the first edition.&lt;/p&gt;
&lt;p&gt;I once hoped everyone who codes a little more than just a few lines a year ultimately comes to this conclusion but hope is gone now. But I've seen that it is of great help when people are forced to work in a team on the same code. Ultimately they will adapt to a style that is readable and they'll even comment.&lt;/p&gt;
</description></item><item><title>re: Code is read much more often than it is written, so plan accordingly</title><link>http://blogs.msdn.com/oldnewthing/archive/2007/04/06/2036150.aspx#2049077</link><pubDate>Sun, 08 Apr 2007 07:48:35 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2049077</guid><dc:creator>pwb</dc:creator><description>&lt;p&gt;IDE-reliance is lame.&lt;/p&gt;</description></item><item><title>re: Code is read much more often than it is written, so plan accordingly</title><link>http://blogs.msdn.com/oldnewthing/archive/2007/04/06/2036150.aspx#2050188</link><pubDate>Sun, 08 Apr 2007 10:06:14 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2050188</guid><dc:creator>bogus</dc:creator><description>&lt;p&gt;The side text is on top of the article and comment text on this page. Yuck.&lt;/p&gt;
</description></item><item><title>re: Code is read much more often than it is written, so plan accordingly</title><link>http://blogs.msdn.com/oldnewthing/archive/2007/04/06/2036150.aspx#2050879</link><pubDate>Sun, 08 Apr 2007 11:28:44 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2050879</guid><dc:creator>Ma</dc:creator><description>&lt;p&gt;True, true about reeding code...&lt;/p&gt;
&lt;p&gt;p.s. Am I alone who thinks, that &amp;quot;PingBack&amp;quot;s should be banned?&lt;/p&gt;
</description></item><item><title>re: Code is read much more often than it is written, so plan accordingly</title><link>http://blogs.msdn.com/oldnewthing/archive/2007/04/06/2036150.aspx#2052671</link><pubDate>Sun, 08 Apr 2007 15:14:23 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2052671</guid><dc:creator>S</dc:creator><description>&lt;p&gt;david_douglass - *all* programmers are judged by middle management on how quickly they can get stuff done. Whoever you are and however you obtain work, you're being paid for tangible results. Nothing else.&lt;/p&gt;
&lt;p&gt;Unfortunately, Goodness comes with a premium that most people don't wish to pay. If you're really concerned about this, become a contractor and market yourself to those who care about quality.&lt;/p&gt;
</description></item><item><title>re: Code is read much more often than it is written, so plan accordingly</title><link>http://blogs.msdn.com/oldnewthing/archive/2007/04/06/2036150.aspx#2053230</link><pubDate>Sun, 08 Apr 2007 16:57:28 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2053230</guid><dc:creator>Michael Stiefel</dc:creator><description>&lt;p&gt;As is frequently the case, &amp;nbsp;Gerry Weinberg said it best in 1971, in the &amp;quot;Psychology of Computer Programming&amp;quot; (Chapter 1, 'Reading Programs'):&lt;/p&gt;
&lt;p&gt;&amp;quot;There are many reasons why programs are built the way they are, although we may fail to recognize the multiplicity of reasons because we usually look at code from the outside rather than by reading it. When we do read code, we find that some of it gets written because of machine limitations, some because of language limitations, some because of programmer limitations, some because of historical accidents, and some because of specifications--both essential and inessential. But for whatever reason a particular piece of code gets inserted into the final product, there are psychological aspects to the reason--which leads us to believe that studying programming as human behavior will bear numerous and not always expected fruits.&amp;quot;&lt;/p&gt;
</description></item><item><title>re: Code is read much more often than it is written, so plan accordingly</title><link>http://blogs.msdn.com/oldnewthing/archive/2007/04/06/2036150.aspx#2055625</link><pubDate>Mon, 09 Apr 2007 00:11:58 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2055625</guid><dc:creator>Jack</dc:creator><description>&lt;p&gt;I've been working on a large project for many years. In 2003 all hell broke lose, and we were 'forced' to pump out a lot of code and saved time by dropping comments: The code was 'obvious' anyway. Now everytime a bug crops up in that code it's &amp;quot;Awwww Crap! 2003 Crapolla!&amp;quot;&lt;/p&gt;
&lt;p&gt;Ever since then we comment liberally. Not beautiful, elegant comments: Just short brain dumps.&lt;/p&gt;
&lt;p&gt;Comments are one of those things we're told to do and undestand, but until you break the rule you don't really appreciate it. Well Dumbasses like us anyway :-)&lt;/p&gt;
</description></item><item><title>So true.</title><link>http://blogs.msdn.com/oldnewthing/archive/2007/04/06/2036150.aspx#2056230</link><pubDate>Mon, 09 Apr 2007 02:30:47 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2056230</guid><dc:creator>LanternLight</dc:creator><description>&lt;p&gt;&amp;quot;there's still a very good chance that somebody will have to stare at your code and figure out what it does: That person is probably going to be you, twelve months from now.&amp;quot;&lt;/p&gt;
&lt;p&gt;Learnt that a long time ago. &amp;nbsp;Wrote some superb Cobol code, I was really in the zone that day. &amp;nbsp;3 months later, it took me twice the (coding) time to work out my cleverness.&lt;/p&gt;
</description></item><item><title>re: Code is read much more often than it is written, so plan accordingly</title><link>http://blogs.msdn.com/oldnewthing/archive/2007/04/06/2036150.aspx#2062021</link><pubDate>Mon, 09 Apr 2007 19:37:23 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2062021</guid><dc:creator>StepH ~ Tijmoe</dc:creator><description>&lt;p&gt;Same things here... &amp;nbsp;Mow, It re-read my code, even if I don't plan to change it 2 weeks after I've write it.&lt;/p&gt;
&lt;p&gt;If i can easly re-read it, It simply it.&lt;/p&gt;
</description></item><item><title>re: Code is read much more often than it is written, so plan accordingly</title><link>http://blogs.msdn.com/oldnewthing/archive/2007/04/06/2036150.aspx#2062369</link><pubDate>Mon, 09 Apr 2007 20:30:34 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2062369</guid><dc:creator>Igor</dc:creator><description>&lt;p&gt;John C. Welch said: &amp;quot;So all you need to program to an API are the raw API calls? No documentation explaining what each one does, what it's for, what the ideal use case is, some possible pitfalls? No comments in header files explaining what is going on?&amp;quot;&lt;/p&gt;
&lt;p&gt;You see, there is no amount of comments in the code that will help you and the like and I will tell you why. It is because you don't bother to READ. At least you haven't read or understood my comment.&lt;/p&gt;
&lt;p&gt;I said that documentation is a good thing. Unfortunately, some programmers abuse /* ... */ and // for the sake of increasing their code line count.&lt;/p&gt;
&lt;p&gt;Moreover, employers are often unwilling to pay for quality code.&lt;/p&gt;
&lt;p&gt;Furthermore, I would expect a fellow developer reading my code to be able at least to look up API syntax in documentation. At least I was able to when I wrote the code and that't what API documentation is for, one should not have to duplicate it in the comment blocks.&lt;/p&gt;
&lt;p&gt;In the age of such technology as cell phones with broadband, palm pilots, pocket PCs all having internet access anywhere on the planet please don't tell me it would be so difficult to look up an API on MSDN even if you are dealing with the code printout over the lunch.&lt;/p&gt;
&lt;p&gt;Don't get me wrong, I am all for comments and documenting the code, but IMO they should say _why_ something is done in some particular way instead of wasting space on blindingly obvious things.&lt;/p&gt;
&lt;p&gt;My all time favorite are comments like this:&lt;/p&gt;
&lt;p&gt;a = b / 2; // we could use b &amp;gt;&amp;gt; 1 instead&lt;/p&gt;
&lt;p&gt;Like if it matters at all today when compilers will optimize it to right shift anyway.&lt;/p&gt;
&lt;p&gt;Believe me, I have seen a lot of comments like that one and the guys who write such code earn more money than I do even though the code itself is shorter than all the useless comments in it.&lt;/p&gt;
</description></item><item><title>re: Code is read much more often than it is written, so plan accordingly</title><link>http://blogs.msdn.com/oldnewthing/archive/2007/04/06/2036150.aspx#2062442</link><pubDate>Mon, 09 Apr 2007 20:43:56 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2062442</guid><dc:creator>Jeff Staddon</dc:creator><description>&lt;p&gt;&amp;quot;It seems that only us &amp;quot;old guys&amp;quot; come to this conclusion. &amp;nbsp;I'm still wait to meet a young programmer (under 35) that knows jack about commenting code. &amp;nbsp;It takes years of slogging it out to really grok the reason there are things like /* &amp;nbsp; */&amp;quot;&lt;/p&gt;
&lt;p&gt;Bravo! &amp;nbsp;However, there are always exceptions. &amp;nbsp;:-) &amp;nbsp;I did however have the good fortune of spending most of my first 5 years doing maintenance programming so I gained a lot of experience that other young developers don't get. &amp;nbsp;(Until their own code ages) &amp;nbsp;There's no better way to learn (both good practices and things to avoid) than working on code with a history!&lt;/p&gt;
&lt;p&gt;IMHO good comments are far harder to write than good code.&lt;/p&gt;
</description></item><item><title>LeoTech  &amp;raquo; Blog Archive   &amp;raquo; Dividing code into functions</title><link>http://blogs.msdn.com/oldnewthing/archive/2007/04/06/2036150.aspx#2063008</link><pubDate>Mon, 09 Apr 2007 21:31:17 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2063008</guid><dc:creator>LeoTech  » Blog Archive   » Dividing code into functions</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://lpetr.org/blog/archives/dividing-code-into-functions"&gt;http://lpetr.org/blog/archives/dividing-code-into-functions&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>re: Code is read much more often than it is written, so plan accordingly</title><link>http://blogs.msdn.com/oldnewthing/archive/2007/04/06/2036150.aspx#2064050</link><pubDate>Mon, 09 Apr 2007 23:44:11 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2064050</guid><dc:creator>Paul</dc:creator><description>&lt;p&gt;&amp;quot;I agree that code should be readable but having readability above the quality is absurd.&amp;quot; &lt;/p&gt;
&lt;p&gt;Who said there was an either / or decision here - having readable quality code should be the goal surely.&lt;/p&gt;
</description></item><item><title>re: Code is read much more often than it is written, so plan accordingly</title><link>http://blogs.msdn.com/oldnewthing/archive/2007/04/06/2036150.aspx#2064930</link><pubDate>Tue, 10 Apr 2007 01:28:10 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2064930</guid><dc:creator>Mr Cranky</dc:creator><description>&lt;p&gt;Favorite example:&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;SR &amp;nbsp; &amp;nbsp;R4,R4 &amp;nbsp; &amp;nbsp; &amp;nbsp;Clear register 3&lt;/p&gt;
&lt;p&gt;Favorite quote (albeit probably apocryphal): &amp;nbsp;&amp;quot;It was hard to write, so it should be hard to read.&amp;quot;&lt;/p&gt;
</description></item><item><title>re: Code is read much more often than it is written, so plan accordingly</title><link>http://blogs.msdn.com/oldnewthing/archive/2007/04/06/2036150.aspx#2065732</link><pubDate>Tue, 10 Apr 2007 03:03:08 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2065732</guid><dc:creator>Anony Moose</dc:creator><description>&lt;p&gt;A) &amp;quot;Always-on internet access anywhere on the planet&amp;quot; is a myth. If you planet consists of &amp;quot;work, home, starbucks&amp;quot; then you need to get out more.&lt;/p&gt;
&lt;p&gt;B) Looking up API syntax is easy, but looking up the reason for the API call in the first place is a little harder.&lt;/p&gt;
&lt;p&gt;C) A crap API is crap, even with documentation. A good API avoids pathetic idiocy such as &amp;quot;several BOOL paramaters&amp;quot; and thus avoids the need for both comments and re-reading API documentation.&lt;/p&gt;
</description></item><item><title>re: Code is read much more often than it is written, so plan accordingly</title><link>http://blogs.msdn.com/oldnewthing/archive/2007/04/06/2036150.aspx#2066900</link><pubDate>Tue, 10 Apr 2007 05:23:02 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2066900</guid><dc:creator>Norman Diamond</dc:creator><description>&lt;p&gt;Friday, April 06, 2007 8:40 PM by david_douglass &lt;/p&gt;
&lt;p&gt;&amp;gt; Thanks to discussions like these, I hope&lt;/p&gt;
&lt;p&gt;&amp;gt; people (especially middle management) will&lt;/p&gt;
&lt;p&gt;&amp;gt; start see how damaging contractors can be.&lt;/p&gt;
&lt;p&gt;Please stop blaming victims.&lt;/p&gt;
&lt;p&gt;&amp;gt; Contractors are almost always judged (at least&lt;/p&gt;
&lt;p&gt;&amp;gt; by the people approving the invoices) on how&lt;/p&gt;
&lt;p&gt;&amp;gt; quickly they can get things done.&lt;/p&gt;
&lt;p&gt;Thank you for stopping blaming victims. &amp;nbsp;But there's more.&lt;/p&gt;
&lt;p&gt;Sunday, April 08, 2007 8:14 AM by S &lt;/p&gt;
&lt;p&gt;&amp;gt; *all* programmers are judged by middle&lt;/p&gt;
&lt;p&gt;&amp;gt; management on how quickly they can get stuff&lt;/p&gt;
&lt;p&gt;&amp;gt; done.&lt;/p&gt;
&lt;p&gt;Only sometimes. &amp;nbsp;If you really get stuff done too quickly then your salary goes down and you don't get promoted. &amp;nbsp;You have to make a show of putting in unpaid overtime, not sleeping, and getting the results of programming while brain-dead.&lt;/p&gt;
&lt;p&gt;&amp;gt; Unfortunately, Goodness comes with a premium&lt;/p&gt;
&lt;p&gt;&amp;gt; that most people don't wish to pay.&lt;/p&gt;
&lt;p&gt;Bingo.&lt;/p&gt;
&lt;p&gt;Monday, April 09, 2007 1:43 PM by Jeff Staddon&lt;/p&gt;
&lt;p&gt;&amp;gt; IMHO good comments are far harder to write&lt;/p&gt;
&lt;p&gt;&amp;gt; than good code.&lt;/p&gt;
&lt;p&gt;Bingo.&lt;/p&gt;
&lt;p&gt;Monday, April 09, 2007 6:28 PM by Mr Cranky &lt;/p&gt;
&lt;p&gt;&amp;gt;Favorite example:&lt;/p&gt;
&lt;p&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; SR &amp;nbsp; &amp;nbsp;R4,R4 &amp;nbsp; &amp;nbsp; &amp;nbsp;Clear register 3&lt;/p&gt;
&lt;p&gt;That machine's manufacturer once boasted that they developed an automatic code commenting utility. &amp;nbsp;It generated really useful comments like that.&lt;/p&gt;
&lt;p&gt;&amp;gt; Favorite quote (albeit probably&lt;/p&gt;
&lt;p&gt;&amp;gt; apocryphal): &amp;nbsp;&amp;quot;It was hard to write, so it&lt;/p&gt;
&lt;p&gt;&amp;gt; should be hard to read.&amp;quot;&lt;/p&gt;
&lt;p&gt;That's from the excellent satire &amp;quot;Real Programmers Don't Use Pascal&amp;quot;. &amp;nbsp;What do you mean by apocryphal here?&lt;/p&gt;
</description></item><item><title>  Commented Code Doesn&amp;#8217;t Equal Clear Code | David Paul Robinson</title><link>http://blogs.msdn.com/oldnewthing/archive/2007/04/06/2036150.aspx#2067058</link><pubDate>Tue, 10 Apr 2007 05:44:37 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2067058</guid><dc:creator>  Commented Code Doesn’t Equal Clear Code | David Paul Robinson</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://www.davidpaulrobinson.com/2007/04/09/commented-code-doesnt-equal-clear-code/"&gt;http://www.davidpaulrobinson.com/2007/04/09/commented-code-doesnt-equal-clear-code/&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>I not only read my old code I   WATCH   it.</title><link>http://blogs.msdn.com/oldnewthing/archive/2007/04/06/2036150.aspx#2067374</link><pubDate>Tue, 10 Apr 2007 06:35:16 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2067374</guid><dc:creator>sss</dc:creator><description>&lt;p&gt;I came to the same conclusion a while ago. I was constantly being asked to update something I'd written 12 or more months ago. Before I started commenting my code it was a nightmare. &lt;/p&gt;
&lt;p&gt;But now I go one better... and I can watch my code. I create a screenshot video of me walking myself through the code, how it works, what can be modified, how I was going to add the next feature the client asked for at first but cut at the end, etc. I speak as if I was talking to someone with my abilites who was looking at this code for the first time.&lt;/p&gt;
&lt;p&gt;This has saved my bacon quite often. Sometimes I even do it Friday afternoon so I remember where I was come Monday morning. &lt;/p&gt;
&lt;p&gt;The really neat part is the customer gladly pays me to make these videos. I tell them it is one of my services to them; keeps them from being dependent on only me. When I tell them this on first contact they feel very confident about hiring me. &lt;/p&gt;
&lt;p&gt;In the end, they always come back for the update even though they I've given them everything they need to do it themselves. So, WATCH your code and only you will know what a newbee you were last year.&lt;/p&gt;
</description></item><item><title>My Pet Theory &amp;laquo; A Little Drop Of Cocoa</title><link>http://blogs.msdn.com/oldnewthing/archive/2007/04/06/2036150.aspx#2069495</link><pubDate>Tue, 10 Apr 2007 11:16:48 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2069495</guid><dc:creator>My Pet Theory « A Little Drop Of Cocoa</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://alittledrop.com/2007/04/10/my-pet-theory/"&gt;http://alittledrop.com/2007/04/10/my-pet-theory/&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>re: Code is read much more often than it is written, so plan accordingly</title><link>http://blogs.msdn.com/oldnewthing/archive/2007/04/06/2036150.aspx#2069795</link><pubDate>Tue, 10 Apr 2007 12:01:01 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2069795</guid><dc:creator>Igor</dc:creator><description>&lt;p&gt;Paul said: &amp;quot;Who said there was an either / or decision here - having readable quality code should be the goal surely.&amp;quot;&lt;/p&gt;
&lt;p&gt;Quality usually doesn't come with quantity. Or so they say.&lt;/p&gt;
&lt;p&gt;Anony Moose said: &amp;quot;A) &amp;quot;Always-on internet access anywhere on the planet&amp;quot; is a myth. If you planet consists of &amp;quot;work, home, starbucks&amp;quot; then you need to get out more.&amp;quot;&lt;/p&gt;
&lt;p&gt;FYI I live in Serbia where we don't have Starbucks and broadband is still in development compared to all other countries around the globe including India but even such a cheap bastard as myself has cell phone with Internet access. So much about myths then.&lt;/p&gt;
&lt;p&gt;Anony Moose said: &amp;quot;B) Looking up API syntax is easy, but looking up the reason for the API call in the first place is a little harder.&amp;quot;&lt;/p&gt;
&lt;p&gt;You are implying that people working with code don't have a clue about why APIs are getting called. If they don't then they need to find another job, otherwise they should stop bitching and moaning like a spoiled brats and earn their money for a change.&lt;/p&gt;
&lt;p&gt;Anony Moose said: &amp;quot;C) A crap API is crap, even with documentation. A good API avoids pathetic idiocy such as &amp;quot;several BOOL paramaters&amp;quot; and thus avoids the need for both comments and re-reading API documentation.&amp;quot;&lt;/p&gt;
&lt;p&gt;I agree, but what is done is done and not dealing with it the same way the original writer did is just an excuse for lazyness.&lt;/p&gt;
&lt;p&gt;Mr Cranky said: &amp;quot;It was hard to write, so it should be hard to read.&amp;quot;&lt;/p&gt;
&lt;p&gt;Tell me one good reason why it should be easy for *you* to read something which was hard for someone else to write?!?&lt;/p&gt;
&lt;p&gt;Why I can't expect *you* to understand someone else's code without them having to write shedloads of comments?&lt;/p&gt;
&lt;p&gt;And if I was the one who wrote that code and I get back to it to fix something, please spare me the crap that I won't be able to understand it after some time because it implies that I wouldn't be able to write it in the first place.&lt;/p&gt;
&lt;p&gt;If it is both hard to write and hard to read code for you then you have picked wrong profession. Go drive a plow.&lt;/p&gt;
&lt;p&gt;Show some dignity people and stop begging for work to be easy on you. If architects were designing buildings as sloppy as developers write code we would all be dead under huge piles of rubble by now.&lt;/p&gt;
</description></item><item><title>re: Code is read much more often than it is written, so plan accordingly</title><link>http://blogs.msdn.com/oldnewthing/archive/2007/04/06/2036150.aspx#2070348</link><pubDate>Tue, 10 Apr 2007 12:36:03 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2070348</guid><dc:creator>Drak</dc:creator><description>&lt;p&gt;If some function takes really weird parameters, I like the fact that in VB.NET you can do:&lt;/p&gt;
&lt;p&gt;strValue = Settings.GetValue(strSettingName:=&amp;quot;MySettingName&amp;quot;, blnDefaultToNothing:=True)&lt;/p&gt;
&lt;p&gt;This at least explains the True to people who didn't also write the GetValue function ;)&lt;/p&gt;
</description></item><item><title>re: Code is read much more often than it is written, so plan accordingly</title><link>http://blogs.msdn.com/oldnewthing/archive/2007/04/06/2036150.aspx#2071000</link><pubDate>Tue, 10 Apr 2007 14:10:48 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2071000</guid><dc:creator>Hywel</dc:creator><description>&lt;p&gt;There are some languages that lend themselves to better inherent readability. &amp;nbsp;Named actual paramaters in Ada, for example, are superb for documenting, as are more explicit named block delimiters, like &amp;quot;end if&amp;quot; and &amp;quot;end loop&amp;quot; instead of the general and often poorly indented &amp;quot;}&amp;quot;. (I particularly dislike that &amp;quot;{&amp;quot; and &amp;quot;}&amp;quot; rarely line up due to &amp;quot;{&amp;quot; so often being at the end of a line of code rather than at the start of the next line)&lt;/p&gt;
&lt;p&gt;Forced intentation (indentation as block syntax) is a nice readability feature. &amp;nbsp;Occam had that.&lt;/p&gt;
</description></item><item><title>re: Code is read much more often than it is written, so plan accordingly</title><link>http://blogs.msdn.com/oldnewthing/archive/2007/04/06/2036150.aspx#2089600</link><pubDate>Wed, 11 Apr 2007 21:24:05 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2089600</guid><dc:creator>zzz</dc:creator><description>&lt;p&gt;(tooltips etc) &amp;quot;And finally, another commenter pointed out that this doesn't help you if you're reading code anywhere outside your IDE.&amp;quot;&lt;/p&gt;
&lt;p&gt;If you really wanted, it shouldn't be too hard to create a new copy/print feature that would add the parameter types in either small print below the calls or color coded next to them. Or just a flip switch to turn this presentation on in the code editor.&lt;/p&gt;
&lt;p&gt;Of course better yet would be to write better APIs but that doesn't really help with past mistakes.&lt;/p&gt;
</description></item><item><title>re: Code is read much more often than it is written, so plan accordingly</title><link>http://blogs.msdn.com/oldnewthing/archive/2007/04/06/2036150.aspx#2097868</link><pubDate>Thu, 12 Apr 2007 13:07:30 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2097868</guid><dc:creator>Michiel</dc:creator><description>&lt;p&gt;I've got a nice NOT_GOOD_AFTER(YYYY,MM,DD) macro that fails to compile if __DATE__ is later than that. Very useful to put in hacked code, so your code stops compiling and you are forced to get back to it. &lt;/p&gt;
</description></item><item><title>
The Lone Sysadmin &amp;raquo; links for 2007-04-17</title><link>http://blogs.msdn.com/oldnewthing/archive/2007/04/06/2036150.aspx#2161365</link><pubDate>Tue, 17 Apr 2007 09:17:51 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2161365</guid><dc:creator>
The Lone Sysadmin » links for 2007-04-17</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://lonesysadmin.net/2007/04/17/links-for-2007-04-17/"&gt;http://lonesysadmin.net/2007/04/17/links-for-2007-04-17/&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>re: Code is read much more often than it is written, so plan accordingly</title><link>http://blogs.msdn.com/oldnewthing/archive/2007/04/06/2036150.aspx#2166662</link><pubDate>Wed, 18 Apr 2007 01:07:32 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2166662</guid><dc:creator>David Pritchard</dc:creator><description>&lt;p&gt;I once talked to a young guy who was studying IT who confessed that he never wrote comments in code. He said that the reason he got into computing was &amp;quot;to avoid writing&amp;quot;. Then we have those (like some contributors here) who believe that deducing the intentions behind densely-packed (and uncommented) C or assembler is some kind of programmers' rite of passage. All depressing and frustrating for language-oriented types like me. &lt;/p&gt;
&lt;p&gt;It seems to me that people confuse two things: the syntax of code, and the purpose behind it. For me, the problem in understanding code (including my own), is knowing WHY I did something, rather than WHAT I did. In real software, not all of the logic leaps out at you from the screen. You need to explain it. &lt;/p&gt;
</description></item><item><title>On code quality: read your code | TE chnology</title><link>http://blogs.msdn.com/oldnewthing/archive/2007/04/06/2036150.aspx#9382845</link><pubDate>Thu, 29 Jan 2009 13:00:51 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9382845</guid><dc:creator>On code quality: read your code | TE chnology</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://blog.tetrack.com/2009/01/on-code-quality-read-your-code/"&gt;http://blog.tetrack.com/2009/01/on-code-quality-read-your-code/&lt;/a&gt;&lt;/p&gt;
</description></item></channel></rss>