<?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>Refactoring Switch or IF/ELSE statements</title><link>http://blogs.msdn.com/pusu/archive/2008/02/28/refactoring-switch-or-if-else-statements.aspx</link><description>It is not unusual to see a lot of switch statements or multiple if else statements in OO codes. From the view of code maintainability, probably some of such codes need refactoring. Strategy pattern is a good replacement. For example, the old code is like:</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>BioSensorAB &amp;raquo; Refactoring Switch or IF/ELSE statements</title><link>http://blogs.msdn.com/pusu/archive/2008/02/28/refactoring-switch-or-if-else-statements.aspx#7928266</link><pubDate>Thu, 28 Feb 2008 06:37:58 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7928266</guid><dc:creator>BioSensorAB » Refactoring Switch or IF/ELSE statements</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://www.biosensorab.org/2008/02/27/refactoring-switch-or-ifelse-statements/"&gt;http://www.biosensorab.org/2008/02/27/refactoring-switch-or-ifelse-statements/&lt;/a&gt;&lt;/p&gt;
</description></item></channel></rss>