Hacker News new | ask | show | jobs
by progx 994 days ago
In this case the variable is the documentation of the code.

You don't have to write something like "this is the message", you can see it.

1 comments

What if it isn't a message? What if "msg" is already used for another variable?
This is some wonderful performance art you’re doing here
`greetingMsg`? `greeting`? Naming the other one differently? Splitting the work done with that message and the work done with this message into their own functions?
Frankly, this always sounded like a readability issue seeking a readability problem. Splitting because the names clash, because you decided to name things, because a one-liner was less than ideally readable.
"_msg", then.