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.
There’s only one day left to register for RailsRumble 2014. It’s a distributed 48-hour competition of one to four people to build an innovative Rails or Rack-based web application. In past years the projects created have been really cool and impressive considering how the limited time. Judging starts the day after the competition closes and winners are revealed by the end of the following week. You should try to compete.
Jack Watson-Hamblin emailed us this morning to let us know about the release of his Ruby motion for Rails developers course. The first two episodes of his screencast series are free, and show you how to write your first Hello RubyMotion app. He’s releasing an episode a week and the cost is around $8/month. Pretty cheap if you want some current Ruby Motion learning.
Aarti Parikh wrote a nice post about how hashes work in Ruby. She explains how a hash stores data, but also what happens when hashes grow and collide! Aarti also talks about some neat improvements brought with Ruby 1.9.3 and 2.0. Respectively hash ordering and more efficient small hash storage.
Jason Fleetwood-Boldt contacted us about his gem nondestructive-migrations. This gem allows you to separate schema-only migrations from non-destructive data migrations in your Rails app. With typical schema changing migrations, when you deploy you may need to turn maintenance mode on your server, run the schema changes, boot up the new app, then turn maintenance off. However, non-destructive data migrations can be run while the app continues to run with zero downtime. Instead of /db/migrate, they live in a db/data_migrate folder and to run the data migrations you can run “rake data:migrate”.
Tom Copeland goes over ways to make your routes shine a bit more. For instance by checking for routes that lead to controller actions you may have removed by checking your git history. He also points to traceroute, a gem that sniffs out dead routes and actions with a nifty rake task. The rest of the post doesn’t contain any magic bullets but a series of good habits to remove empty resource blocks, turn explicit CRUD resources into implicit ones, switch from the “only” to the “except” option.
While Tom doesn’t provide benchmarks, he does mention that having more stuff in your routes file slows down your application boot time. So especially if your routes aren’t being used, this seems like an easy boot performance win. In my mind this is also good security diligence, it’s easy to forget about controllers and routes you’ve stopped using. One last great piece of advice from Tom: avoid changing too many things at once in your routes. It’s much easier to pinpoint breaking changes when tons of routes aren’t involved.
Like many things with Rails, its default logging configuration is controversial. But what’s great about Rails logging is that it’s extremely configurable. In his “Better Rails Logging” post, Pete Hawkins goes over five simple ways to improve your logs: logging to standard out, using the quiet_assets gem to finally have peace, the lograge gem to compress request logging to a single line, disabling redundant unicorn logging if you use that web server, and using foreman and upstart to automatically rotate and gzip old logs.
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.
Rails data migrations, tools for optimization, Bundler::Updater, using UUID with Postgres, 20,000 Leagues Under Active Record, and Ruby 2.2.0
Greenscreen.io, rails-disco, onboarding your junior devs, being a better Rubyist, staging environments, and the anti-pattern of absolutes all in this episode of the Ruby5.
Shell Shocked, Factory Girl for frontend tests with Hangar, and upgrading from Rails 3.2 to 4.2
We go Airborne for Ruby 2.1.3 while Eagerly Decorating the skies and Swiftly avoiding the Daemons 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 © 2017 Code School LLC