What makes your code clean ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

What makes your code clean ?

What are the things that make your code clean ?

11th Feb 2017, 3:42 PM
Amine M. Boulouma
Amine M. Boulouma - avatar
2 Answers
+ 11
Indentations, whitespaces, newlines. Non-scattered variable declarations. Well-formatted comments. Descriptive variable names.
11th Feb 2017, 3:48 PM
Hatsy Rei
Hatsy Rei - avatar
+ 3
I guess the answer is very complicated. Readability is a good start, but it's a lot more than that. You should always consider strange input and how to handle that. Listen to people what had happened using your code. ... The biggest problem about clean code is that everyone thinks slightly different about and you have to find out what is best for you and the people you have to work togethet.
11th Feb 2017, 3:57 PM
Benjamin