DEV Community

Discussion on: Is Shorter Code, Better Code?

Collapse
 
giuliano1993 profile image
Giuliano1993

Clean and correct code is best. Shorter doesn't always is better; if you're writing some very short code, but after some time nor you or any of your colleagues can really say what it does, or you can tell but with a really bad headache born while trying, then that code is not so good even if it is really short.
I like writing short code too, but I always give priority to cleanliness, performance over shortness; that is a bonus!

Some comments have been hidden by the post's author - find out more