“Just changing your variable name rarely affects the outcome of your code. Just as naming your dog one name vs another. The dog is still the same dog.” [^]
Tags
.NET ADO.NET AggregateException Anti-pattern asp.net ASP.NET MVC C# C# 3 Code Quality ConcurrentDictionary Conference CTP/Beta Database data design DDD DDD Scotland Debugging design patterns error handling fun Google Analytics hiring IIS Installation javascript learning LINQ object oriented design parallelisation parallelization PHP refactoring security software development practices Spatial SQL SQL Injection Attack SQL Server SQL Server 2008 unit testing virtual earth visual studio Visual Studio 2008 Windows 7 Windows VistaArchives
- April 2012
- March 2012
- February 2012
- January 2012
- November 2011
- October 2011
- September 2011
- August 2011
- July 2011
- June 2011
- May 2011
- April 2011
- March 2011
- February 2011
- January 2011
- October 2010
- September 2010
- August 2010
- July 2010
- June 2010
- May 2010
- March 2010
- February 2010
- January 2010
- December 2009
- November 2009
- October 2009
- September 2009
- August 2009
- July 2009
- June 2009
- May 2009
- April 2009
- March 2009
- February 2009
- January 2009
- December 2008
- November 2008
- October 2008
- September 2008
- August 2008
- July 2008
- June 2008
- May 2008
- April 2008
- March 2008
- February 2008
- January 2008
- December 2007
- November 2007
- October 2007
- September 2007
- August 2007
- July 2007
- June 2007
- March 2007
- February 2007
- December 2006
- July 2006
- April 2005

Hi Colin, hope your well.
I don’t know about this quote, which means I disagree with the quote. Yes changing the variable name won’t change the outcome of the code, it’s external representation, but it does effect it’s internal representation. You know all about this, why am I telling you; cde readability.
What would happen if the dog was named “cat” for example. It’s still the same dog yes but what would other people think your pet was if you stood calling out “cat” when the buggers done a runner.
Maybe this is an anti-quote.
The quote probably doesn’t work so well out of context.
The context was that a person was trying to get some code to work and was doing weird stuff to try and get it to work. In amongs that he changed a variable from “gt” to “fr”.
I agree that in the context of code readability it does help that variables are well named, but when you try and fix something by giving a badly named variable a different bad name it isn’t really going to help all that much.