Member-only story
Code Readability or Performance: Which Is More Important?
Analyze both sides to prioritize accordingly

The discussion around the importance of code readability compared to performance has been floating around on the internet for a long time. However, it is difficult to come up with an objective answer.
So let’s try to analyze readability and performance in different contexts instead of trying to find an objective answer.
Let’s start with a question: Is this readable code?
- .... .. ... / .. ... / .-. . .- -.. .- -... .-.. .
This is actually Morse code that translates to “this is readable!” You might say that this is readable if you know Morse Code. Now, does it make sense to call this code unreadable if you do not know Morse code? Not really, because it is readable Morse code.
Now let’s apply this to software. Can you figure out what the following code does by taking a quick glance at it?