+ 3
What makes your code clean ?
What are the things that make your code clean ?
2 Réponses
+ 11
Indentations, whitespaces, newlines. Non-scattered variable declarations. Well-formatted comments. Descriptive variable names.
+ 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.