Skip to content

Instantly share code, notes, and snippets.

View bryzaguy's full-sized avatar

Bryant Syme bryzaguy

  • Brooklyn, New York
View GitHub Profile

#Patterns DAWG

##Methodologies

The methodologies used when coding make a big impact on the resulting code. The two most important methodologies to prescribed for high quality and maintainable code are Test Driven Development and Refactoring.

###Test Driven Development (TDD)

Writing tests before production code sounds simple but changes the resulting code and resulting architecture.

#C# Coding Standards

###Refactoring

Embrace refactoring! Make code refactorable by adding tests using TDD. Really TDD exists to allow refactoring.

The term code smell comes from Martin Fowler's book Refactoring. If you haven't already, read this book. The examples are in Java but they easily translate to C#. Don't write new code that has smells by refactoring them out. Here is a list of the most egregious smells:

  • Duplicated code.
  • Long Method.