Linux Format logo

Facets of Ruby

It's 8:45am, I slept two hours last night, and I'm now sitting through a morning lecture on Ruby. This is a language I know irritatingly little about, so despite my body desperate trying to switch off, I'm going to sit through this and learn.

Fortunately for me, Dave Thomas is doing this particular tutorial: he's lively and clearly passionate about the language. He also has a fun dislike of other languages - "The reason we use paretheses in languages like C and Java is because Fortran needed them." Surprisingly few people seem to accept this!

Ruby's syntax sounds unique and actually quite original. Swapping two variables appears to be as simple as "a, b = b, a". Presumably that uses a temporary variable internally so I question the speed benefit, but damn is it readable...

Shoot me, I use Ruby

Your comments

Web hosting by UKFast