The Ruby and Rails community linklog
Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!
Submit a post
Post Preview
Note: Only the first pargraph is shown on the front page and overly long paragraphs may be broken up.
How to get anything done? - 4 tips
Not strictly related to ruby but those four mental tips really help me in my everyday Ruby programmer job to ship projects, write blogposts and books.
Eager Boolean Operators in Ruby: A Pattern to Continue Never Using
Eager Boolean Opeators: A Pattern to Continue Never Using A look at eager Boolean operators and bitwise Boolean operators in Ruby with an in depth analysis of their implementation, merits, and trade-offs.
Version Both Your Github Repo and Gem
Start versioning your github releases to match your gem releases.
Fault Tolerant Router
Do you have multiple internet uplinks? Do you want to use all of the available bandwidth? Do you want to remain online even if some of the uplinks go down? I’ve just released Fault Tolerant Router, check it out!
Crash Course on Modern Web Development: Rails Edition
Just updated my Ruby and Rails based guide to modern web development with updated resources and explanations. Looking for feedback, comment away!
Verse 0.3 release
New verse adds padding transformation and line breaks sanitizer.
Tracing Ruby code
What’s your strategy for digging into external library source code? Here’s my try: Tracing Ruby code.
Search pages on a single segment without querystrings
Isn’t /mid-range-contemporary-gray-decks better then /search%5B%5D=mid range&search%5B%5D=contemporary Read more
Ruby blocks behave like Procs?
Did you know that blocks can cause strange problems with early returns?
Build a Pocket Clone: Part 5
The next part in the series. Check it Out
Upcoming SecCasts Live: Rails Vulnerabilities
nVisium is doing its first Rails-focused SecCasts Live in two (live, of course) sessions on March 18th. Ken Johnson will present the top 3 most dangerous issues we regularly encounter in Rails applications along with steps to fix your applications. Registration is free and encouraged to take part in the live Q&A, but the recording of the session will be available later at SecCasts.
Splitting rails routes file
Do you have order in your routes?
Test JSON documents with RSpec
I tried different approaches… and the best for me is to use json-schema and the RSpec matcher I’ve pushed as a gem match_json. Give it a try and let me know your thoughts.
Decruft your Rails filters with the FilterDecrufter
Rails won’t warn you if a before_filter references an action that no longer exists, but the FilterDecrufter will!
Value Assignment and Deferment with Lambdas/Procs
A simple look at variables assigning value, or defered execution.
'Modular Rails' released - Learn how to build modular applications!
I just released the book I’ve been working on for the past months: Modular Rails! It shows you how to build modular applications by using Rails engines and encapsulate them as gems.
Comprehensive Style Guide for Ruby
As you probably know Bozhidar Batsov is working on a Style Guide for the Ruby language with contributions by numerous Rubyists. Read more
Why blocks make Ruby methods 439% slower
You’ve probably never thought about the performance differences between blocks and yielding, but it’s dramatic. This article explains why blocks are so much slower by going directly to the MRI source code.
Find_each: get your data efficiently [Spanish]
Do you know what is find_each? No? This method can help you to access your data efficiently. Visit this article and start to improve your queries in big tables. Full article. Enjoy!
Service objects in Rails
Details and different way of implementing them;
The simple but powerful Ruby Struct
An overview and some use-cases for the Struct and OpenStruct classes.
Gem of the Week #9 - state_machine(s) gem - model processes with finite state machine
Hello, over at the Planet Ruby the Gem of the Week series continues with #9 - state_machine(s) gem that lets you model processes and work flows with finite state machines (FSM) and automata theory on any class and attribute in Ruby. Full article. Cheers.
Using the Sucker Punch Ruby Gem to Cache Stripe Data in Rails
Here’s a new post on Using the Sucker Punch Ruby Gem to Cache Stripe Data in Rails. Hope you enjoy!