+ 12

Smart Code or Clean Code ?

Which code is preferable ? The one which is smartly written in somewhat shorter way or the one which is clean (indentations , spacing ) but comparatively bigger ?

15th Nov 2017, 1:50 PM
Aayush Bhansali
Aayush Bhansali - avatar
10 Answers
+ 17
Clean code is better, code is not good if it can't be easily read
15th Nov 2017, 1:55 PM
David Akhihiero
David Akhihiero - avatar
+ 13
Thank You All For Your Advice â˜ș
15th Nov 2017, 2:06 PM
Aayush Bhansali
Aayush Bhansali - avatar
+ 9
Clean code. I only use smart code for short codes.
15th Nov 2017, 1:57 PM
qwerty
qwerty - avatar
+ 7
Clean Code to try to understand better
15th Nov 2017, 1:52 PM
Daniel
Daniel - avatar
+ 7
clean code with smart mind
16th Nov 2017, 12:07 AM
Thirumurugan C
Thirumurugan C - avatar
+ 6
We are humans, so the clean and readable code is significantly better to understand. Keep it close as possible to the language conventions.
15th Nov 2017, 2:01 PM
Boris Batinkov
Boris Batinkov - avatar
+ 6
In short, a programmer who writes clean code is an artist who can take a blank screen through a series of transformations until it is an elegantly coded system. ✔✔✔
17th Feb 2020, 1:13 AM
Yaseen Akbari
Yaseen Akbari - avatar
+ 4
Clean ofCourse
15th Nov 2017, 8:24 PM
SkillsOn
SkillsOn - avatar
+ 4
In a personal project, smart code in a public project, clean code
16th Nov 2017, 8:29 AM
MahdiY
MahdiY - avatar
+ 2
I think you have a little misconception... clean code does not mean they will be larger... instead, code clean involves programming short functions and avoiding repetitions, put simply, write less, better and human readable... therefore it also involves what you consider smart. I recommend you “Clean Code” by Robert C. Martin!!
14th Sep 2021, 4:03 AM
TomĂĄs Atrat