1. Computing

URL Shortener Tutotial

The following is a tutorial on creating a URL Shortener service (a la TinyURL.com or bit.ly) in Ruby on Rails 3. It covers developing the application, integrating a style and deploying to Heroku.

Follow Along
Ruby Spotlight10

ARGF, a Shortcut for Scripts

Tuesday April 30, 2013

Many command line scripts simply read all the files mentioned to them as one long stream of data, the last file of one byte side by side with the first byte of the next file.  Ruby provides you with a very simple way to do this, by using the ARGF object combined with some simple option parsing.

TrueClass, FalseClass and NilClass Quick Reference

Tuesday April 30, 2013

What is truth?  No, not philosophically, in the (ironically imaginary) world of computer science, truth has a very well defined meaning.  But each high level language seems to interpret this a bit differently.  So what is truth in Ruby?  And how are they represented?

Exception Quick Reference

Tuesday April 30, 2013

Exceptions, like just about everything else in Ruby, are objects.  They're objects you typically don't deal with either, in fact when you catch an exception using a rescue clause, you're often only testing for the presence of the exception an ignoring the exception object itself.  But there is slightly more you can do with them.

Bignum Quick Reference

Monday April 29, 2013

While the Bignum is not a class you'll encounter directly, you've probably used it a few times without even noticing it.  This article tells you a bit about how Bignum works and what you can do with it.

Discuss in my forum

©2013 About.com. All rights reserved.