+ 2

Performance or Readability?

Which is more important, performance or readability?

1st Oct 2020, 3:23 AM
satriabadakbiru
satriabadakbiru - avatar
6 Answers
+ 3
In my opinion, performance should be the first priority, because the user does not care about how readable the code is, but still needs performance in the product they are using. For example, even though python codes are much more readable, still C++ is much more preferred in things like making games, browsers etc. Also, it is possible to write readable as well as efficient code at the same time. Readability is a thing that does not affect the performance of the program (for example, just because C++ is less readable than Python, doesn't mean you can't write readable code in C++). So a programmer should aim to write code which is good in readability as well performance.
1st Oct 2020, 3:44 AM
XXX
XXX - avatar
+ 6
In my opinion, nowadays, when even phones have powerful CPU's and at least 4GB of Ram, readability is first priority. Any fool can write code that a computer will understand, but it is more important to make code understandable for other developers and for yourself.
1st Oct 2020, 4:19 AM
Artem šŸ‡ŗšŸ‡¦
Artem šŸ‡ŗšŸ‡¦ - avatar
+ 4
ReadabilityĀ makes a system easier to maintain and therefore brings down cost of the software over its life. There are cases whereĀ performanceĀ is more importantĀ theĀ readability, that said they are few and far between.
1st Oct 2020, 3:31 AM
šŸ”°SaurabhšŸ”°
šŸ”°SaurabhšŸ”° - avatar
+ 2
Both are important but in my personal opinion readability is more important
1st Oct 2020, 3:31 AM
Mask Man(What's in a name?)
Mask Man(What's in a name?) - avatar
+ 1
Performance is more important. You can always use comments to improve readability.
1st Oct 2020, 4:49 AM
ä½ ēŸ„é“č¦å‰‡ļ¼Œęˆ‘也ę˜Æ
ä½ ēŸ„é“č¦å‰‡ļ¼Œęˆ‘也ę˜Æ - avatar
+ 1
Wow, thanks bro
1st Oct 2020, 5:07 AM
satriabadakbiru
satriabadakbiru - avatar