Do You Write Clean Code?
Published in
1 min readOct 13, 2017
If not, here are some tips to keep in mind, next time you make a mess.
Clean code does one thing well
Bad code tries to do too much
Code should be matter-of-fact. You shouldn’t have to speculate
Your code should be easy for others to change
Make sure you write unit tests
Write code that is small
No duplicates please!
Build small abstractions
Make the language appear simple — Yes it is our job!
Keep the code clean over time — continually improve the code
Finally,
Follow Boy Scout Rule ~Leave the campground cleaner than you found it~
You get what I mean ;)
So that was the gist I got from the first chapter of Clean Code written by Robert C. Martin.