Ruby Weekly is a weekly newsletter covering the latest Ruby and Rails news.

Author Archives: Peter Cooper

By Peter Cooper / November 15, 2007

Proar

Pro Active Record “Databases with Ruby and Rails” (Amazon) is a new book by Kevin Marshall, Chad Pytel, and Jon Yurek, published by Apress. The book goes deep into the ActiveRecord ORM library, a key part of Rails that makes it easy to deal with information stored within a database in an object oriented way. There are already several reviews on Amazon.com, although Josh Susser has written something more indepth.

To celebrate the launch of the book, the guys over at ThoughtBot (where both Chad and Jon work) are running a contest with three prizes of signed copies of Pro Active Record. Read More

By Peter Cooper / November 13, 2007

Interview with Evan Phoenix about Rubinius

Mike Moore, of the Rubiverse Podcast, has interviewed legendary Ruby developer Evan Phoenix about the Rubinius Ruby implementation project. If you like your Ruby talk deep down, dirty, and packed full of technical details, this is well worth a listen. The interview goes right into the inspiration behind Rubinius, the development process, and stories of discoveries made so far.

Make A Code Pasting Site In 15 Minutes With Sinatra & DataMapper

Nick Plante has written a great tutorial demonstrating how to build a code pasting site (like Pastie) in a very short period of time using Sinatra, a new lightweight Ruby Web framework, and DataMapper, a compelling new ActiveRecord alternative (which is going to be featured a lot more on Ruby Inside shortly). Read More

By Peter Cooper / November 13, 2007

Wxform1

David Mullet has put together a brief, but well formed, tutorial on getting started with the wxRuby GUI toolkit to develop graphical Windows applications using Ruby. Read More

By Peter Cooper / November 10, 2007

Pmpres

Rails developer Peter Marklund recently presented a five day “Rails 101″ course in Sweden, and used an epic 341 slide presentation to work his way through all of the topics. Inspired by the vast number of Rails videos, screencasts, and educational resources coming online lately, Peter decided to make his slideshow available to all (direct links: PDF or Slideshare). Topics include everything you’d expect from a comprehensive Rails course (installation, Ruby, migrations, ActiveRecord, forms, views, Rails 2.0, deployment, etc). Read More

By Peter Cooper / November 9, 2007

Heroku

Martin Sadler of WorkingWithRails.com just pointed me towards Heroku, an exciting new development in the Rails world. Heroku is an online environment where you can develop and host Rails applications.. all from the browser. This is pretty exciting stuff and, on paper, makes rolling out, tweaking, and playing with Rails applications a snap. Rather than blather on about how this could become a game-changer in the Web applications industry, instead I’ll point you to Heroku’s own excellent set of screencasts and feature tours.

Adam Wiggins, one of the three partners behind Heroku, has some more “from the trenches” detail in this post on his personal blog. Read More

By Peter Cooper / November 9, 2007

Reprise
Eivind Uggedal has written in with a note about a new blog system he’s built using the lightweight Sinatra framework. It’s about 100 lines long including the inline templates! An example of the finished software powers Eivind’s own blog. Sinatra is looking to be an absolutely excellent mini-framework for running up basic non-MVC applications, and you can learn more about it here. Read More

By Peter Cooper / November 7, 2007

Shoesdemo
Will Larson has put together a great “from start to finish” tutorial on building a graphical application on OS X using Shoes, the cross platform GUI library by whytheluckystiff. It goes right from explaining what Shoes actually is, through to its installation, some basic examples, and then to building a basic graphics-focused application. Read More

By Peter Cooper / November 6, 2007

Jrubyss

JRuby: An Introduction is a fresh new article by Chris Duckett that presents a practical, code-driven introduction to JRuby, a Java implementation of Ruby. It’s the perfect introduction for people who, perhaps, have an idea of what JRuby is, but who haven’t yet tried out any of the Java connectivity. The first page looks at interacting with basic Java libraries / classes, with the second moving on to building a basic Swing-powered GUI app using Java APIs from Ruby code.

Added: There’s also a screencast by Brian Chapados called Intro to JRuby that’s worth watching for a more practical, real-time look. Read More

By Peter Cooper / November 6, 2007

RDDB is a Ruby document-oriented database system inspired by CouchDB and developed by Anthony Eden. If you’re familiar with CouchDB, the whole system should make sense from the start, but if not, read on. You can create a database and insert documents in a simple enough way:

# First create an database object
database = Rddb::Database.new

# Put some documents into it
database << {:name =’John’, :income =35000}
database << {:name =’Bob’, :income =40000}

To “query” the database, you define a “view” using a Ruby block, as such:

# Create a view that will return the names
database.create_view(‘names’) do |document, args|
document.name
end

# The result of querying will return an array of names
assert_equal ['John','Bob','Jim'], database.query(‘names’)

Views are defined as Ruby blocks that are then used to select the documents and the attributes in the documents that you wish to retrieve. Read More

By Peter Cooper / November 4, 2007

Thomas Enebo of the JRuby team has announced the release of the first beta of JRuby 1.1. This is a significant release, focusing heavily on performance increases. The performance increases yielded so far are so significant that in most like-for-like tests, JRuby beats the regular Ruby interpreter (a.k.a. MRI) JRuby 1.1. On Rails-focused tests, JRuby also wins.. making JRuby the fastest way to run Rails applications at present. Charles Nutter talks about the improvements, along with a number of other interesting JRuby-related topics, in his latest blog post – a must read for Ruby implementation nuts. Read More

By Peter Cooper / November 2, 2007

As long time readers will know, Ruby Inside has its own jobs board at jobs.rubyinside.com. It doesn’t just have jobs posted only by Ruby Inside readers, but also jobs scraped from all over the Web with many Ruby and Rails related jobs being picked up every day (e.g. how does being a Ruby Engineer in Los Angeles take your fancy?).

Only two jobs were posted by Ruby Inside readers in October, but deserve special attention:

Ruby / MySQL Developers – Irvine, CA

WEGCash, an adult affiliate network company, are looking for some talented Ruby-focused Web developers to join their team in Irvine, California. Read More

By Peter Cooper / October 30, 2007

Begrubycover
Thanks to an article called “Top Programming Books on Google Book Search“, I’ve discovered that many of the pages of my book, Beginning Ruby (available also in e-book format here), are available here on Google Book Search. Most of Chapter 3 is there, along with chunks of every other chapter, including quite a bit of Chapter 16, a reference of “Useful Ruby Libraries and Gems”.

While I have your attention and while I’m officially posting about the book, so far it has 9 reviews on Amazon, 8 at 5 star, and 1 at 4 star, and they are well worth a read if you’re wondering whether the book is for you or not. Read More

By Peter Cooper / October 29, 2007

Ruby-Logo
Thanks to Jan Wedekind for letting me know that the Ruby Association, a formal Ruby promotion group chaired by Matz himself, has chosen a winner in the Ruby Logo Contest. The winning logo is by Tom Schaub and licensed under the Creative Commons Attribution-ShareAlike license.

I’d be really interested to hear what everyone thinks about it in the comments on this post. Read More

By Peter Cooper / October 29, 2007

Classxjxjs

Introduction to Ruby is a well produced set of four videos by Lucas Holland that provide an introduction to both Ruby and object oriented programming itself. The first video looks at what Ruby actually is and how it handles OOP concepts. The second video covers Ruby’s installation. The third looks at some of the tools and programs that come with a regular Ruby installation, and the fourth looks more into actually writing some code and processing data. Read More

By Peter Cooper / October 29, 2007

Bundle-Fu
Bundle-Fu is a new plugin by Tim Harper that can bundle CSS and JavaScript content from separate files into one file each automatically to reduce the amount of <scrip> and <link> includes required on the pages within your Rails applications. Read More