<?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>Are Refactorings safe?</title><link>http://blogs.msdn.com/jaybaz_ms/archive/2004/02/26/80518.aspx</link><description>The C# refactorings we're building in Whidbey are designed to be reliable. Not all of our customers use TDD, but many will use the refactoring tools we build. If the tools don't work reliably, users will stop using them. The big exception was unbuildable</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>re: Are Refactorings safe?</title><link>http://blogs.msdn.com/jaybaz_ms/archive/2004/02/26/80518.aspx#80541</link><pubDate>Thu, 26 Feb 2004 18:46:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:80541</guid><dc:creator>Darrell</dc:creator><description>I would prefer warning messages to removing the functionality, especially with a &amp;quot;do not show this message again&amp;quot; option.  :)  Why limit advanced users in catering to the less-advanced users?</description></item><item><title>re: Are Refactorings safe?</title><link>http://blogs.msdn.com/jaybaz_ms/archive/2004/02/26/80518.aspx#80546</link><pubDate>Thu, 26 Feb 2004 19:00:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:80546</guid><dc:creator>Olle de Zwart</dc:creator><description>I agree 100% with Darrell</description></item><item><title>re: Are Refactorings safe?</title><link>http://blogs.msdn.com/jaybaz_ms/archive/2004/02/26/80518.aspx#80564</link><pubDate>Thu, 26 Feb 2004 19:17:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:80564</guid><dc:creator>Omer van Kloeten</dc:creator><description>+1 for Darrell.&lt;br&gt;&lt;br&gt;You should do the same when a user changes from code view to design view and tries to change something in the Windows Forms designer.&lt;br&gt;If you try and do that in VS.NET 2002/3, either some or almost all of your work is lost and is unrecoverable.&lt;br&gt;That just sucks.</description></item><item><title>re: Are Refactorings safe?</title><link>http://blogs.msdn.com/jaybaz_ms/archive/2004/02/26/80518.aspx#80573</link><pubDate>Thu, 26 Feb 2004 19:34:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:80573</guid><dc:creator>Jay Bazuzi [MS]</dc:creator><description>You mean when you edit in the area that says &amp;quot;Do not edit&amp;quot;?  *wink*</description></item><item><title>re: Are Refactorings safe?</title><link>http://blogs.msdn.com/jaybaz_ms/archive/2004/02/26/80518.aspx#80576</link><pubDate>Thu, 26 Feb 2004 19:36:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:80576</guid><dc:creator>Steve Hall</dc:creator><description>What about inserting comments that are easy to find, like the // TODO: comments generated by C++ wizards?  Something like:   // TODO:  Inspect the following refactored statement for this potential problem: xxx xxx.&lt;br&gt;&lt;br&gt;And when these potential problems could occur, I would even want the original statement left as a comment after the above // TODO, to serve as a reference to the old code.&lt;br&gt;&lt;br&gt;Also, adding project setting options to turn on/off prompts and another one to turn on/off comments would be good to have to control this behavior. &lt;br&gt;&lt;br&gt;Also, there should probably be at least one project setting checkbox to turn on/off all unsafe refactorings.  Ideally, you could have separate checkboxes for each type of refactoring and warn the user when exiting out of the project settings property page that they've chosen some unsafe refactoring methods.&lt;br&gt; &lt;br&gt;If you choose to implement only prompts, then maybe you could have buttons like:  &amp;quot;Skip&amp;quot;, &amp;quot;Proceed - No Comment&amp;quot;, and &amp;quot;Proceed - Comment&amp;quot; to allow for warning comments to be left behind.&lt;br&gt;&lt;br&gt;In any case, please don't remove unsafe refactorings, as that dilutes the entire idea of refactoring (taking some risk to improve the code).  Instead, offer some assistance if it can't be automatic (safe).</description></item><item><title>re: Are Refactorings safe?</title><link>http://blogs.msdn.com/jaybaz_ms/archive/2004/02/26/80518.aspx#80603</link><pubDate>Thu, 26 Feb 2004 20:16:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:80603</guid><dc:creator>Ferris Beuller</dc:creator><description>WInform designer isnt reliable, resx files are a joke that cant refactor too well . I stopped supporting .resx and winform designers.&lt;br&gt;&lt;br&gt;</description></item><item><title>re: Are Refactorings safe?</title><link>http://blogs.msdn.com/jaybaz_ms/archive/2004/02/26/80518.aspx#80605</link><pubDate>Thu, 26 Feb 2004 20:16:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:80605</guid><dc:creator>Ferris Beuller</dc:creator><description>Yeah and ANY code thats in a project, I will edit if I damn well see fit. If your tools cant handle it I stop using it.&lt;br&gt;&lt;br&gt;</description></item><item><title>re: Are Refactorings safe?</title><link>http://blogs.msdn.com/jaybaz_ms/archive/2004/02/26/80518.aspx#80641</link><pubDate>Thu, 26 Feb 2004 20:29:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:80641</guid><dc:creator>Michael Teper</dc:creator><description>+1 for Darrell</description></item><item><title>re: Are Refactorings safe?</title><link>http://blogs.msdn.com/jaybaz_ms/archive/2004/02/26/80518.aspx#80648</link><pubDate>Thu, 26 Feb 2004 20:47:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:80648</guid><dc:creator>Frans Bouma</dc:creator><description>I'm perhaps missing something but what's TDD?&lt;br&gt;&lt;br&gt;I agree with Darrell btw.</description></item><item><title>Frans</title><link>http://blogs.msdn.com/jaybaz_ms/archive/2004/02/26/80518.aspx#80657</link><pubDate>Thu, 26 Feb 2004 20:50:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:80657</guid><dc:creator>senkwe</dc:creator><description>TDD == Test Driven Development. If that was a serious question, it warms my heart that you can still create excellent software (LLBLGenPro) without necessarily requiring TDD (Of course you might have done it that way, just under a diff name)</description></item><item><title>re: Are Refactorings safe?</title><link>http://blogs.msdn.com/jaybaz_ms/archive/2004/02/26/80518.aspx#80677</link><pubDate>Thu, 26 Feb 2004 21:28:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:80677</guid><dc:creator>Omer van Kloeten</dc:creator><description>Jay- Which &amp;quot;Do not edit&amp;quot; area are you talking about? I have seen nothing like that...</description></item><item><title>re: Are Refactorings safe?</title><link>http://blogs.msdn.com/jaybaz_ms/archive/2004/02/26/80518.aspx#80683</link><pubDate>Thu, 26 Feb 2004 21:35:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:80683</guid><dc:creator>Naginata</dc:creator><description>Wow, I'm glad you posted your link Frans, if I ever clear all the red flags off my desk I'm going to have to take a look at the LLBLGenPro demo :)&lt;br&gt;&lt;br&gt;My feeling on refactorings is... I hate getting warnings and notifactions popping up at me, because 90% of the time, I already know that what I did was potentially dumb, and I want to do it anyway, and the 10% that I SHOULD read the warning, I never do because I'm trained to just click ok/cancel/ignore/whatever.&lt;br&gt;&lt;br&gt;I think that leaving comments around can be one way to do it, especially on unbuilt/dirty (as in edited) code.  I also think that the new &amp;quot;color coding&amp;quot; features going in to whidbey could be used... maybe have a special color for code that's been changed by the refactoring tool since the last build or something?</description></item><item><title>re: Are Refactorings safe?</title><link>http://blogs.msdn.com/jaybaz_ms/archive/2004/02/26/80518.aspx#81019</link><pubDate>Fri, 27 Feb 2004 12:07:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:81019</guid><dc:creator>Robert Watkins</dc:creator><description>Jay,&lt;br&gt;&lt;br&gt;One option to consider with the refactoring is a preview mode, where the user can inspect the (possibly dangerous) refactoring and decide for themselves.</description></item><item><title>re: Visual Studio 2005 = </title><link>http://blogs.msdn.com/jaybaz_ms/archive/2004/02/26/80518.aspx#107966</link><pubDate>Mon, 05 Apr 2004 23:59:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:107966</guid><dc:creator>Dan Fernandez's Blog</dc:creator><description /></item><item><title>Whidbey: Are Refactorings safe?</title><link>http://blogs.msdn.com/jaybaz_ms/archive/2004/02/26/80518.aspx#221461</link><pubDate>Fri, 27 Aug 2004 15:56:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:221461</guid><dc:creator>ABS</dc:creator><description /></item></channel></rss>