Karma Chameleon - Focused at Rails developers, Karma Chameleon makes it easy to automatically have file extensions added to all of your app's links and URLs. The humorous motivation for this is so that you can have all your pages use ".aspx" or ".php" extensions to look better in corp...
Hashes with default values act in an.. interesting way, depending on your point of view. Merely accessing a value doesn't mean that the value is reified (made concrete) in the hash itself. The reason for this is that you can assign Procs to a hash's default_proc in order to perform ca...
English Name Equivalents for Ruby's Special Variables Post by Peter Cooper The English library (used by simply placing require ‘english’ in your program) allows you to access Ruby’s special variables using names expressed in English, rather than symbols. This makes the variables easie...
“and” vs && and “or” vs || in Ruby By Peter Cooper / August 3, 2010 If you use Ruby long enough, you will discover the and and or operators. These appear at first glance to be synonyms for && and || . You will then be tempted to use these English oprators in place of && and || , for t...
I'm a huge fan of nested context blocks for testing, but I've never gotten over my dislike of RSpec's .should matchers. So I feel obligated to point out that you don't have to use the .must_* and .wont_* method assertions -- MiniTest is perfectly happy to execute assert_* and refute_*...
Welcome to this week’s roundup of Ruby news, articles, videos, and more, cobbled together from my e-mail newsletter, Ruby Weekly. Sorry these roundups have been missing for a couple of months, I've been focusing very heavily on the e-mail newsletters which are continuing to grow like ...
A Simple Tour of the Ruby MRI Source Code with Pat Shaughnessy By Peter Cooper / December 3, 2012 I'm not in Ruby core or, well, even a confident C coder anymore, but I've long enjoyed digging in the Ruby MRI source code to understand weird behavior and to pick up stuff for my Ruby co...
The Last Week in Ruby: A Great Ruby Shirt, RSpec Team Changes and a Sneaky Segfault Trick By Peter Cooper / December 2, 2012 Welcome to this week's roundup of Ruby news cobbled together from my e-mail newsletter, Ruby Weekly. Highlights include: A time-limited Ruby shirt you can order...
"The only problem is that unless there is reform made to how the site is managed, the changes possible will be primarily cosmetic (would core team members seriously want a third party writing their blog posts?). I suspect it's a thankless and altruistic task and there are better peopl...
The Split is Not Enough: Unicode Whitespace Shenigans for Rubyists By Peter Cooper / November 26, 2012 That code is legal Ruby! If you ran it, you'd see 8 . How? There's a tale to tell.. The String with the Golden Space I was on IRC in #nwrug enjoying festive cheer with fellow Norther...
This Week in Ruby: Ruby 2.0 Refinements, Cost of GC::Profiler, and BritRuby Cancelled By Peter Cooper / November 23, 2012 Welcome to this week’s roundup of Ruby news, articles, videos, and more, cobbled together from my e-mail newsletter, Ruby Weekly. If you've been celebrating Thanks...
Disclaimer: Every time we've run a piece about benchmarking or performance numbers on Ruby Inside, a retraction or significant correction has come out shortly thereafter. Benchmarking is hard, ugly, and quite often wrong or biased. It is not useless, however, but if you depend on the ...
What's all the fuss about. We are used to not being able to use the MS Windows logo or name (or pretty much anything else) without either their permission or paying money or both. So it appears that Rails is now indeed becoming mature like Windows. If people don't like this there are ...
Welcome to this week’s roundup of Ruby news, articles, videos, and more, cobbled together from my e-mail newsletter, Ruby Weekly. Highlights include: MRI 1.9.3-p327, Rails 3.2.9, Capybara 2.0, and the Fukuoka Ruby Award. Featured Ruby 1.9.3-p327 Released: Fixes a Hash-Flooding DoS Vul...
Highlights include: Passenger 4.0 gets support for JRuby and Rubinius, Ben Orenstein's awesome refactoring video, Pat Shaughnessy's new 'Ruby Under a Microscope' book, AWS adds Ruby support to Elastic Beanstalk, and more.
HotRuby is a JavaScript and Flash powered virtual machine that can run Ruby code compiled to opcode by YARV. You can write Ruby script within a Web page within <script type="text/ruby"> .. </script> tags, and HotRuby will then extract it, send it to be compiled by a remote script, and...
This Week in Ruby: JRuby 1.7.0, Passenger 4.0b1, Ruby 2.0 Feature Freeze By Peter Cooper / October 25, 2012 Welcome to this week's Web-based syndication of Ruby Weekly , the Ruby e-mail newsletter. Highlights include: a massive release for JRuby, a promising beta for Phusion Passenger...
Sidekiq Pro: A Commercial, Supported Version of Sidekiq Sidekiq is a efficient background job processor (think Resque on steroids) that's free and open source, but creator Mike Perham is now offering a commercial variant with extra features and support.
This Week in Ruby: What to Expect in Rails 4.0 talk, EventMachine tutorial, and StrongParameters hit Edge Rails By Peter Cooper / September 20, 2012 Welcome to this week's Web-based syndication of Ruby Weekly. Featured Yehuda Katz Needs Your Input on the Tokaido (a.k.a. rails.app) UI ...
Active Admin is a popular administrative interface generation system for Rails and a new version has been a long time coming. 0.5 introduces batch actions (i.e. select multiple rows and delete them all), a customizable root route, and more view components and factories.
fog is a Ruby gem by Wesley Beary to control a variety of cloud services through a unified API . It deals with both server cloud and storage based services and supports Amazon S3 and Rackspace Files; as well as servers and on Amazon EC2 , Rackspace Servers, Terremark vCloud and Sliceh...
Ruby Fibers: 8 Useful Reads On Ruby’s New Concurrency Feature By Peter Cooper / May 13, 2009 New to Ruby 1.9 is the concept of fibers . Fibers are light-weight (green) threads with manual, cooperative scheduling, rather than the preemptive scheduling of Ruby 1.8's threads. Since Ruby ...
Tell, Don't Ask (with Ruby Objects) Bad for your relationships but good object oriented programming advice. Ben Orenstein shows off some quick before and after examples of telling your objects what to do rather than querying them to make decisions.
Xavier: Here's a patch which might help you understanding r31875. https://gist.github.com/1009750 Thanks for your contribution about loading time of 1.9.3. I think you saved CRuby committers from lots of claims about loading time, as well as Rails users :) As you see in load.c (and mi...
I hang out in #nwrug on Freenode, the IRC channel of a Ruby user group here in the UK, and floated the idea of doing a PostgreSQL (a.k.a. Postgres) installation tutorial for Ruby Inside. Coincidentally, it turned out 37signals sysadmin Will Jessop was already working on one so, I pres...
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 it’s results much easier by providing a clean API to filter, group, merge, format and display those results, thus giving you a complete c...
Ok, we don't definitely need a flame war about something as important as testing your code. IMHO it really depends on the developer and the team, I wouldn't be the first to say that should use what you're more comfortable working with, and hopefully what makes you even more productive...
This Week’s Ruby News: Ruby 1.8.7-p370, Rubyist Text Editor Poll Results, MagicRuby and More By Peter Cooper / July 6, 2012 Welcome to this week's Web-based syndication of Ruby Weekly , the Ruby e-mail newsletter (which just turned 100 weeks old this week - issue 100! :-)) Highlights ...
'Programming in CoffeeScript' by Mark Bates, Now Available Mark Bates, a Ruby developer, was won over by CoffeeScript and has written a book for Addison-Wesley which has now been published. Despite being a language that compiles down to JavaScript, CoffeeScript has become relevant to ...
The Ruby on Rails Tutorial: Learn Rails by Example (a.k.a. railstutorial.org ) by Michael Hartl has become a must read for developers learning how to build Rails apps. Michael has put together a great Rails 2.3 tutorial, releasing it all for free online chapter by chapter. Now, Michae...