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.
Common Rails Idioms that Kill Database Performance
Many of the most common ActiveRecord idioms produce SQL which doesn’t scale well as your dataset gets larger. In this article I discuss three of the worst offenders and offer work-arounds. http://blog.honeybadger.io/common-rails-idioms-that-kill-database-performance/
Invisible Captcha - New release with Rails 5 support
New patch release - Invisible Captcha v0.9.2: a simple and flexible spam protection solution for Rails applications, based on honeypots. Link: Read more
Ruby: Stream processing of shell command results
Executing a shell command and then processing results can be an overkill for both performance and memory. Here’s one of the alternative solutions for executing and processing shell command results in a stream.
Raw SQL formatter
Made simple gem for easy raw SQL reading in development. Hope, you find it handy :)
Super simple ruby decorators
I wanted to have model decorators, accessible from anywhere but in separate namespace. Read more
How To Spy on Your Ruby Methods
What if you could find out what a method is doing? Using this built-in Ruby class you will be able to…
Google Assistant SDK gem
Google provides a Node SDK for its Google Assistant. However, I work primarily in Ruby so I’ve created the google_assistant gem. It’s functional, but I am currently working toward a 0.1 release, hopefully to follow up with a 1.0 release before long. https://github.com/armilam/google-assistant-ruby
[Screencast] Periodic Tasks with sidekiq-cron
Using a third-party add-on, sidekiq-cron, we can create periodic tasks to extend the functionality of sidekiq. https://www.driftingruby.com/episodes/periodic-tasks-with-sidekiq-cron
My book 'Learn Ruby on Rails' free on Google Play
The first book in my series Learn Ruby on Rails is now available for free on Google Play. I’m making the book available as widely as possible. It is also free on Leanpub or Softcover, thanks to support from a Kickstarter campaign. If you’ve got a friend who has made a New Year’s resolution to learn to code, the book could be a good place to start.
How To Time Travel Using ActiveSupport TimeHelpers
If you need to test “time” literally. Here’s an alternative to TimeCop for testing time-related validity logic in Rails.
Event sourced domain objects in less than 150 LOC
Some say: “Event sourcing is hard”. Some say: “You need a framework to use Event Sourcing”. Some say: … Meh. You aren’t gonna need it. Learn how to build event sourced domain model starting with just a PORO object. Read more
tty-editor initial release
tty-editor allows to open a file or text in in the user’s preferred editor.
Ruby Survey
I’ve been thinking a lot lately and was curious to get some feedback from other Ruby developers, past or present. If you have time, I’d love to get your feedback:
Asynchronous programming in Ruby
In this blog, I have executed database queries asynchronously same as Node.js
pluck_all gem
pluck_all: Pluck multiple attributes in Rails 3, 4, 5, and return data as hash instead of only array. Read more
AppPerf - Open source ruby performance monitoring
I have made some significant updates to my AppPerf platform. Read more
The 15 most popular Ruby links of 2016
A round-up of the most popular links shared in Ruby Weekly in 2016.
BetterSJR v1.0.0 released!
BetterSJR is a Ruby gem which adds error message reporting to SJR templates. Instead of failing silently, you now get helpful error messages in your browser’s developer console. For more info and use-cases check the official announcement.
GraphQL in Rails 5
Checkout the latest screencast on using GraphQL in Rails 5 Read more
TDD'ing creation of Brainfuck interpreter in Ruby
You can follow the TDD process by looking at the commits history or see the end result.
Creating Advanced Active Record DB Queries with Arel
Under the hood, Active Record has its own private API to build database SQL queries: Arel. For now, let’s focus on passing in custom-built Arel queries. Read more