1 min readAug 2, 2018
I would actually argue this code is quite easy to understand, and that the proceeding commented code doesn’t achieve anything.
Your naming in the first example is descriptive and concise. It’s doesn’t need comments. Now if your variable names were awful abbreviated words maybe.
Is there a better example you’ve seen where code was inherently unreadable because it lacked comments?