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.
Emulating Smalltalk’s Conditionals in Ruby
I’ve just released a gem for handling Ruby conditionals in block syntax https://github.com/KamilLelonek/active_nothing.
Ruby’s Partition for Enumerables
I recently found out about the partition method you can call on enumerables, I thought it was pretty cool so I wrote about it.
Minimalist library for build factories
With just a few lines of code(36 LOC), Fabricas helps you to build factories, there are no monkey-patch to any class or object and is very useful when you need to build objects fast, also is framework agnostic
Working With MongoDB's Aggregation Pipelines in Ruby
MongoDB’s aggregation pipelines let you perform data aggregations similar to SQL’s “group by” statements. The Mongoid and moped gems let you easily use the aggregation pipelines in Ruby.
Truth tables as Ruby Hashes
Capture complex logic in a truth table and use a Ruby Hash to implement it
Voice Computing in Ruby
If you’ve ever dreamed of having your own voice-controlled personal assistant, this well-documented and configurable project will get you started.
INTEGRATE "GEO_PATTERN"-GEM INTO MIDDLEMAN
You may have heard about the “geo_pattern”-gem. This article describes how you can integrate it easily into your middleman-website.
Fixing the "Blank Text" Problem
Text is almost always the single most important asset on the page, and developers need control over how and when it’s rendered.
Dig into RubyGems internals to find bottlenecks
In this intensive post we open up RubyGems to follow a speed bug report to see exactly why Is RubyGems slow?.
Create your own custom-built Ruby applications… automatically!
Every time you work on your own projects, you get tripped up on seemingly simple things. What if you could create your own custom-built Ruby applications automatically? - RubySteps
GrapeAPI: Basic Exceptions Handling
Why bother handling the exceptions? Well, I believe it’s basically for DRYing up things especially if these exceptions in general are happening very often in your API. http://blog.katpadi.ph/api-handling-exceptions/
Interview with Aaron Patterson during RubyConfIndia
Interview with Aaron , about how he got started with Ruby, what tools he uses to work/profile issues, contributing to Open Source, and much more.
RSpec cheatsheet as a Rails app: Learn RSpec from a model codebase
An RSpec cheatsheet in the form of a Rails app. Learn how to test Rails apps from a model codebase. Originally written for devs-in-training, the example specs demonstrate how to use RSpec. See spec/support for walkthroughs on configuring popular testing gems, including DatabaseCleaner, Capybara, FactoryGirl and many more. The README links to useful cheatsheets and API docs https://github.com/eliotsykes/rspec-rails-examples
Gem of Week #15 - beerdb gem - serving a Guinness Irish Stout as JSON w/ Ruby
Hello, over at the Planet Ruby the Gem of the Week series continues with #15 - beerdb - that ships with a ready-to-use database schema (in SQL) and models such as - surprise, surprise - Beer, Brewery, Brand and friends (using the ActiveRecord object-relational mapper machinery). Full article. Cheers. Prost. Kampai.
Gem for define callbacks
A minimalist and framework-agnostic gem for build hooks and define before/after callbacks in your ruby methods https://github.com/TheBlasfem/garfio
Top 10 famous websites built with Ruby on Rails
Ruby on Rails has come a long way - it’s amazing how popular it has become in recent years. [more inside]
Signing a user in from a worker
An interesting approach if you want your web app to scale :)
How to debug Ruby performance problems in production
A lot of performance problems can be found and fixed during development. But what about those slowdowns that only show up in production? Do you ship tons of tiny “maybe this fixes it” commits to see what sticks? You don’t have to ruin your code to analyze it. Instead, try rbtrace-ing it.
Documenting Your Code
Consider both points of view in the debate on documenting code and how you may do it with ease if you’d like to. http://6ftdan.com/allyourdev/2015/04/08/documenting-your-code/
A little primer on Singleton Classes
I have some articles lined up where I look into wacky facets of Ruby, and somehow singleton classes pop up in more than one of them so here’s a super quick, bite-sized refresher on why they’re awesome and used more than you think.
rgb — simple color conversions and manipulations
A simple Ruby gem built to handle easy color conversions and manipulations: https://github.com/plashchynski/rgb
Ruby Metaprogramming - Method Missing
Understanding how method_missing works and how you can use it to help develop dynamic method calls.
How to build a parser with Ruby
Parsing is the art of making sense of a bunch of strings and converting them into something we can understand. Continue reading: http://www.blackbytes.info/2015/04/parsing-with-ruby/
Holy Grail Of Estimating A Ticket Right
Estimations are scary. Estimations are tricky. Estimations are never accurate. Our team has recently conducted a short internal webinar which we’d like to summarize to combat some stereotypes you might have of this issue and help you in estimating the tickets right .