Clean Code Fountain (@cleansprings) header
Clean Code Fountain (@cleansprings) profile picture

Thoughts & insights into writing #cleancode

Joined September 2015
Always try to delete more code than you write. #cleancode
51
37
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
Steps to better code https://nitter.cf/t.co/nFJoHGtrSz #cleancode #beginners #coding
1
2
4
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
15
212
12
468
Clarity over brevity. Code for your team mates, not the compiler. #cleancode
2
5
Clean Code Fountain retweeted
Write code that is easy to read and easy to delete #cleancode
3
5
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/…
1
3
Clean Code Fountain retweeted
"70% of a developer's day is spent reading code." - @getify Optimize for reading. #FluentConf #cleancode
5
111
11
224
Clean Code Fountain retweeted
The fewer methods a class has, the better. The fewer variables a function knows about, the better. #CleanCode
1
4
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
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
26
37
Code might be clear and concise now because you have context. But would the reasoning and logic be obvious 6 months from now? #cleancode
1
3
Nevermind perfect 1st time. Create the duplication, then remove it. Split the code up, then improve names. Just clean as you go #cleancode
6
6
Clean Code Fountain retweeted
“Do The Simplest Thing That Could Possibly Work” ― Kent Beck
9
10