You have disabled auto-rotation for stories. Re-enable?
If you're looking for a top Ruby job or for top Ruby talent, then you should check out Top Ruby Jobs. Top Ruby Jobs is a website dedicated to the best jobs available in the Ruby community.
Ruby 2.2.0 was released on Christmas day, containing a bunch of new features and improvements. The new garbage collector is now able to collect Symbol type objects, reducing memory usage of Symbols. This new version has reduced pause time for garbage collection thanks to the Incremental Garbage Collector. Rails 5.0 will take full advantage of both of these features, when it eventually comes out sometime in the Fall of 2015, requiring Ruby 2.2 or greater.
Rails 4.2.0 was also released over the holidays. There’s AdequateRecord, the painstaking multi-year rewrite of ActiveRecord led by Aaron Patterson to improve the performance of ActiveRecord beyond what it was in Rails 2.3 days, which means a lot.There’s also ActiveJob, which was originally planned for Rails 4. It brings a centralized interface for queuing jobs for any queueing systems like Resque, Sidekiq or Delayed Job. There’s also Web Console which gives you the ability to run queries you would usually run in the rails console, but right inside the browser when an exception occurs, which is similar to the better_errors gem. And now, adding and removing foreign keys is properly supported in Rails migrations.
Every now and then you find yourself in a situation where Ruby doesn’t have that one method you need. For example, a nil_chain method, which allows you to write method chains without fear of tripping over a NoMethodError and NameError exception when something throws out a nil value. Sometimes you just want to call something if it exists, and not if it’s nil. The folks over at Forge Software wrapped up a bunch of these useful methods into a gem called “Finishing Moves”.
On new year’s eve Ruby Hero Brian Shirai wrote a blog post explaining why he is ending the RubySpec project. RubySpec is a set of specifications, or tests, on how Ruby is supposed to run that was taken out of the Rubinius project. The objective was to have a common set of tests, not written in C, that could be run against any Ruby implementation to see if it had all the right behavior for Ruby. The reason why RubySpec is no longer is quite contentious but it seems like collaboration on the project wasn’t optimal between Ruby implementation. There was already a fork from people working on the MRI implementation that tackles some of the issues with RubySpec itself. At the very least we can, we can all agree that knowing how Ruby should behave matters.
Broader discussion available at: https://gist.github.com/nateberkopec/11dbcf0ee7f2c08450ea
Occasionally it’s nice to cover a beginner tutorial, and we'd like to mention Cezar Halmagean’s tutorial on testing controllers in Rails. Controllers can be pretty easy to test assuming you know how to stub out calls and set expectations properly. Otherwise they can mimic your integration tests, which is not very useful.
Ruby5 is released Tuesday and Friday mornings. To stay informed about and active with this podcast, we encourage you to do one of the following:
This episode was co-produced and edited by audio guru Jamison Rabbe.
Eastward Ho, Git ours/theirs and where does your code go?
This week we have Streem, Rails 4.2.rc3, Papercrop, and RubyMotion 3.0.
This week we have a jRuby security release, a new Command API for ROM, Traveling Ruby, early validations, easy rewrites with Ruby and Science!, and a Rails Camp not too far from Hobbiton.
RubyConf 2014 on Confreaks, browser geolocation with Spyme, referential integrity with foreign keys, forwarding messages with tell, and free SecCasts all in this episode of the 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 © 2017 Code School LLC