I’m not a long time Ruby coder, but I have coded for quite some time. I
wanted to ask the groups’ opinion on being more explicit with Ruby code.
I like to code like this:
Kernel.puts(“Print this string”)
instead of this:
puts “Print this string”
To me, the first version is easier to read as I know where puts is
coming from (Kernel) and what it is encapsulating. I just wonder what
more experienced Ruby coders think of this? What would they think if
they saw several hundred lines of code written this way? Do most find
this type of explicitness unnecessary?
I can see how the second version is easier for people new to
programming, but it seems to me once they gain a bit of experience that
they may want to know more about the magic behind it all. So, a more
explicit code style may help them to see exactly how things get done in
Thanks for your thoughts and opinions on this,