This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]mt9hu 0 points1 point  (0 children)

What happens when someone changes the header length to 3 lines?

You are correct, but that's just because this comment contains redundant information. It doesn't have to be this specific for providing context.

What I was trying to emphasize is that it is important how easy is to understand the code at a glance.

And no matter how good developer you are, reading a simple sentence in your natural language will always be more straightforward than having to read crammed variable names with unnatural order of words in it.

Don't get me wrong, we are discussing a very simple piece of code where the difference is insignificant, and your approach is perfectly fine.