Updated: new version here!
I have compiled two cheat sheets about clean code (the ones mentioned in my post about Code Quality!).
The first covers clean code – code that is easy readable and keeps changeable. The second is about Test Driven Development. Both cheat sheets list principles, patterns, practices and smells.
You can download them here – Clean Code Cheat Sheet V1.3, Clean TDD Cheat Sheet V1.2.
Take a look!
I’d like to read your feedback in the comments section…
(just an unreadable preview 🙂 – click on link in text above)
Hi Urs
Again a great blog post. Thanks for the content.
Hello Urs,
Great thoughts, I also like knowing and keeping those terms and principles which can build up reference points in our daily your work.
Hi,
Nice job. I just published a paper about “Common Deviations in TDD”. Maybe it will help you adding some new stuff in your TDD sheet.
You can found the paper here: http://www.ime.usp.br/~aniche/tdd-survey/
Any feedback is welcome! 🙂
[…] telah dirumuskan sebagai rujukan dalam bentuk cheatsheet. Senang la sikit nak […]
Nice cheat sheet.
Reallly nice content. Thanks for sharing
@Mauricio Aniche
I’ll take a look for sure. Thanks for the link.
One word: AWESOME!!!!!!!!!!
@Sean Moore
Two words in reply: thank you 🙂
Looks good, but link doesn’t work..
Hy
bbv Software Services AG is currently restructuring their website. I’ll keep you posted about the links! Thanks for the information
Daniel
I fixed the links and updated them to the latest version.
[…] Clean Code and Clean TDD Cheat Sheets June 22nd, 2010 Goto comments Leave a comment Find the updated version here: http://www.planetgeek.ch/2011/01/04/clean-code-and-clean-tdd-cheat-sheets/ […]
[…] code – code that is easy readable and keeps changeable. The second is about Test Driven… [full post] Urs Enzler planetgeek.ch .netagiletest driven developmentarchitecture 0 […]
[…] This post was mentioned on Twitter by Michael Hönnig, Urs Enzler. Urs Enzler said: http://www.planetgeek.ch/2011/01/04/clean-code-and-clean-tdd-cheat-sheets/ URL compression is obviously buggy! […]
great! really useful for developers!
Nice compilation, it’s good to have all good rules and practices written in just two cheat sheets 🙂 Thank you!
Very nice!
Thank you)
hi,
excellent work…wondering how elegantly you have presented the knowledge.
Cheer!!!
Sameer
oh yah. Thanks!
Very nice ..shows a lot in a small space 🙂
[…] [HT: Planet Geek] […]
Very nice!!
Thanks for sharing.
[…] other practices from the Clean Code Cheat Sheets found here […]
[…] This is the start of a series of posts about Clean Code. I’m going to pick some topics from my cheat sheets about Clean Code and Clean Test Driven Development and explain them in more […]
[…] planetgeek.ch» Clean Code and Clean TDD Cheat Sheets http://www.planetgeek.ch/2011/01/04/clean-code-and-clean-tdd-cheat-sheets/ […]
Nice work, thanks for sharing it! Some comments on the TDD Sheet:
– Test Assemblies: I’m missing http://xunitpatterns.com/Testcase%20Class%20per%20Fixture.html
– Test Method Naming: I prefer a expectedBehavior[WhenCondition] pattern. “@Test public void findsHighestPair()”
– Unit Test Smells: For these, you switch between explaining the smell, explaining why it is a smell, and explaining what to do instead. I would highly prefer a form of “Do [alternative behavior], so that [additional value gained]”. E.g. “Checking Internals – test through the published interface instead, so that the tests are more stable and don’t add refactoring overhead.”
– Test Logic in Production Code: not fully clear what you mean. I assume it’s testing internal implementation details instead of expected behavior?
@Ilja Preuß
Thanks for the feedback. I’ll integrate it into the next version.
Some content of the sheets is wrong. For example:
keep it simple, stupid (KISS)
–> Stupid code is evil and makes no sense. Correct is “keep it small and simple”.
@it
While I like ‘small and simple’ better, too; according to wikipedia (http://en.wikipedia.org/wiki/KISS_principle) it’s call ‘simple stupid’. But all different variants are known.
Could you please point me to the other mistakes on the sheets so that I can correct them?
[…] and Clean TDD. (They were originally compiled by Urs Enzler of http://www.planetgeek.ch/, have a look). Everyday at 6:30 in the evening, we choose one topic from those cheat sheets which doesn’t […]
[…] Vi volevo segnalare questa tabella di suggerimenti e best practises realizzata da Urs Enzler. […]
[…] http://www.planetgeek.ch/2011/01/04/clean-code-and-clean-tdd-cheat-sheets/ […]
Clean code and clean TDD cheat sheets.
http://t.co/h8A67dwjmm
[…] The basic clean coding rules can be found here, but don’t forget to read the complete book at least once: http://www.planetgeek.ch/2011/01/04/clean-code-and-clean-tdd-cheat-sheets/ […]
[…] other practices from the Clean Code Cheat Sheets found here […]