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.
2014 Rails Rumble Gem Teardown
I just finished the 2014 Rails Rumble Gem Teardown, which is a detailed analysis of the gemfiles used by the rail rumble teams. A ton of fascinating stuff this year, including the rise of Bootstrap, Rails Assets usage, Autoprefixer domination, etc.
Codeship now integrating with Ninefold
For anybody using Ninefold and/or Codeship: The two services now integrate. [more inside]
`respond_to` without all the pain
When you generate a scaffold in Rails, you’ll see the usual respond_to blocks. But some of your actions, like index, don’t have them. And those actions, when hit with a bad format, will raise the wrong kind of error. You want to handle bad formats correctly, but littering all your controllers with big respond_to blocks is crazy. It feels un-Rails-ish. So what do you do?
An example of dependency inversion
I recently stumbled on such a good example of the Dependency Inversion principle being applied that I had to blog about it.
Rails Disco: Get Down with Event Sourcing
I wrote this post on using the rails-disco gem to implement Event Sourcing. The basics of ES are explained using a demo Rails app. Boogie!
Benchmarking Rack Middleware
How do you benchmark rack middleware? Well read this blog post then go make your code faster.
Introducing "The Bike Shed", a web development podcast from thoughtbot
We’re excited to announce the release of The Bike Shed, hosted by Sean Griffin and Derek Prior. It is a biweekly podcast discussing thoughtbot’s experiences in web development. [more inside]
Optimizing images from terminal, ruby project or Ruby on Rails application
Few days ago I’ve released a satellite gem for image_optim called image_optim_pack. It contains latest versions of nearly all binaries required by image_optim for Mac OS X and Linux platforms (e.g. works on Heroku). It should make optimizing images from terminal, ruby project or Ruby on Rails application even easier.
Tropical Ruby 2015 CFP is open
Tropical Ruby 2015, the beach Ruby conference, will take place during March 5–8th at Porto de Galinhas, a paradisiac beach located in the Brazilian northeast coast. [more inside]
BDD on Rails with Minitest tutorial, Part 2: Implementing a Feature
Check out the second part of BDD on Rails with Minitest by Chris Kottom to see a step-by-step guide how you can use Minitest for complete feature implementation.
Growth Trumps Everything (For Startups)
You can’t expect customers to beat a path to your door because you have a great product. To succeed as a startup, you have to go out and recruit customers manually. Traction: A Startup Guide To Getting Customers gives a primer on how to market effectively. I’ve shared some nuggets and added some commentary as to why it matters for startups.
Find your happy_place with javascript and Rails
happy_place allows you to call js functions and pass in variables and partials. It has a simple interface which allows you to write object oriented javascript and use these objects in your controllers. [more inside]
How Canary Release helped delivering a Rails 2 to 3 upgrade
Hello rubyists from all over the globe! Just wanted to share with you our experience on delivering a big Rails 2 to 3 upgrade using a Canary Release approach. [more inside]
Green Ruby News #91
Another list of curated links about ruby, rails, webdev and other in Green Ruby News #91.
tty-progressbar released!
I’ve released tty-progressbar that displays progress bars in terminal and is super flexible. It is one of the components that is part of tty suite of tools. Please give it a try and let me know what you think!
Configuring Linux Box for Ruby/Rails Development with scripts
In this article I discuss why and how to do virtualization in (Ruby) development. Both - Vagrant and Docker are used for initial setup. Provision is done by the separate gem - linux_provision (similar to Oracle Instant Client Provision and OSX Provision).
gem TheDataRoleBlockRails released
TheDataRoleBlockRails is a mix of 2 popular frontend solutions ai/evil-blocks and kossnocorp/role with few patches for SLIM and HAML.
Ruby is about to get red hot. Again.
Ruby is about to get red hot. Again.
Memoization is an optimization technique...
Memoization is an optimization technique where you cache the results of expensive method calls. When the method is called with the same set of arguments, the cached result is returned. In this post, we will look at how we can implement memoization using Ruby’s metaprogramming features. [Continue reading…]
Back to Basics: Anonymous Functions and Closures
Anonymous functions and closures are a useful concepts included in most modern programming languages. Back to Basics: Anonymous Functions and Closures goes into depth in Ruby and JavaScript on this concept.
4 Fantastic Ways to Set Up State in Minitest
RSpec gives you a number of ways of setting up prior to test runs, but only some of these have direct analogs in Minitest. In this post, I show you the code that will let you approximate RSpec’s features (and explain when and why you might want to avoid using it). [more inside]
One-liner to get a precompiled Ruby on your own servers
Not a fan of RVM or rbenv for installing Ruby on your production/development servers? Ruby 1.9.2, 1.9.3, 2.0.0, 2.1.x for Debian, Ubuntu, CentOS, RHEL, Fedora is now just a download away.
To comment or not to comment, that is the question. About self documenting code
The very real danger with commenting code is that it becomes outdated while the codebase rapidly evolves. And out of date comments are far worse than no comments. So what’s the alternative?How to write code that speaks for itself.
Feature Flags on Rails
In this post we will explore how we’ve implemented feature flags in a current web-application we’re working on. It’s a very simple process which means there are no excuses not to use a feature flag in your application.