I updated my clean code cheat sheet.
This time there are just minor changes:
- Principles: mind-sized components
- Class Design: do stuff or know others, but not both
- Maintainability killers: tangles
- Refactoring patterns: refactor before adding functionality, small refactorings
- removed duplication regarding one test asserts one thing
- TDD principles: Test domain specific languages
- fixed a bug in the ATDD/TDD cycle (run all acceptance tests)
If you miss something or think that there is something just plain wrong, please write a comment below.
Link: Clean Code V2.4
[…] […]
RT @planetgeekch: Updated Clean Code Cheat Sheet (V 2.4):
http://t.co/wxQncaSulQ
RT @planetgeekch: Updated Clean Code Cheat Sheet (V 2.4):
http://t.co/wxQncaSulQ
.@driesvints That reminds me. I found this Clean Code Cheatsheet the other day: http://t.co/uZwLZfPblU
RT @JayHealey: .@driesvints That reminds me. I found this Clean Code Cheatsheet the other day: http://t.co/uZwLZfPblU
RT @JayHealey: .@driesvints That reminds me. I found this Clean Code Cheatsheet the other day: http://t.co/uZwLZfPblU
Nice sheet – got it in print at the German Basta conference.
I’d suggest you reorder the Class Design principles to get the frequently used S.O.L.I.D order of principles.
[…] TDD Cheat Sheet […]
Hi Urs – very useful, thanks !
Would be great to have some sort numbering on the items, so they can be referred (for example during code review: “see cheat sheet item 36 for this function – too many magic numbers”)
I’d like to study and use them in my job.
interesting how people choose a license that requires attribution when they reference a bunch of other peoples’ work without appropriate attribution
Hi Urs,
Thanks you for the cheat sheet. I’m interested to translate it to spanish and share with my colleagues.
Let me know if you agree.
Hi David
I put the cheat sheet under the Creative Commons License by Attribution. So feel free to translate it. Send me a link, when you are done.
Urs
Not able to reference the Micro layers point from the Clean Code book. Can you point out where thats from.
Havent found much serach results on this either.
https://stackoverflow.com/questions/60135742/micro-layers-do-not-add-functionality-on-top-but-simplify-overall-dependencies is also discussing the same.
[…] Urs. Clean code cheat sheet. Disponível em: <<https://www.planetgeek.ch/2014/11/18/clean-code-cheat-sheet-v-2-4/>> Acesso em 19 fev de […]
… [Trackback]
[…] Read More here: planetgeek.ch/2014/11/18/clean-code-cheat-sheet-v-2-4/ […]