You have disabled auto-rotation for stories. Re-enable?
Ruby5 is sponsored by Gaslight Software’s Mastering Backbone training course, taking place in San Francisco on December 3 through 5.
The 3-day intensive course will show you how to create Backbone.js applications using Jasmine for testing and CoffeeScript to write beautiful web applications.
Register today by heading over to: training.gaslightsoftware.com
Phusion has released version 4.0 beta 1 of Passenger. It now allows multiple Ruby versions on one Passenger instance. For example, you could run a 1.8.7 app and a 1.9.3 app at the same time. There’s also evented I/O, real-time response buffering, and a slew of other performance improvements which they cover in the release notes.
This week Joe Osburn dropped us a line to tell us about an article he wrote on the new Turbolinks feature in Rails and using delegated event handling with it.
If you have event handlers in jQuery, you’re going to have to reapply all your handlers everytime the body gets modified.
That is unless you use delegated event handling, with the document object as the parent element... which is an interesting solution. Check out the article for more information.
Not every Ruby user needs to write their own TCP servers and clients from scratch. If you do, though, you’ll appreciate the screencast Jesse Storimer just released. He uses the Ruby Sockets library, and he writes a simple server in just 3 lines of code.
Then Jesse goes even further by hand-coding replacements for the Sockets library methods. It shows you exactly how much pain Ruby is saving you with the high-level API. Along the way you learn what the library is doing under the hood, and what parts you might replace when the defaults aren’t what you want.
Igor Alexandrov wrote us an email yesterday to let us know about Metrika, a Ruby wrapper for the Yandex Metrika API. Apparently, Yandex... which I’ve never heard of... runs the most popular search engine in Russia, and Metrika appears to be their version of Google Analytics, with a bunch of additional features.
With the Ruby wrapper, you can very easily create, view, and delete any sort of webpage counters, goals, or filters.. and get all sorts of statistics on your traffic.
So one of the mantras of the Rails community is to always use attr_accessible... If you don’t use it, anyone can make assignments to any attribute on your model by hacking the form parameters.
Rails 4 is going to fix this vulnerability with “Strong Parameters”. Gant Laborde has written a blog post covering the forthcoming changes.
Sam Rawlins recently was awarded the Ruby Association’s 2012 Grant to help fund his work on Creosote, a mathematics package for Ruby... Sam reached out to us recently to let us know about a blog post he just wrote entitled “Checklist for the Benevolent Open Source Maintainer”.
He covers the obvious stuff like documentation, a Readme, and a good test suite. But he also brings up stuff you might forget, like setting up screencasts, an irc channel, or a mailing list.
Check out Sam’s blog post for the full list...
Ruby Under a Microscope, a $20 ebook by Pat Shaughnessy, has just been released. This ebook dives into the internals of some of Ruby’s most-used facets, so you can clearly see how Ruby is implemented.
Pat has contributed lots of free content to the Ruby community and we’ve covered him a great deal on the podcast, so it’s definitely worth a look.
Lastly, over here at Code School, we recently released Ruby Bits Part 2. This course picks up where RubyBits 1 leaves off, and covers even more advanced Bits of Ruby, such as Blocks, Procs, Lambdas, Dynamic Classes and Methods, Missing Methods, and in the last two chapters we create a DSL together.
If you’re not yet comfortable with Ruby metaprogramming, this is probably the most fun way to learn. And the first level is free if you want to just give it a try. Just head over to CodeSchool.com to give it a whirl.
A bunch of big project releases this week from JRuby, Redis, Git, and more. We also point you to a few useful gems like Sassquatch and Literate Randomizer, look at a teardown of the Rumble projects, and show you how your website can be a proud hipster on this edition of Ruby5.
We talk about the RubyGems downtime and its dependency API, Rails Rumble winners, versioning your Ruby objects, and take a skeptical look at Turbolinks.
Today's Ruby5 brings you joy in the form of six expertly crafted stories about a new Ruby patch release, some mobile development how-to's, tips on healthy Rails projects and better specs, how to share staging like a grown-up, and a tour of Rails 4 features.
We Naturally Express how Easy FAQs can be, create a Failover Pipeline to the 2012 Rails Rumble, and generally have a Backtastic time on this episode of Ruby5.
Looking to learn about Ruby? Take a look at the Ruby Path on Code School
This podcast is produced and distributed by Code School. Copyright © 2018 Code School LLC