, 12 tweets, 3 min read Read on Twitter
Good code and resistance to change:

Thread: ⤵️

#cleancode #programming #coding
One way or another ever since we started writing code, some rules have been imposed on us.
Whether that's "indent your code properly", or "name your variables correctly", these rules changed the mindset of today's developers away from the "write - compile - done" flow.
The one rule that has stuck with us and the first thing that usually comes to mind when we think of "good code", is "ALWAYS LEAVE COMMENTS". "Comments help other developers know what your function does".
This is mostly taught to future developers at school or at university, where teachers would deduct points from your homework if you don't leave comments on your code.
This mindset has stuck with the vast majority of developers who still consider leaving comments as best practice.
This thought process though is being challenged by books like @unclebobmartin 's "Clean code":
"Comments are a failure". "Comments Do Not Make Up for Bad Code". "Focus on good self-explanatory code instead of comments"
Personally I think this is a much better way of doing things and a better rule to follow if you want your code to be efficient, clean and well-maintained
The problem lies when the developers that have been taught to "leave comments or else..." are advised to focus on good code instead.
Their reaction is similar to telling a grown man to change how they walk or change how they breathe. They've been doing it a certain way their whole lives, and they're not willing to change.
I guess the only way to convince them to change their processes is to show them how better it is to have good code instead of good comments, how fast their workflow will become and why unnecessary comments are - in @KentBeck's words - "code smells"
Missing some Tweet in this thread?
You can try to force a refresh.

Like this thread? Get email updates or save it to PDF!

Subscribe to Savvas Stephanides
Profile picture

Get real-time email alerts when new unrolls are available from this author!

This content may be removed anytime!

Twitter may remove this content at anytime, convert it as a PDF, save and print for later use!

Try unrolling a thread yourself!

how to unroll video

1) Follow Thread Reader App on Twitter so you can easily mention us!

2) Go to a Twitter thread (series of Tweets by the same owner) and mention us with a keyword "unroll" @threadreaderapp unroll

You can practice here first or read more on our help page!

Follow Us on Twitter!

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just three indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3.00/month or $30.00/year) and get exclusive features!

Become Premium

Too expensive? Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal Become our Patreon

Thank you for your support!