There is an updated version at https://www.planetgeek.ch/2014/11/18/clean-code-cheat-sheet-v-2-4/
It took me about one and a half year to update my cheat sheet about clean code and TDD.
But now, it’s here.
The cheat sheet has grown quite a bit and now contains principles, patterns, smells and guidelines for
- clean code
- class and package design
- TDD – Test Driven Development
- ATDD – Acceptance Test Driven Development
- Continuous Integration
I had to re-layout the sheets because maintenance became a nightmare (yes, very ironic).
Download: Clean Code V2.2
This work is licensed under a Creative Commons Attribution 3.0 Unported License.
Feedback is highly welcome. Please write a comment below.
Update V 2.1: thanks for your feedback
- added + and – for DOs and DONTs to make it easier to tell them apart
- added a creative commons Attribution 3.0 Unported license.
Update V 2.2:
- changed the colours to be better distinguishable
I updated the clean code cheat sheet for better readability (+/- for DOs/DONTs).
http://t.co/pDw3FmMYFZ
Clean Code Cheat Sheet | planetgeek.ch http://t.co/LByPz4Kb6V
Clean Code Cheat Sheet | planetgeek.ch http://t.co/tno8Hra9MF
RT @quintana_: A garder en mémoire 🙂 http://t.co/1gSSgcn6RH
#code #tdd #test #blabla
これの翻訳ほしいな “Clean Code Cheat Sheet | planetgeek.ch” http://t.co/9kVhP8Az9R
Nice summary of best practices in code design! http://t.co/jDvkypn1dL
RT @marquisdavid: Nice summary of best practices in code design! http://t.co/jDvkypn1dL
RT @ralphtice: not sure i would call this a cheat sheet but it’s good study material http://t.co/6uafcPOk13
Very Interesting: “@ralphtice: not sure i would call this a cheat sheet but it’s good study material http://t.co/FOTEResBrs”
RT @nicolas_frankel: Clean Code Cheat Sheet http://t.co/2khgvmYWnY #cleancode
[…] Technical debt diagram, borrowed from Planet Geek for the (awesome) “Clean Code cheat sheet“. […]
Clean Code Cheat Sheet V2 http://t.co/sVH8ohPHcC #MahdiPicks
RT @solofs: Very Interesting: “@ralphtice: not sure i would call this a cheat sheet but it’s good study material http://t.co/FOTEResBrs”
Clean Code Cheat Sheet http://t.co/kZHNcaJJru [http://t.co/MgOTEXwF14 by:RazerWolf comments:331 score:671]
RT @bebraw: Clean Code Cheat Sheet http://t.co/gsQqosBQ3N #programming
Clean Code Cheat Sheet http://t.co/EnYf0D2jDn via @zite
RT @sheeshee: “clean code” cheat sheet: http://t.co/CeaP3yzNju
http://www.planetgeek.ch/2013/06/05/clean-code-cheat-sheet/
RT @ralphtice: not sure i would call this a cheat sheet but it’s good study material http://t.co/6uafcPOk13
Hi Floyd
“Methods Should Descend 1 Level of Abstraction” means that the content of a single method should be at the same level of abstraction.
If a method for example deals with low-level http string formatting and with business logic, then it clearly descends more than a single level.
You should then refactor the low-level code into separate method and call them from your “abstract level” method.
This guideline has also a strong overlap with “method should only do one thing”.
Clean Code Cheat Sheet
http://t.co/UDBp3lLF4i
“Clean Code Cheat Sheet” http://t.co/gLCsep6J9y 클린 코드를 작성하기 위한 각종 원리, 원칙들이 망라돼 있네요! 강추!
“@developerfarm: “Clean Code Cheat Sheet”
http://t.co/tyXWoZB61v 클린 코드를 작성하기 위한 각종 원리, 원칙들이 망라돼 있네요! 강추!”
“@parkto: “@developerfarm: “Clean Code Cheat Sheet”
http://t.co/DjWTttI7wZ 클린 코드를 작성하기 위한 각종 원리, 원칙들이 망라돼 있네요! 강추!””@myen
Clean code cheat sheet: http://t.co/xKtmBIQ5BW
RT @clundestad: Clean code cheat sheet: http://t.co/xKtmBIQ5BW
RT @developerfarm: “Clean Code Cheat Sheet” http://t.co/gLCsep6J9y 클린 코드를 작성하기 위한 각종 원리, 원칙들이 망라돼 있네요! 강추!
RT @developerfarm: “Clean Code Cheat Sheet” http://t.co/gLCsep6J9y 클린 코드를 작성하기 위한 각종 원리, 원칙들이 망라돼 있네요! 강추!
[…] Un cheat sheet sur des techniques afin d’améliorer la maintenabilité de votre code. En anglais, il s’agit du concept de clean code. […]
I’m a big fan of this clean code cheat sheet: http://t.co/i3tlnWrOzY
Handy cheat sheet for many software development concepts. http://t.co/nyK2ng9w0h
#CleanCode Cheat Sheet | http://t.co/nQs3LBiXV4
Clean Code Cheat Sheet | planetgeek.ch http://t.co/KrxA7SqMsv
RT @parkto: “@developerfarm: “Clean Code Cheat Sheet”
http://t.co/tyXWoZB61v 클린 코드를 작성하기 위한 각종 원리, 원칙들이 망라돼 있네요! 강추!”
RT @parkto: “@developerfarm: “Clean Code Cheat Sheet”
http://t.co/tyXWoZB61v 클린 코드를 작성하기 위한 각종 원리, 원칙들이 망라돼 있네요! 강추!”
“Clean Code Cheat Sheet | planetgeek.ch” http://t.co/zcuHD37DKe
[…] Clean Code Cheat Sheet, Urs Enzler […]
A very nice list of DOs and DONTs for writing clean code (cheat sheet) – planetgeek.ch http://t.co/UmhArWKDlX
RT @mattsears: A very nice list of DOs and DONTs for writing clean code (cheat sheet) – planetgeek.ch http://t.co/UmhArWKDlX
One of the best cheat sheets I’ve seen in a long time! http://t.co/LJJnFCHUFa @planetgeekch #cleancode
This is one of the most consistent set of coding standards I’ve seen. It’s clear that it was written by someone with a deep understanding and passion for large scale system design who strives to improve his skills and the maintainability of his codebase every day.
“Clean Code Cheat Sheet | planetgeek.ch” http://t.co/l52HbVmHEs
Clean Code Cheat Sheet | planetgeek.ch http://t.co/5FrhOu3SZ1
RT @ruby_gdl: Clean Code Cheat Sheet | planetgeek.ch http://t.co/5FrhOu3SZ1
Clean Coce Cheat Sheet http://t.co/eAyUol5qFr
RT @kierasbr: Clean Coce Cheat Sheet http://t.co/eAyUol5qFr
RT @planetgeekch: Clean Code Cheat Sheet: updated version available! http://t.co/d4fkLD4tif
Clean Code, Clean TDD, Clean ATDD, …
You should make it a picture instead of pdf. PDFs are slow
Awesome summary!
It’d be awesome if you could create a mobile version of it (like one-column html or even PNG). Then while doing a code review I could instantly point some rules with my smartphone 🙂
[…] Version 2 of the Clean Code Cheat Sheet is out. Many thanks to Urs Enzler! Check it out at Clean Code Cheat Sheet | planetgeek.ch. […]