InfoQ

News

Seven Deadly Sins of Programming

Posted by Marcie Jones on Aug 15, 2006 06:30 PM

Community
.NET
Topics
.NET Framework
Tags
Coding Standards
Let's face it, all developers have written code in the past that they now regret.  Along the way, most also develop a mental list of the most egregious bad development practice to avoid in the future.  Eric Gunnerson, C# Community Coordinator at Microsoft, has posted his list of the Seven Deadliest Sins of Programming:

  • Excessive Coupling
  • Inappropriately Clever Code
  • Deferred Refactoring
  • Premature Optimization
  • Overuse of Virtual (C#) or Overridable (VB.NET)
  • Overuse of Inheritance
  • Premature Generalization
MVP and author Bill Ryan has a list of 7 Deadly Sins including more conceptual items, such as "making too many assumptions."

What's on your list?

2 comments

Reply

How about ... by Cameron Purdy Posted Aug 17, 2006 11:55 AM
Failure to follow DRY principle ... by Sammy Larbi Posted Aug 22, 2006 11:55 AM
  1. Back to top

    How about ...

    Aug 17, 2006 11:55 AM by Cameron Purdy

    Making non-virtual the default for methods in an OO language? ;-) (It's probably the biggest design mistake in the C# language. Welcome to the 1980s and C-front, folks!) Peace, Cameron Purdy Tangosol Coherence: The Java Data Grid

  2. Back to top

    Failure to follow DRY principle ...

    Aug 22, 2006 11:55 AM by Sammy Larbi

    Although, I guess that could come under "deferred refactoring," considering that not refactoring would be deferring it for infinite time.

Exclusive Content

Rob Windsor on WCF with REST, JSON and RSS

WCF is not just for SOAP based services and can be used with popular protocols like RSS, REST and JSON. Join Rob Windsor as he introduces WCF 3.5 and its new native support for non-SOAP services.

Christophe Coenraets Discusses Flex 3, AIR, and BlazeDS

Christophe Coenraets discusses Flex 3, Flex Builder, AIR, BlazeDS, Adobe and open source, integrating Flex with existing applications, and integrating RIAs with search engines and browsers.

Debunking Common Refactoring Misconceptions

Danijel Arsenovski attempts to dispel some of the myths around refactoring and how it applies to .NET developers.

REST Eye for the SOA Guy

In this presentation, recorded at QCon San Francisco, CORBA guru Steve Vinoski explains REST from the view of someone who comes to SOA from a traditional, RPC-oriented background.

Choose Feature Teams over Component Teams for Agility

Feature teams are key to scaling agility for large teams. In an excerpt from "Scaling Lean and Agile Development," Larman & Vodde show how feature teams resolve traditional problems & raise new issues

Billy Newport explains Virtualization

Billy Newport talks about virtualization, eXtreme Transaction Processing (XTP) and WebSphere Virtual Enterprise. He discusses hardware, hypervisor, JVM, application and data virtualization.

Virtualization and Security

While virtualization provides many benefits, security can not be a forgotten concept in its application.

Introduction to Agile for Traditional Project Managers

This session is specifically aimed at traditionally trained project managers who are new to Agile, and who would like to be able to relate the PMI's best practices to their Agile equivalents.