Which is the preferred way?


#1

I see that “p” is the same as “puts”. Which would
most programs use in a program?

Jeff


#2

Jeffrey B. wrote:

I see that “p” is the same as “puts”. Which would
most programs use in a program?
It’s not the same - p foo is equivalent to puts foo.inspect. They’re
used for different things; p is for debugging output, puts for general
text display.