rubyinside.com Archives - 27 October 2017, Friday

Paul Dix, of Feedzirra fame, strikes again! This time with Typhoeus (Github repo ), a high-speed, parallel HTTP request library for Ruby. At first glance, you could be forgiven for wondering what the point is when we already have John Nunemaker's awesome HTTParty to build simple HTTP ...

RubyNation is a new Ruby conference launching August 1 & 2, 2008. It bills itself as an annual Ruby conference serving the Virginia, West Virginia, Maryland, and Washington DC areas. It costs $175 to register and you get admission for both days, lunches, snacks, drinks and a conferenc...

Raptor bills itself as a new Ruby "app server” and it claims to blow everything else out of the water performance-wise (by between 2-4x!) whether that’s Unicorn, Puma, Passenger, or even TorqueBox on JRuby. The bad news for now is there’s no source or repo yet and only a handful of pe...

Related:

(Photo credit: Kieran Huggins ) RubyFringe - described as a "pricey, limited-attendance smoozefest " by Ruby documentation co-ordinator James Britt or as "an avant-garde conference for developers that are excited about emerging technologies outside of the Ruby on Rails monoculture " b...

Later on I decided to benchmark my library with debugging more off . I got average times of 2.7 seconds to perform the heaviest test task with my library 1000 times over. I set out looking for optimizations, and decided to try a different approach with the debugging messages to avoid ...

Writing An Interpreter In 15 Minutes With Ruby By Peter Cooper / June 2, 2009 At the last regular London Ruby User Group meetup, James Coglan gave a talk on how to implement a Scheme interpreter in 15 minutes . He recorded a video of the coding in progress beforehand so he could focus...

Related:

Whenever you run a Ruby program, Ruby's parser processes the code and turns it into an "abstract syntax tree " (an AST) which can then be either turned into bytecode for YARV (on Ruby 1.9) or be interpreted immediately (as with Ruby 1.8). While a programming language allows programmer...

Related:

The 3 Step Guide to Slick Local Documentation for all your Ruby Gems By Peter Cooper / September 14, 2010 A couple of weeks ago, I wrote about RubyDoc.info , a "good looking, up-to-date Ruby documentation" site powered by YARD. Well, as of YARD 0.6 you can get the same greatness that ...

Related:

On the surface, VCR sounds like it copies the work of libraries like FakeWeb and Webmock , but VCR uses those libraries to provide a cleaner, more abstracted experience. VCR supports the mocking features of FakeWeb, Webmock, Typhoeus and Faraday out of the box, and further, supports m...

The #numwords method includes a setting ':and' which lets you specify how you want that situation handled. Unfortunately, I noticed that it wasn't working in the latest release, but I've since fixed it. Look for a new release that'll let you have 'two thousand four' in the next few da...

Related:

Building an iPhone Web app in under 50 lines with Sinatra and iUI - A comprehensive walkthrough of developing an iPhone friendly Web application based on Sinatra. Even if developing an iPhone app doesn't interest you much, this tutorial is so well written that it could act as a good i...

RubyScript? (Or, running Ruby scripts in the browser) By Peter Cooper / April 17, 2007 Dion Almaer has a go at implementing a basic Ruby scripting system for Web pages (or, as I call it, "RubyScript"). If you want to play with it, there's a live demo available here . Despite the slown...

Scotland On Rails Presentations Now Online: 27 Awesome Videos By Matthew Lang / May 23, 2009 Did you miss the Scotland on Rails conference this year? No need to fret though, as Engine Yard are hosting videos of all the presentations made at this popular conference. With 27 presentatio...

Related:

If you haven't got tab-completion and syntax coloring in your irb , you owe it to yourself to follow these instructions right away (should work for Linux, OS X, and Cygwin users). First, install the Wirble gem: sudo gem install -y wirble Next, create or edit a file called .irbrc in yo...

I wholeheartedly recommend this book to anyone except those who, well, could have written a similar book themselves. The short punchy chapters make it a delight to read and gives the option of reading it merely 10 minutes at a time before bed or similar. The short chapters also make i...

There is a big difference between a quick hack and a well tested patch worthy of a pull request. In a perfect world everyone would have the time and knowledge to contribute back every change they need, but I accept that this is not often the case. This technique deliberately has a low...

Want to develop a Mac OS X app without getting waist deep in Objective C? MacRuby is the answer, and it’s now mature enough to use directly from XCode to build fully-featured Ruby-powered Mac apps. “Jean Pierre Hernandez” of Phusion presents a walkthrough of how to do it , step by ste...

Related:

Three months on from the 1.1 release, Rubinius 1.2 has hit the streets bringing together 242 commits from 10 developers. As well as the typical bugfixes and performance tweaks that come with any implementation update, 1.2 brings some underlying structural changes that set up the path ...

Related:

awesome_print is a Ruby tool that provides "pretty printing" support for your objects. It's a bit like p , pp or, if you prefer, puts obj.inspect , but with significantly improved, contextual, colored output. Its creator and maintainer is Michael Dvorkin of Fat Free CRM fame. Being ab...

11 Tips on Hiring a Rails Developer By Peter Cooper / November 29, 2007 The following article is a guest article written by John Philip Green of Savvica , a Toronto based educational technology company whose development efforts are focused on Ruby and Rails. Hiring Rails full-time Rai...

Related:

is a combination of a cheat sheet and a tutorial. It's six pages long, but features a mini Ruby introduction and tutorial, as well as the myriad of tables you'd expect from a cheat sheet. It's like a whole Ruby beginner's reference and tutorial in a single PDF. The only "catch" is tha...

Sure. That's the convention for building libraries and proper, mass distributed (and ideally gemified) projects. This is a scrappy tutorial to learn about JRuby integration with LWJGL and Slick. I skip intense structuring if it's a scrappy, throwaway project, especially in articles li...

Related:

Thinking Functionally in Ruby is a talk that British Ruby developer Tom Stuart gave at a recent London Ruby Users Group meeting. In it he covers what functional programming is, why it's a "pretty neat idea," and how to adopt functional programming principles in Ruby. Skills Matter too...

Ruby Refinements: An Overview of a New Proposed Ruby Feature By Peter Cooper / December 6, 2010 Significant and serious improvements to the core Ruby language come along as infrequently as TextMate updates. Given that TextMate has had an update recently, an important new Ruby feature ...

Ruby on Rails 4.0 Guide: A Kindle Book That's Free Today A Kindle book by Stefan Wintermeyer that provides a step by step guide to learning to use Rails 4.0. It usually costs money but Stefan has kindly set Amazon to run an offer for the next couple of days.

If you were under the impression that the GIL made your code 'just work' in the presence of multiple threads, this should dispel that. The GIL can make no such guarantee. Notice that the first time running the file, the expected result was produced. In subsequent runs, unexpected outp...

Ripper is a library introduced in MRI Ruby 1.9 that hooks directly into Ruby 1.9's parser and which can provide you with abstract syntax trees or simple lexical analysis of the code that you provide. This can be useful to work out why Ruby is interpreting a given piece of code in a ce...

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...