Clean Code Resources

Clean Code Cheatsheet

Useful Clean Code related links from Fall 2012 CSC 430 Students:

From Jason Clark:
Here are 7 tips on writing clean code
This is a somewhat humorous but very informative on code maintenance
Yes, this is just a blog, but it is a very informative blog on cleaning bad code.

From Steven Conner:
shows bad code then 50 steps to clean it up
7 tips on writing clean code
4 simple steps for clean code
a bunch of stuff for clean coding

From Kurt Ladendorf:
-  Gives the author's opinion on how to write readable code.  It might be a good thing for people to read and critique.
-  Rather lengthy, but this is a series of posts that discuss cleaning Java code.

From Micharel Owen:
Code examples that could be cleaned up: 
     This site has lots and lots of code for many languages that could be used to clean up a bit
     A funny collection of bad code examples.
     Lots of Java code that could be used for cleaning up.

Sites that would go well with the Clean Code book:  
     This page is hilarious.  It talks about what to do if you want to right BAD code!  It makes it pretty clear what you should avoid and it is an enjoyable read.
     A good summery of things to consider when writing code to keep it clean

From Demis Harper: This gives a pretty good explanation of how good code can go to bad code if coders aren't careful, and how it can be difficult to maintain code quality. -- this site details an open source project that relies on contributes to clean the code.  Perhaps the code could be used in class?

From Daniul Byrd:
Some articles about good programming practices:

This one has some good tips about writing clean/readable code:

About cleaning bad code:

From Jessica Lott:
Interesting article on Clean Code by IBM:

Another blog that has many different topics, including entries about how to write clean code:

Top 15 tips for writing clean code:

From James Cain:
7 tips on writing clean code | Larsblog
This blog entry includes some helpful programming tips from Lars Marius Garshol, a Norwegian technologist living in Oslo. These tips are based on problems that tend to recur again and again in code written by other people.

Why clean code is more important than efficient code | TechRepublic
Chad Perrin, an IT consultant, developer, and freelance professional writer, discusses his reasons for putting clarity ahead of efficiency at certain times, while putting more emphasis on efficiency at other times. As an example, he talks about a program that he once made, which became very inefficient due to its surplus of clarity and lack of efficiency.

From Jonathan Vinson:
a condenced version of clean code.
a good example of step by step refactoring using ideas from clean code etc.
some code to be cleaned with steps of cleaning it
GoogleTech Talks about writing clean code
some basic rules to follow if you wanna start writing clean code

From Michael Holt:
10 Principles for clean code
About keeping clean code with examples
Seven habits of highly effective programmers
Examples of bad comments and how to avoid them
How to develop a good programming style
How to improve programmer productivity
10 traits of a good programmer

From Conal Green:
A simple project to clean and/or enhance, but there is some *.form stuff that I know nothing about... oops. Each student could try and then later compare the results as an exercise.

Useful Clean Code related links from Fall 2013 CSC 430 Students:

From Matt Carson:
Video of JeremyBytes Clean Code: The Refactoring Bits

From Aaron Clark:
This shows you what not to do by telling you how to write unmaintanable code.

From Cody Driskill:
Contains some pretty basic, but still important tips that apply to pretty much any language.
Breaks down different clean code techniques into karate style belts to indicate importance. Helps to clarify basics and even more advanced techniques to keep in mind.
Has some tips to help write PHP code and could double up and helps a bit in the web programming class too.
A video series that covers code refactoring. I found the guy who does the videos a bit long winded but maybe some people can relate to him.
A write up of refactoring techniques that pertain to VB. It also has some good tips that can apply to any OOP language.
This is an article about refactoring in the Perl language, and good practices to employ there. This is particularly useful because Perl, I feel generally doesn’t get too much individual coverage.
This covers C# and the best part is that it actually has examples of before and after code.
Gives a good overview on how to write good code in general.
Powerpoint slides done at a London University that also give good tips.
An overview of refactoring code from the University of San Francisco, includes links to a database containing patterns to watch out for.

From Parks Frazier:
-Quotes from a few leading figures in the Computer Science field on clean code.
-Interesting article that should sooth your pain a little
-Article for Java users on how to use a Finally statement to clean up code
-Tips and practices for writing good, readable code
-general coding standards
-10 good coding practices for Java
-great help for coding in PHP
-good powerpoint on design patterns and more coding practices

From Jennifer Gross:
There was too much information on this site for me to just choose a few. This site has information on both Clean Code and Design Patterns, including videos, pdfs, presentations, and downloadable code. Jeremy is very clear, thorough and easy to understand. This was probably my most visited site during this semester.

From My-Gyeong Gwak:
(This is a lecture note about code refactoring. There are some JGuru examples to illustrate refactoring.)

From  Jerad Hobgood:
Sort of off topic a little but can help beginners who have only taken a few programming classes get to know clean code.

From William Holt:
Writing Clean Code in C# -

From Emilee King:
Nifty list of coding standards for different languages, just to help keep things clean and readable
Tips on writing clean code
Refactoring video tutorials, I really enjoyed  this. It's easy to follow and actually fun to listen to.
The Principles of Good Programming

From Jinbo Lin:

A presentation about clean code from Google Tech. However this guy is so familiar.

From Jason Mallory:
Short post on not letting readability affect maintainability.

Article about cleaning bad code.

From Keith Neer:
   This link explains why you should write clean code.
   This link summarizes the important clean code practices found in the Clean Code book
     This link provides some tutorials on how to write cleaner code.

      This article gives some interesting reasons why you shouldn't comment your code.
       List practices for writing clean code
       More on Clean Code practices.

From  Xulong Peng:
How to write a clean code without comments

How to write a readable source code

Good article for cleaning bad code.

Really good post/comments to avoid bad coding habits for beginner

From Tyler Roberts:
Taken from our Clean Code book, refractoring functions
Clean code cheat sheet
Short clean code lesson
Refractoring code (35 minutes long)

From Christian Vargas:
This is a short pdf of some tips to write clean code. its only two pages and is a very short read that wont take up anytime

Link to a detail report of 12 principles for keeping clean code along with examples

Tips for a clean programming code

link to a blog where "7 reasons why clean code matter" is discussed and debated

From Wissem Zrelli:
How to produce a software that is easy to write, read and maintain (Sign in to pluralsight required)
Guidelines from a PHP Developer to write a readable, maintainable, reusable and testable code
A step-by-step guide to clean and refactor your code. This article incorporates source code snippets to work with and understand the concepts.