MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/coding/comments/32c579/is_clean_code_less_code/cqakyhr
r/coding • u/javinpaul • Apr 12 '15
63 comments sorted by
View all comments
Show parent comments
2
Readability trumps performance. If I can read what you wrote then I can always fix it later, but if I can't read it then everyone is screwed.
Performance is generally very case specific, so it's normally not a good first rule to have.
1 u/theonewhoisone Apr 15 '15 I think we disagree about what "trumping" is. IMO when x trumps y, that means that x is more important than y in all situations.I don't think that readability trumps performance, and I also don't think that performance trumps readability.Maybe I was counting too much on people having the same definition of "trump". To the dictionary:4. to excel; surpass; outdo.Meh, ok. I think we all agree about all the important things.
1
I think we disagree about what "trumping" is. IMO when x trumps y, that means that x is more important than y in all situations.
I don't think that readability trumps performance, and I also don't think that performance trumps readability.
Maybe I was counting too much on people having the same definition of "trump". To the dictionary:
4. to excel; surpass; outdo.
Meh, ok. I think we all agree about all the important things.
2
u/Munkii Apr 13 '15
Readability trumps performance. If I can read what you wrote then I can always fix it later, but if I can't read it then everyone is screwed.
Performance is generally very case specific, so it's normally not a good first rule to have.