Awesome Clean Code Resources [](https://github.com/sindresorhus/awesome)

December 30, 2017 · View on GitHub

An awesome curated list of clean code posts, books and resources - learn, practice, contribute & most importantly become cleaner!.

If you want your code to be elegant, clean, straightforward and easy to understand, you will find this list helpful. They are links to posts, videos and books written by great minds in history and contain a lot of examples to spice up your day.

 

Table of Contents

PHP


TitleLink
Clean Code Concepts Adapted for PHPhttps://github.com/jupeter/clean-code-php
The Fundamentals of Writing Clean Codehttps://webdevstudios.com/2015/04/09/fundamentals-writing-clean-code/
Writing clean, secure and easy to maintain PHP codehttps://www.macronimous.com/resources/writing-clean-secure-and-easy-php.asp
Keeping your Code Cleanhttps://codeburst.io/keeping-your-code-clean-d30bcffd1a10
Importance of Writing Clean Codehttps://dev.to/mohitrajput987/importance-of-writing-clean-code
A month of clean codehttps://dev.to/gonedark/a-month-of-clean-code-tips-709
Clean, high quality code: a guide on how to become a better programmerhttps://www.butterfly.com.au/blog/website-development/clean-high-quality-code-a-guide-on-how-to-become-a-better-programmer
10 Clean Code Techniques That Every Coder Should Knowhttp://www.codingdojo.com/blog/clean-code-techniques/
Leave the code cleaner than the way you have found it!https://codeburst.io/leave-the-code-cleaner-than-the-way-you-have-found-it-58c8e4ab3e83
PHP Standards Recommendationshttp://www.php-fig.org/psr/
Extended Coding Style Guidehttps://github.com/php-fig/fig-standards/blob/master/proposed/extended-coding-style-guide.md

NodeJs


TitleLink
Felix Node's Style Guide
NodeJs Best Practiceshttps://blog.risingstack.com/node-js-best-practices/
npm codinghttps://docs.npmjs.com/misc/coding-style
10 Node.js best practices you should followhttps://www.innofied.com/node-js-best-practices/
Node.js: Style and structurehttps://caolan.org/posts/nodejs_style_and_structure.html
Node.js Best Practiceshttp://justbuildsomething.com/node-js-best-practices/
Writing Clean Asynchronous Code In Node.js https://www.udemy.com/writing-clean-asynchronous-code-in-nodejs/
Seven Things You Should Stop Doing with Node.jshttps://webapplog.com/seven-things-you-should-stop-doing-with-node-js/
Clean Architecture design in NodeJShttps://solidgeargroup.com/clean-architecture-in-nodejs
Clean Code NodeJs : Execute Asynchronous Tasks in Serieshttps://blog.cloudboost.io/execute-asynchronous-tasks-in-series-942b74697f9c

Java


TitleLink
Java clean code exampleshttps://gist.github.com/nicholasren/93e6d49f62ad8ed0b596
Writing Good Java Codehttps://www.ibm.com/developerworks/library/j-perry-writing-good-java-code/index.html
Clean Code: Java Class Fieldshttps://www.novoda.com/blog/clean-code-java-class-fields/
7 tips on writing clean codehttp://www.garshol.priv.no/blog/105.html
Clean Code Javahttp://cleancodejava.com/
Kotlin for Android & Java Developers: Clean Code on Androidhttps://www.udemy.com/kotlin-android/
Java Code Style The Final Decisionhttp://www.codeaffine.com/2014/04/28/java-code-style-the-final-decision/
Clean Code from the Trencheshttps://www.javacodegeeks.com/2017/05/clean-code-trenches.html
11 Mistakes Java Developers make when Using Exceptionshttps://nobugsproject.com/tag/clean-code/

C#


TitleLink
C# Developers: Learn the Art of Writing Clean Codehttps://www.udemy.com/clean-code/
Important Tips To Write Clean Code In C#http://www.c-sharpcorner.com/article/important-tips-to-write-clean-code-in-visual-studio/
C# BAD PRACTICES: Learn how to make a good code by bad examplehttps://www.codeproject.com/Articles/1083348/Csharp-BAD-PRACTICES-Learn-how-to-make-a-good-code
Tips for writing better C# codehttps://www.pluralsight.com/guides/microsoft-net/tips-for-writing-better-c-code
C# Developers: Learn the Art of Writing Clean Codehttps://stackskills.com/p/clean-code
Tips for writing clean and best code in C#https://gooroo.io/GoorooTHINK/Article/17142/Tips-for-writing-clean-and-best-code-in-C/26389\#.Wi53hTe1tPY
5 Tips for Junior C# Developers to Write Cleaner C# Codehttps://programmingwithmosh.com/csharp/5-tips-for-junior-c-developers-to-write-cleaner-c-code/
Elegant Code vs.(?) Clean Codehttps://blogs.encodo.ch/news/view_article.php?id=167
SOLID C# Code: Smaller Methods == Clean Code?http://rlacovara.blogspot.com.ng/2009/07/solid-c-code-smaller-methods-cleaner.html
Coding rules for clean and robust C# codehttp://not-at-school.blogspot.com.ng/2011/03/coding-rules-for-clean-and-robust-c.html
How to Write Clean Code in C# (Less With The Mess)https://www.freelancer.com/community/articles/how-to-write-clean-code-in-c-less-with-the-mess

JavaScript


TitleLink
Clean Code JavaScripthttps://github.com/ryanmcdermott/clean-code-javascript#clean-code-javascript
JavaScript Clean Coding Best Practiceshttps://blog.risingstack.com/javascript-clean-coding-best-practices-node-js-at-scale/
Clean Code JavaScript with Ryan McDermotthttps://devchat.tv/js-jabber/clean-code-javascript-with-ryan-mcdermott
JavaScript Best Practiceshttps://www.devbridge.com/articles/javascript-best-practices/
Untangling Spaghetti Code: How to Write Maintainable JavaScripthttps://www.sitepoint.com/write-maintainable-javascript/
Introduction to Clean Javascript Designhttps://svendvanderveken.wordpress.com/2012/01/04/introduction-to-clean-javascript-design/
JavaScript — Make your Code Cleaner with Decoratorshttps://medium.com/front-end-hacking/javascript-make-your-code-cleaner-with-decorators-d34fc72af947
Four Rules for Clean JavaScripthttps://blog.cloudability.com/four-ways-to-keep-your-javascript-clean/
How to write clean code for cascaded promiseshttps://hackernoon.com/how-to-write-clean-code-for-cascaded-promises-809de5b950fd
The Design of Code: Organizing JavaScripthttps://alistapart.com/article/the-design-of-code-organizing-javascript
Clean Code vs. Dirty Code: React Best Practices Clean Code vs. Dirty Code: React Best Practiceshttp://americanexpress.io/clean-code-dirty-code/
How functional programming helps me write clean codehttps://praveer09.github.io/technology/2016/08/05/how-functional-programming-helps-me-write-clean-code/
Clean Codehttp://www.letscodejavascript.com/v3/episodes/live/182

Ruby


TitleLink
Clean Code Rubyhttps://github.com/uohzxela/clean-code-ruby
Learn Clean Codehttps://thoughtbot.com/upcase/clean-code
How to write a clean code in Ruby on Rails?https://blog.railwaymen.org/how-to-write-a-clean-code-in-ruby-on-rails/
Ruby/Rails Code Smell Basics 01https://code.tutsplus.com/articles/rubyrails-code-smell-basics-01--cms-25261
Clean Code and The Art of Exception Handlinghttps://www.toptal.com/abap/clean-code-and-the-art-of-exception-handling
5 Tips to Instantly Write Better Code in Ruby for Beginnershttps://medium.com/learning-how-to-code/5-tips-to-write-better-ruby-code-for-beginners-7549bd0793b8
5 Awesome Tools to Keep Your Rails Code Clean & Organizedhttps://codebrahma.com/5-awesome-tools-keep-rails-code-clean-organized/
Clean Architecture in Rubyhttps://medium.com/@fbzga/clean-architecture-in-ruby-7eb3cd0fc145
Keeping Your Rails App Cleanhttps://www.sitepoint.com/keeping-your-rails-app-clean/
Applying Clean Architecture to Ruby on Rails: First Impressionshttps://theplainprogrammer.com/applying-clean-architecture-to-ruby-on-rails-first-impressions-3746ed0c9668
Using Services to Keep Your Rails Controllers Clean and DRYhttps://www.engineyard.com/blog/keeping-your-rails-controllers-dry-with-services
Rails Clean Architecturehttps://github.com/reedlaw/rails-clean-architecture
7 Patterns to Refactor Fat ActiveRecord Modelshttps://codeclimate.com/blog/7-ways-to-decompose-fat-activerecord-models/

Python


TitleLink
Writing Great Codehttp://pythonforengineers.com/writing-great-code/
How not to write Pythonhttp://eikke.com/how-not-to-write-python-code/index.html
Clean Code in Python as Presented in EuroPython 2016https://github.com/rmariano/Clean-code-in-Python
Writing clean, testable, high quality code in Pythonhttps://www.ibm.com/developerworks/aix/library/au-cleancode/index.html
Code Stylehttp://docs.python-guide.org/en/latest/writing/style/
Writing Clean Codehttp://www.chadvernon.com/blog/resources/python-scripting-for-maya-artists/writing-clean-code/
Write Clean, Professional, Maintainable, Quality Code in Pythonhttps://blog.jetbrains.com/pycharm/2014/06/write-clean-professional-maintainable-quality-code-in-python/
A Quick Primer on Writing Readable Python Code for New Developershttps://blog.hartleybrody.com/python-style-guide/
7 Golden Rules of Clean, Simple and Maintainable Codehttp://shhetri.github.io/clean-code/
Clean architectures in Python: a step-by-step examplehttp://blog.thedigitalcatonline.com/blog/2016/11/14/clean-architectures-in-python-a-step-by-step-example/
Hey, your Python code is unreadable!http://www.pgbovine.net/python-unreadable.htm
Making Clean Code a Part of Your Build Process (And More!)https://www.caktusgroup.com/blog/2015/08/15/making-clean-code-part-your-build-process/
Learn to Program: Crafting Quality Codehttps://www.coursera.org/learn/program-code

Books


TitleAuthorLink
Code Complete: A Practical Handbook of Software Construction, Second Edition 2nd EditionSteve McConnellhttps://www.amazon.com/gp/product/0735619670
The Clean CoderRobert C. Martinhttps://www.amazon.com/Clean-Coder-Conduct-Professional-Programmers/dp/0137081073/
Clean Code: A Handbook of Agile Software Craftsmanship 1st EditionRobert C. Martinhttps://www.amazon.com/Clean-Code-Handbook-Software-Craftsmanship/dp/0132350882/
The Pragmatic Programmer: From Journeyman to Master 1st EditionAndrew Hunt, David Thomshttps://www.amazon.com/Pragmatic-Programmer-Journeyman-Master/dp/020161622X
Craft of Programming 1st ed. EditionPeter Seibelhttps://www.amazon.com/Coders-Work-Reflections-Craft-Programming/dp/1430219483/
Don't Make Me Think, Revisited: A Common Sense Approach to Web Usability (3rd Edition) (Voices That Matter) 3rd EditionSteve Krughttps://www.amazon.com/Dont-Make-Think-Revisited-Usability/dp/0321965515/