<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.technet.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>Hey, Scripting Guy! What Are the Areas for Improvement You See in Scripts Submitted for the 2010 Scripting Games?</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2010/06/11/hey-scripting-guy-what-are-the-areas-for-improvement-you-see-in-scripts-submitted-for-the-2010-scripting-games.aspx</link><description>Hey, Scripting Guy! What type of errors and mistakes did you notice in the entries for the 2010 Scripting Games? 
 -- BA 
 
 
 Hello BA, 
 Microsoft Scripting Guy Ed Wilson here. I am a really laid back sort of guy, and I do not like the words &amp;ldquo;errors&amp;rdquo;</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: Hey, Scripting Guy! What Are the Areas for Improvement You See in Scripts Submitted for the 2010 Scripting Games?</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2010/06/11/hey-scripting-guy-what-are-the-areas-for-improvement-you-see-in-scripts-submitted-for-the-2010-scripting-games.aspx#3358205</link><pubDate>Mon, 27 Sep 2010 18:46:39 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3358205</guid><dc:creator>KsFarmBoy</dc:creator><description>&lt;p&gt;Great article, as usual, but I DO take issue with one point: &amp;quot;Functions should be organized in the order in which they are called.&amp;quot;&lt;/p&gt;
&lt;p&gt;My preference, and it is no more than that, is to put functions in alpha order. &amp;nbsp;This way, I can always find them and am not forced to go back and re-arrange entries when I change my logic.&lt;/p&gt;
&lt;p&gt;Just a thought...&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3358205" width="1" height="1"&gt;</description></item><item><title>re: Hey, Scripting Guy! What Are the Areas for Improvement You See in Scripts Submitted for the 2010 Scripting Games?</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2010/06/11/hey-scripting-guy-what-are-the-areas-for-improvement-you-see-in-scripts-submitted-for-the-2010-scripting-games.aspx#3337787</link><pubDate>Sat, 12 Jun 2010 16:38:41 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3337787</guid><dc:creator>Glenn Sizemore</dc:creator><description>&lt;p&gt;Great advice, a solid list, but I take issue with one point. &amp;nbsp;The use of the Foreach-Object cmdlet is by far more efficient from a keystrokes perspective, but the Foreach statement IS faster. I would argue that when scripting performance is more important. &amp;nbsp;Hence the use of the Foreach language statement is the best practice. It is not only easier to read a Foreach loop as the variable is named and can be given context (I know what $file is $_ could be anything), but it IS much faster. Unfortunately there are times when using Foreach requires you to breakup you&amp;#39;re code, and results in something that is hard to read.... I&amp;#39;m not trying to make a blanket statement. &amp;nbsp;The truth is you should try BOTH, and use what ever works best for you&amp;#39;re situation.&lt;/p&gt;
&lt;p&gt;Don&amp;#39;t get me wrong the pipeline is a fantastic thing, but it can be abused. Another example of this would be using where-object to filter results on a cmdlet that supports filtering (Get-WMIObject,Get-ChildContent,etc)! &amp;nbsp;&lt;/p&gt;
&lt;p&gt;I really like the idea of deducting points for reinventing the wheel. Anyways, keep up the great work, look forward to next year!&lt;/p&gt;
&lt;p&gt;~Glenn&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3337787" width="1" height="1"&gt;</description></item><item><title>re: Hey, Scripting Guy! What Are the Areas for Improvement You See in Scripts Submitted for the 2010 Scripting Games?</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2010/06/11/hey-scripting-guy-what-are-the-areas-for-improvement-you-see-in-scripts-submitted-for-the-2010-scripting-games.aspx#3337752</link><pubDate>Sat, 12 Jun 2010 07:27:27 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3337752</guid><dc:creator>Robert van den Nieuwendijk</dc:creator><description>&lt;p&gt;This is a very interesting blogpost. I read a lot of things that I can use to improve my code. One thing that I noticed is that you mentioned the Test-Computer cmdlet. But that doesn&amp;#39;t exist. You probably have to change this into the Test-Connection cmdlet.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3337752" width="1" height="1"&gt;</description></item></channel></rss>