From: "David A. Black" Date: 2009-06-25T20:40:52+09:00 Subject: Re: Noob question on strings Hi -- On Thu, 25 Jun 2009, Fredrik Ludvigsen wrote: > 7stud -- wrote: >> 1) Knowing what that code does will not make you a better ruby >> programmer. >> >> 2) You should never use such a construct in your own code. >> >> If that code is from some tricky quiz question that you have to answer, >> then ok. But you can safely forget all about that construct the >> momement you are done answering the question. What that prints is >> totally irrelevant. > > Got it. I'm just a little uncomfortable with not understanding the code > examples that I read :-) You've got the right attitude. As a Ruby programmer, you certainly want to be able to understand every single line of Ruby code you come across. There's no such thing as a construct that it isn't a good idea to understand. David -- David A. Black / Ruby Power and Light, LLC Ruby/Rails consulting & training: http://www.rubypal.com Now available: The Well-Grounded Rubyist (http://manning.com/black2) "Ruby 1.9: What You Need To Know" Envycasts with David A. Black http://www.envycasts.com