<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>Theoden's Code Tips</title><link>http://blogs.acceleration.net/ryan/category/38.aspx</link><description>Coding hints straight from the King.</description><managingEditor>Ryan</managingEditor><dc:language>en-US</dc:language><generator>.Text Version 0.95.2004.102</generator><item><dc:creator>Ryan</dc:creator><title>Theoden picking up the slack.</title><link>http://blogs.acceleration.net/ryan/archive/2005/03/04/699.aspx</link><pubDate>Fri, 04 Mar 2005 13:51:00 GMT</pubDate><guid>http://blogs.acceleration.net/ryan/archive/2005/03/04/699.aspx</guid><description>Now my brother &lt;a href="http://molecularbear.com/blog/"&gt;Theoden&lt;/a&gt; has decided to pick up the torch and dispense his own tips.  His &lt;a href="http://www.molecularbear.com/blog/archives/2005/02/tip_1_all_funct.html"&gt;first tip&lt;/a&gt; describes the brilliant &lt;code&gt;LEN&lt;/code&gt; function in SQL Server.  &lt;br /&gt;&lt;br /&gt;
Try &lt;code&gt;SELECT LEN('1234 ')&lt;/code&gt; to see what he means.&lt;img src ="http://blogs.acceleration.net/ryan/aggbug/699.aspx" width = "1" height = "1" /&gt;</description><body xmlns="http://www.w3.org/1999/xhtml">Now my brother <a href="http://molecularbear.com/blog/">Theoden</a> has decided to pick up the torch and dispense his own tips.  His <a href="http://www.molecularbear.com/blog/archives/2005/02/tip_1_all_funct.html">first tip</a> describes the brilliant <code>LEN</code> function in SQL Server.  <br /><br />
Try <code>SELECT LEN('1234 ')</code> to see what he means.<img src ="http://blogs.acceleration.net/ryan/aggbug/699.aspx" width = "1" height = "1" /></body></item><item><dc:creator>Ryan</dc:creator><title>Theoden's code tips #4</title><link>http://blogs.acceleration.net/ryan/archive/2005/02/08/627.aspx</link><pubDate>Tue, 08 Feb 2005 11:05:00 GMT</pubDate><guid>http://blogs.acceleration.net/ryan/archive/2005/02/08/627.aspx</guid><description>Another good tip from 8/31/2004:
&lt;blockquote&gt;
when you make CVS log messages, make them as vague as possible to make sure that people have to diff old versions to see what you did. "added validation" is a good example, though perhaps a little too specific since it gives one a clue as to what was changed.
&lt;/blockquote&gt;&lt;img src ="http://blogs.acceleration.net/ryan/aggbug/627.aspx" width = "1" height = "1" /&gt;</description><body xmlns="http://www.w3.org/1999/xhtml">Another good tip from 8/31/2004:
<blockquote>
when you make CVS log messages, make them as vague as possible to make sure that people have to diff old versions to see what you did. "added validation" is a good example, though perhaps a little too specific since it gives one a clue as to what was changed.
</blockquote><img src ="http://blogs.acceleration.net/ryan/aggbug/627.aspx" width = "1" height = "1" /></body></item><item><dc:creator>Ryan</dc:creator><title>Theoden's code tips #3</title><link>http://blogs.acceleration.net/ryan/archive/2005/01/12/483.aspx</link><pubDate>Wed, 12 Jan 2005 17:18:00 GMT</pubDate><guid>http://blogs.acceleration.net/ryan/archive/2005/01/12/483.aspx</guid><description>This handy tip came in on 12/07/2004.
&lt;blockquote&gt;
arbitrarily use a perl script to send email, even if your entire application is done in a different language
&lt;/blockquote&gt;&lt;img src ="http://blogs.acceleration.net/ryan/aggbug/483.aspx" width = "1" height = "1" /&gt;</description><body xmlns="http://www.w3.org/1999/xhtml">This handy tip came in on 12/07/2004.
<blockquote>
arbitrarily use a perl script to send email, even if your entire application is done in a different language
</blockquote><img src ="http://blogs.acceleration.net/ryan/aggbug/483.aspx" width = "1" height = "1" /></body></item><item><dc:creator>Ryan</dc:creator><title>Theoden's code tips #2</title><link>http://blogs.acceleration.net/ryan/archive/2005/01/07/462.aspx</link><pubDate>Fri, 07 Jan 2005 14:45:00 GMT</pubDate><guid>http://blogs.acceleration.net/ryan/archive/2005/01/07/462.aspx</guid><description>Since Theoden is getting a new job that doesn't involve legacy code, I've been going through my chat logs to pick out more.  This tip came in on 2/26/2004.
&lt;blockquote&gt;
if you have a logical grouping of business logic, split the logic into two separate functions. Like so: &lt;br /&gt;
 &lt;pre&gt;
 eoc_check_toxicity()
 eoc_toxicity_checks() &lt;/pre&gt;
 that way if you accidentally delete one of the functions, at least some of the logic will still be there
&lt;/blockquote&gt;&lt;img src ="http://blogs.acceleration.net/ryan/aggbug/462.aspx" width = "1" height = "1" /&gt;</description><body xmlns="http://www.w3.org/1999/xhtml">Since Theoden is getting a new job that doesn't involve legacy code, I've been going through my chat logs to pick out more.  This tip came in on 2/26/2004.
<blockquote>
if you have a logical grouping of business logic, split the logic into two separate functions. Like so: <br />
 <pre>
 eoc_check_toxicity()
 eoc_toxicity_checks() </pre>
 that way if you accidentally delete one of the functions, at least some of the logic will still be there
</blockquote><img src ="http://blogs.acceleration.net/ryan/aggbug/462.aspx" width = "1" height = "1" /></body></item><item><dc:creator>Ryan</dc:creator><title>Theoden's code tips #1</title><link>http://blogs.acceleration.net/ryan/archive/2005/01/07/460.aspx</link><pubDate>Fri, 07 Jan 2005 11:56:00 GMT</pubDate><guid>http://blogs.acceleration.net/ryan/archive/2005/01/07/460.aspx</guid><description>Every now and then I get some coding pointers from my brother as he works through PHP legacy code.  Here's #1:
&lt;blockquote&gt;litter your code with unused variables and assignments - if you have too few variables it'll make your application too light and it'll float away&lt;/blockquote&gt;&lt;img src ="http://blogs.acceleration.net/ryan/aggbug/460.aspx" width = "1" height = "1" /&gt;</description><body xmlns="http://www.w3.org/1999/xhtml">Every now and then I get some coding pointers from my brother as he works through PHP legacy code.  Here's #1:
<blockquote>litter your code with unused variables and assignments - if you have too few variables it'll make your application too light and it'll float away</blockquote><img src ="http://blogs.acceleration.net/ryan/aggbug/460.aspx" width = "1" height = "1" /></body></item></channel></rss>