See the full issue archive.
Subscribe to Ruby Weekly here.
Issue 142 - April 25, 2013
From the Practicing Ruby journal comes an excellent walkthrough of building a JSON parser from Aaron 'tenderlove' Patterson with the emphasis being on using parser and compiler tools in Ruby rather than parsing JSON per se.
If the string includes an invalid byte sequence for the encoding, #scrub replaces invalid bytes with a given replacement character.
New Relic’s Ruby Agent now provides Cross Application Tracing which tracks and visualizes how different services in your infrastructure communicate. In addition to tracking across Ruby apps, we can trace API calls made to Java, Python, PHP, or .NET apps. For example, you can use CAT to see related Transaction Traces between a Rails application and a high performance Java service.
MRI, Rubinius, JRuby, 1.8, 1.9, 2.0.. there are a lot of terms to keep track of when dealing with the most popular distributions and versions of Ruby interpreters. Mitchell Hashimoto explains the differences.
A high level overview of what is planned for RVM 2, the next version of the popular Ruby version manager and installer.
Want to run a bash script or command from Ruby? The un-named admin demonstrates a few different ways.
Translation of a single chapter from the Japanese 'Ruby Hacking Guide' book that looks into how MRI's code scanner works at a deep level.
A look at the process behind using metaprogramming to abstract a memoization technique out of a recursive Fibonacci calculation method.
A look at getting around the problem of sending individual notifications from a busy webapp by instead merging notifications over time into fewer, more palatable e-mails.
Not for beginners. Covers aliasing with typedef, attach_function usage, FFI::Structs as parameters, creating your own data types, and implementing type safety.
Mark Bates over at MetaCasts.tv has kindly offered up access to their MiniTest Rails screencast to Ruby Weekly readers. Why? Because in celebration of RailsConf, he wants to offer a month of his service to you too. (Disclaimer: We have no financial or business connection.)
Impress your friends, scare your enemies, and boost your productivity 800% with this live demonstration of vim and tmux. You will learn how to build custom IDEs for each of your projects, navigate quickly between files, write and run tests, view and compare git history, create pull requests, publish gists, format and refactor your code with macros, remote pair program, and more, all without leaving the terminal.
A look at how payments provider Braintree gets high availability on their Rails application, from pausing traffic without failing requests through to load balancing and rolling deploys.
What do you do when you are stuck in a TDD process? How do you decide where to start when testing? How can you pick what to test next?
A quick (5 minute) look at how you can cut out many of the "if" conditions in your Ruby code.
Sync lets you render partials for models that, with minimal code, update in realtime in the browser when changes occur on the server. Includes a handy screencast to show off the idea.
Scorched Earth is an artillery style game (a la Gorillas that came with QBasic) and its mechanic has been elegantly recreated in Ruby here by James Moriarty.
An add-on for Rails 3.0 and above that provides a simple way to group objects by day, week, month and more, complete with timezone support. Supports PostgreSQL and MySQL.
Automatically get Rails image_tag helpers to render lazyload-friendly HTML image tags.
You understand the hidden potential that lies between development and operations. You adore automatisation so in the end, you always drop the adequate DevOps Borat punchline. You love and contribute to open source software? Join us!
Following on from their popular Ruby Programming course, Mike and Nicole Clark have just released a Rails-specific course aimed at Rails 4.
Address: Office 30, Lincoln Way, Fairfield Enterprise Centre, Louth, Lincs, UK, LN11 0LS