Clean Code: Writing Code for Humans

Inspired by Steve McConnel’s “Code Complete”, Uncle Bob’s “Clean Code” and Andrew Hunt’s “The Pragmatic Programmer”, this session reviews best practices for writing code in a style that’s easy to create, maintain and understand. We have a lofty goal: programming style as documentation. We’ll discuss concrete methods to get you there and give you a vocabulary for pragmatically evaluating code quality.

Various refactoring techniques, code smells, anti-patterns, and rules of thumb are discussed including fail fast, return early, separation of concerns, arrow code, magic numbers, the boy scout rule, being “stringly typed”, DRY, the stepdown rule, table-driven methods, the importance of staying native, techniques for finding subtle redundancy, reinventing the square wheel, when to create a method, doing comments right, horizontal and vertical density, and simple design patterns. Part of this session involves refactoring a confusing and ugly chunk of code into something beautiful, easy to read and maintain. While examples are in C#, coders in any language should be able to follow along and apply the principles discussed.

Looking for the Handout? Here ya go.


This session was also adapted and radically expanded into my first Pluralsight course. If you don’t have a Pluralsight subscription, check out their free trial.
Clean Code: Writing Code for Human on Pluralsight

Presented At:

  • Kansas City Developer’s Conference 2012 – Rate this talk
  • St. Louis Days of .Net 2012 & 2013 – Rate this talk
  • Heartland Developer Conference 2012 – Rate this talk
  • Iowa Code Camp 2012 – Rate this talk
  • Topeka .NET User Group
  • CodeStock 2013 – Rate this talk
  • AJi Software Geek Lunch at Corporate Woods on 2/20/14
  • Nebraska Code Camp 2014
  • Prarie Dev Conference 2014
  • Nashville .NET User Group – Rate this talk
  • Codestock 2014 – Rate this talk
  • DevLink 2014
  • Codemash 2015 – Rate this talk
  • Webcast for IHS
  • Kansas City .NET User Group
  • Quicken Loans Conference 2015
  • NNIT in Copenhagen, Denmark – 3 Full Days of Clean Code training
  • Staples – Clean Code Lunch in Kansas City
  • VinSolutions Tech Talk
  • Software Development and Design London 2016


One thought on “Clean Code: Writing Code for Humans

  1. Pingback: 3 Core Principles to Write Clean Code – maria grazia merlo

Leave a Reply

Your email address will not be published. Required fields are marked *