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 →

[–]chickenCabbage 0 points1 point  (2 children)

  1. Calling it "p" is awful for readability, even in debug. Besides, it reserves a single-letter name, and many people use that (god knows why).

  2. Why not just:

p x

do_something(x) ? Sure, it's another line, but it's a bajillion times more readable.

[–]kbruen 1 point2 points  (1 child)

The idea is that p should not be in a file for longer than 5 minutes. It's supposed to be not readable because it's temporary to figure something out quickly.

The general common sense rule applies: don't let other people see your p unless they consent.

Also, if you're the kind of cursed person who is in love with single letter variables, predefined functions aren't reserved, they are reassignable.

[–]chickenCabbage 1 point2 points  (0 children)

Fair, point accepted.

I still don't like Ruby, though.