News for hackers. Stuff that matters.
Re:Ask HN: How to deal with people that do not follow langua... by bjourne on Friday December 04, 2015 @04:53AM (#10675467)
> This guy is fresh out of college and should know not to name variables like this....

> For the record I'm a senior for CS.

That's a poor form of argumentation.

In your example, assuming the MusicMP3 variable is local, and the function is reasonably short, then it is preferable to use a short name such as "m" over a longer but equally uninformative name such as "mmp3". In programming just like in mathematics, we are often more interested in how values interact with each other than with what they are. Short names makes the interactions easier to see, e.g:

    diag_len = sqrt(w * w + h * h)
Is much better than:

    rectangle_diagonal_length = square_root_of(rectangle_width * rectangle_width + rectangle_height * rectangle_height)
Maybe I have still not convinced you and that is ok. But now you see it is a matter of taste. So why get upset over if someone names a variable "m" instead of "mmp3"? Is it the end of the world?
Re:Ask HN: How to deal with people that do not follow langua... by ghrifter on Friday December 04, 2015 @11:53AM (#10677397)
Thanks. I should have put in OP that some of these method bodies are dozens of lines (sometimes approaching 100+).

Some of these variables are used quite often.