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.
Ruby Tapas ep 120, Outside-In Testing, streaming free at Everyday Rails
Last week, in the Everyday Rails blog, I mentioned one of my favorite episodes of Ruby Tapas. The particular episode shows how Avdi uses RSpec and an outside-in testing process to drive development. Read more
From Lousy to Beautiful
Due to the inherent flexibility of Ruby, there are often several ways of doing the same thing. But how do you recognize the best way, the “beautiful” way to go about something? It can be tough to describe and there may indeed be several “best ways” to do something. The ease of expressing real life through Ruby can give us a false sense of security. James Schorr came to realize that terrible code can be written — even with such a beautiful language. Read the guest blog post “From Lousy to Beautiful”.
MySQL dump done right
We have several Rails applications, each one has its own data. Data keeping is obviously the most difficult part for us to maintain properly. Read more
Rails Edge Case: ID Overflow
I wrote this post about what happens when you have too many entries in a model table.
Taming has_many associations in Rails 4
Ever had trouble with creating has_many associations from forms in your Rails 4 app?
▁▂▃▅▂▇ in Ruby
Sparkr let’s you create ASCII sparklines for your Ruby CLIs.
Build a Ruby Gem book
I’m writing a book on how to Build a Ruby gem. If you’re interested in updates and a discount code when the book launches sign up here!
YamlLocalesJsonizer - simple generation of JSON data for a frontend from Rails-style YAML locales
New gem that allows you to easily use i18n locale files from Rails in your JavaScript frontend. It provides asset file for the asset pipeline, and a view helper, to assist with locale updates in development. Compatible with i18next javascript i18n library. Read more
Two Rules for Devprenuers
Thinking about starting a business? You should keep these two rules in mind.
Lotus::Router a fast, and lightweight HTTP router.
Lotus::Router is an HTTP Router for Ruby, it’s fast, lightweight and compatible with the Rack protocol. Read more
How Lita.io uses the RubyGems and rubygems.org APIs
Learn how Lita.io uses some lesser-known RubyGems APIs to create an automatically updating list of plugins for the Ruby chat bot, Lita.
Ruby Gem for Vuforia's Web Services API for target management
I just finished writing a ruby gem to interact with Vuforia’s Web services API for target management:
Tutorial: Start Building an OS X app using Ruby - Takes 15 minutes, just try it!
New series I’ll be releasing through my blog on building OS X apps with RubyMotion. For anyone that was reading the MVC/Cocoa intro posts, I’ll still be doing those too! Here is part 1 for building OS X apps using Ruby. Read more
Making crawling and scraping websites slightly less painful with Anemone
I’ve written a blog post on Making crawling and scraping websites slightly less painful with Anemone.
Common Pitfalls of Code Metrics
After a couple of years of using code metric tools I blogged about common pitfalls you may encounter.
Ruby on Rails Explained for Front-End Developers
Our front-end developers at dojo4 had trouble knowing enough about Rails to be able to do their html/js/css awesomeness, so we wrote a book to help other people. Check it out: Ruby on Rails Explained for Front-End Developers
Functional Handler - A Pattern in Ruby
Sometimes we run across a case where we want to run several steps that are all dependent on the success of the previous step. Rather than munging together a bunch of conditionals, let’s take a page from functional programming to solve our problem. Read more
The most important thing you can do in an any interview
In what is turning out to be a series on recruiting and interviewing, in my latest blog post, I discuss the when, what and how of asking questions in an interview and why it is so important.
These Vim tricks will save your life
Check out these handy vim tips! Read more
6 Tips for Full Stack Open Source RubyGems Development
A post about creating a gem with all the needed integrations (badge, ci, and so on).
Using Rails with Postgres for schemaless data
Rolling your own integration with an external service where the schema can change from moment to moment can be tough. Read more
Mocking HTML5 API's Using PhantomJS Extensions
Recently one of our projects called for using the browser’s Geolocation API. We were excited about this project. However, we had an immediate concern about how to test a feature that interacts with one of the browser’s built in APIs. Read More…
Open github page for a gem via commandline
Simple timesaver: copy github for gem + gem-github {gem} = open github page for {gem} in browser
Development Environments for Beginners
I’m working on Development Environments for Beginners – a book that guides beginning programmers through the setup of Ruby, JavaScript, and Python development environments.