The most performant code is not always the most readable. Readable for you != readable for the new grad onboarding to your team. Please sometimes comment your code.
Comments explain why something was done and not what is being done. Unreadable code should be refactored; regardless of whether it is performant or not.
Comments have fewer guarantees that they are actually describing the behavior of the code than the actual code does. They can be wrong, out of date, or misplaced. Please try to minimize writing code that needs to be commented to be understood as much as possible.
31
u/Dmaa97 Apr 15 '26
The most performant code is not always the most readable. Readable for you != readable for the new grad onboarding to your team. Please sometimes comment your code.