Daily Archives: April 21, 2012

Ruby: Links, News And Resources (5)

Previous Post
Next Post

More links about this programming language:

Some Thoughts on (Ruby) Classes After 18 Months of Clojure on Vimeo

InfoQ: RESTfulie – A Gem To Create Hypermedia Aware Services And Clients
Guilherme Silveira writes to InfoQ on the release of a ruby gem that makes developing hypermedia aware services and clients that consume them a breeze. He saidMuch has been spoken about what is and what are the advantages of using rest/restful ideas in one’s application. Last year, Mark Baker wrote …

Learn Ruby with the EdgeCase Ruby Koans
These instructions are for *nix platforms. We also have Windows instructions .You can run the tests by calling the path_to_enlightenment.rb file.In your terminal, while in the ruby_koans directory, type:In test-driven development (TDD) the mantra has always been red: write a failing test and run …

Emanuel Goette, alias Crespo: El maldito libro de los descarrilados
tutorial de Ruby on Rails en castellano.

Using Redis with Ruby on Rails
Redis is an extremely fast, atomic key-value store. It allows the storage of strings, sets, sorted sets, lists and hashes. Redis keeps all the data in RAM, much like Memcached but unlike Memcached, Redis periodically writes to disk, giving it persistence.Redis is an open source, advanced key-value …

To Redis or Not To Redis? (Key-Value Stores Part 4) | Engine Yard Blog
Welcome to another post in our key value series! This week, Redis! Redis is a persistent in-memory key-value store written in C by Salvatore Sanfilippo. It’s currently in version 1.0. So let’s get down to it, “To Redis or Not to Redis?” that’s the question…So, let’s say you have a situation …

Delivering email with Amazon SES in a Rails 3 app — giant robots smashing into o…
We’ve been using and loving Sendgrid on all our apps. However, Amazon SES came out last week and… you know… shiny.Right now, price. At our current email rates, we would save more than $10,000 in 2011 using Amazon SES over Sendgrid for Hoptoad.However, Sendgrid’s a reliable entity with more features …

colszowka/simplecov – GitHub
SimpleCov is a code coverage analysis tool for Ruby 1.9. It uses 1.9’s built-in Coverage library to gather code coverage data, but makes processing its results much easier by providing a clean API to filter, group, merge, format and display those results, thus giving you a complete code coverage

Getting Input: Ruby Study Notes – Best Ruby Guide, Ruby Tutorial
So far we had seen a method like puts that writes to the screen. How does one accept user input? For this gets (get a string) and chomp are useful. The example p005methods.rb below illustrates the same.# p005methods.rb # gets and chomp puts “In which city do you stay?” STDOUT.flush city =

cspmoreno’s Channel – YouTube
Canal dedicado a la programación orientada a objetos con el lenguaje Ruby on Rails con el IDE Netbeans. Explicación de como programar hasta llegar a construir nuestra propia red social

The JRuby Blog : Getting Started with JRuby and Java 7
Unless you’ve been living under a rock, you’ve probably heard about the new hotness for JRuby: Java 7’s support for dynamic languages. You may also have heard about the huge perf gains that JRuby’s seeing when running on Java 7. How can you try it yourself?The reference implementation for Java is …

Go Fetch | Virtuous Code
I’m a fan of the method in Ruby. I’ve noticed that other Rubyists don’t use it as much as I do, so I thought I’d write a little bit about why I like it so much.First of all, in case you’ve forgotten, is a method implemented on both and , as well as some other Hash-like classes (like the built-in …

Null Objects and Falsiness | Virtuous Code
Very often in Ruby code, we would like to execute some action only if an object is present:Strictly speaking, we aren’t checking for object presence here. In Ruby there is almost always an object present, but the default marker for missing data is the special object—the one and only instance of …

Concurrency in JRuby | Engine Yard Blog
This is a recap of my talk on the same subject at EventMachine RubyConf in Baltimore on the final day of RailsConf 2011.Concurrency is a hotly debated subject in the Ruby community. Shared state or shared nothing? Threads or Events? Sync or Async? The fact that the standard Ruby interpreter does …

InfoQ: Adding Properties to Ruby Metaprogramatically
Properties… the next frontier. Well, at least if you can’t stop yourself from watching the Java blog space, which is abuzz with discussions about this topic. Are Properties the next feature to save the world, give us that so desperately needed silver bullet, and finally make Java developers feel …

Programming Ruby: The Pragmatic Programmer’s Guide

Ruby Programming – Calling Methods Dynamically
C and Java programmers often find themselves writing some kind of dispatch table: functions which are invoked based on a command. Think of a typical C idiom where you have to translate a string to a function pointer: In Ruby, you can do all this in one line. Stick all your command functions into a …

Ruby dynamic method calling | Khaled alHabache’s official blog
I’m pretty sure that you have heard lots about ruby, specially as being a dynamic language, you can create methods on the fly, add instance variables, define constants and invoke existing methods dynamically , and that’s what this post is all about :As you know in ruby you can call a public …

Ruby Modules and Mixins
Modules are a way of grouping together methods, classes, and constants. Modules give you two major benefits.Modules define a namespace, a sandbox in which your methods and constants can play without having to worry about being stepped on by other methods and constants.Module constants are named …

Implementing Namespaces in Ruby using Nested Modules
Recently, I finally got around to starting to learn Ruby. I am finding it to be rather pleasant to program in. Now, one thing that I am used to using with an Object Oriented language (especially with my .NET background) are Namespaces. The only problem is that you can’t just declare a namespace in …

Include vs Extend in Ruby // RailsTips by John Nunemaker
Now that we know the difference between an instance method and a class method, let’s cover the difference between include and extend in regards to modules. Include is for adding methods to an instance of a class and extend is for adding class methods. Let’s take a look at a small example.As you can …

Ruby Mixin Tutorial
In Java you just have classes (both abstract and concrete) and interfaces. The Ruby language provides classes, modules, and a mix of both. In this post I want to dive into mixins in Ruby.In the Ruby language a mixin is a class that is mixed with a module. In other words the implementation of the …

My Links

More links about Ruby, mruby, ruby VMs are coming.

Keep tuned!

Angel “Java” Lopez