Single Letter Variable Names Still Considered Harmful

Posted by: K. Scott Allen, on 17 Nov 2008 | View original | Bookmarked: 0 time(s)

There is a lot of humor in the Bad Variable Names entry on the c2 wiki. I like this confession from Alex: The worst of which was my counter variable names. I now use i, j, k, and so on for local counts and things like activeRowCount for the more descriptive names. Before, in the early years mind you, it shames me to say, I would name my counters things like Dracula, Chocula*, MonteChristo. They are all counts after all. I apologize for my intial variable naming conventions and shall go beat my face...

Advertisement
Free Agile Project Management Tool from Telerik
TeamPulse Community Edition helps your team effectively capture requirements, manage project plans, assign and track work, and most importantly, be continually connected with each other.
Category: .NET | Other Posts: View all posts by this blogger | Report as irrelevant | View bloggers stats | Views: 1041 | Hits: 38

Similar Posts

  • Ambiguous References in DefaultWsdlHelpGenerator.aspx more
  • Adding Default Assemblies, Namespaces and Control Prefixes in Web.Config more
  • Refactoring the GoF patterns (Singleton in .NET continued more
  • Singleton in .NET more
  • BizTalk Server 2006: An xpath() Function problem more
  • RailsConf Europe Notes: Playing It Safe more

News Categories

.NET | Agile | Ajax | Architecture | ASP.NET | BizTalk | C# | Certification | Data | DataGrid | DataSet | Debugger | DotNetNuke | Events | GridView | IIS | Indigo | JavaScript | Mobile | Mono | Patterns and Practices | Performance | Podcast | Refactor | Regex | Security | Sharepoint | Silverlight | Smart Client Applications | Software | SQL | VB.NET | Visual Studio | W3 | WCF | WinFx | WPF | WSE | XAML | XLinq | XML | XSD