
Thoughts & insights into writing #cleancode
Joined September 2015
- Tweets202
- Following251
- Followers432
- Likes406
Pinned Tweet
Always try to delete more code than you write.
#cleancode
Clean Code Fountain retweeted
Simple definition of Software Architecture:
* Separation of Concerns
* Strong domain boundaries
* Known dependencies
ideaflare.github.io/2017/06/…
Write and test a big program in small pieces.
#cleancode guidelines from 1974, still applicable over 40 years later:
en.m.wikipedia.org/wiki/The_…
Clean Code Fountain retweeted
Much of writing testable code boils down to this:
Keep logic and I/O separate. Then you can test logic in isolation without mocking.
#tdd
Clarity over brevity. Code for your team mates, not the compiler.
#cleancode
Clean Code Fountain retweeted
Write code that is easy to read and easy to delete #cleancode
Prefer incremental side-by-side transitional replacements over big bang releases. Replace a system one module/service at a time.
#cleancode
3
Exceptions are for error handling, not control flow. Prefer returning known results (try,error) instead of throwing exceptions.
#cleancode
Clean Code Fountain retweeted
Test Isolation Is About Avoiding Mocks - destroyallsoftware.com/blog/…
Clean Code Fountain retweeted
"70% of a developer's day is spent reading code." - @getify
Optimize for reading.
#FluentConf
#cleancode
Clean Code Fountain retweeted
The fewer methods a class has, the better. The fewer variables a function knows about, the better. #CleanCode
Complex data structures and relationships between entities entangles accompanying code.
Simple data promotes simple code.
#cleancode
1
Clean Code Fountain retweeted
The bigger the font in my text editor, the smaller my functions become... 🤔 #cleancode
Clean Code Fountain retweeted
Clean Code and Clean TDD Cheat Sheets:
planetgeek.ch/2014/11/18/cle…
#Agile
#CleanCode
#CodeSmells
#TDD
#SOLID
Clean Code Fountain retweeted
As a rookie I got intimidated by complex code. I thought I had to improve to be equally talented. I was never more wrong #CleanCode
Code might be clear and concise now because you have context.
But would the reasoning and logic be obvious 6 months from now?
#cleancode
Nevermind perfect 1st time. Create the duplication, then remove it. Split the code up, then improve names. Just clean as you go
#cleancode
Clean Code Fountain retweeted
7 Ways More Methods Can Improve Your Program
henrikwarne.com/2013/08/31/7…











