Chris Gore: Programming: Ruby
Ruby is a very capable programming language that could most quickly be described as a strange cross of Python and Perl. It is my third most favorite programming language, after Lisp and C. It is most often associated with the Rails web framework, which is written in it and is probably the most full-featured web framework available at the moment. Nearly all of the code I have written in Ruby is for Rails, but I would consider it a good choice anywhere that you would want a full-featured scripting-style programming language.
My Ruby Code
BTCE is a gem for interfacing with BTC-e.com, the second-biggest of the cryptocoin exchanges, after Mt. Gox It is being used on my site BTC-Charts.com among other places. The code is on Github but you can just install the gem.
make-rubygem-debs will generate Debian packages for all of the gems specified in a Gemfile.lock for a Ruby application. This is useful if you need to deliver to a Debian-based system (Debian, Ubuntu, many others) that has no connection to the internet. The code is on Github but you can just install the gem.
- Lambda Calculus in Ruby
- This is a talk I gave Monday, October 13, 2014 at the STLRuby Meetup. You can view the slides as a PDF, or watch my talk on YouTube.
- More is MORE!
- This is a lighning talk I gave Monday, January 13, 2014 at STLRuby Meetup here in Saint Louis. You can view the slides as a PDF.
- Class method references from within an instance method.
- Public aliases of private methods.
- Block-local variables in Ruby 1.9.
- Adding Ruby Gem sources
- RSpec Change Blocks
The two best books on Ruby are The Ruby Programming Language by Yukihiro Matsumoto, the creator of Ruby, to learn the language, and Programming Ruby 1.9: The Pragmatic Programmers' Guide (Facets of Ruby) as a language reference, although it isn't as good to learn from initially.