<?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>One Liners</title><link>http://blogs.msdn.com/b/coolbeans/archive/2006/12/15/one-liners.aspx</link><description>We've all been there. Whether it's in C++, C#, Java, ASM, which ever it is the temptation exists. Doing as many things as possible in one line of code instead of dutifully expanding it to it's required three or four lines. A C++ example: 
 *( pData </description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>Your Legacy</title><link>http://blogs.msdn.com/b/coolbeans/archive/2006/12/15/one-liners.aspx#1667445</link><pubDate>Tue, 13 Feb 2007 10:47:37 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1667445</guid><dc:creator>CoolBeans: From College to Industry</dc:creator><description>&lt;p&gt;I'm sure you want to have a legacy. People will remember you and tell stories about what you did and&lt;/p&gt;
&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=1667445" width="1" height="1"&gt;</description></item><item><title>re: One Liners</title><link>http://blogs.msdn.com/b/coolbeans/archive/2006/12/15/one-liners.aspx#1509230</link><pubDate>Mon, 22 Jan 2007 22:01:52 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1509230</guid><dc:creator>Mike Lutz</dc:creator><description>&lt;p&gt;One way of assessing the quality of your code is to have one of your colleagues critique it. Now I know this can't be done on every class (or even every method), but if folks did this for each other once in awhile everyone's code quality would improve.&lt;/p&gt;
&lt;p&gt;Of course, this might be automatic in organizations where code inspections are the norm, but in my experience the dynamic of an inspection meeting militates against such searching critiques. I certainly feel better when I ask a colleague to look at my work and only he (she) and I are privy to the red-ink annotations.&lt;/p&gt;
&lt;p&gt;And now to pat myself on the back. In the early 80's I was commissioned to develop a cross assembler for a local firm; the assembler ran on a PDP-11. When the firm upgraded to a Vax, they ported my code and found an error (1! error) related to moving from a 16-bit to 32-bit environment. I went in to help diagnose the problem, and it was pretty easy to resolve.&lt;/p&gt;
&lt;p&gt;However, what gave me the greatest pleasure was having the developer working on the assembler comment on how satisfying it was to work on the code, as it was so well organized and documented. Praise from one's peers - can't beat that.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=1509230" width="1" height="1"&gt;</description></item></channel></rss>