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.
Idiosyncratic Ruby: Episode 29-31
…and here are the final three idiosyncratic episodes: Grammar edge cases, a regex char class cheatsheet and reasons to still use Ruby. There is also a new overview page to browse all episodes. Thank you for all the great feedback!
A refactoring exercise for fun and profit
An exercise where I refactor an existing real world piece of code - just for fun - and hopefully you and I profit (learn) from.
Algorithmic fun with Ruby's hashes
using Hashes to model and solve common logic problems http://www.sitepoint.com/algorithmic-fun-ruby-hashes/
Our Path to Services in Rails - Part I
Here’s new post on Our Path to Services in Rails - Part I. Hope you enjoy!
3 ways to configure your Ruby API wrappers
When you use Ruby to wrap an API, you have to have a way to configure it. Maybe the wrapper needs a username and secret key, or maybe just a host. There are a few different ways you could handle this. So which one should you choose?
Benchmarking Ruby dispatch strategies
Ever wonder how send and other kinds of dynamic method dispatch stack up, performance wise? I did some benchmarking.
Using online user detection to orchestrate in-app and email notifications
Often I get twice the same notification: one in the app, and another by email. This article shows a simple way to avoid notification overload, using Pusher and SendGrid: https://blog.pusher.com/smart-notifications-with-pusher-and-sendgrid/
Streaming data with ActionController::Live
Example of using ActionController::Live for real-time data streaming. - https://intercityup.com/blog/streaming-data-with-actioncontroller-live.html
Empty? vs blank? vs any? – why you should not use any? to test if there’s anything in
Any? is not always the best solution. Especially when you use it wrong and work with big a arrays. You can check why here: Empty? vs blank? vs any? – why you should not use any? to test if there’s anything in
Free coupons to TDD in Ruby course
Enjoy free coupons to TDD in Ruby Beginner Course. More than 100 FB likes and 5 star reviews from genuine students.
Practicing Ruby Contributors Fund
Please back this Kickstarter to help me bring ten new contributed works to Practicing Ruby. 100% of the funds will go to the contributors, and each contributor will also be given five days of my time to help with editing, research, etc. [more inside]
New "Ruby on Rails 4.2 for Autodidacts" Book
The Kindle version of my new “Ruby on Rails 4.2 for Autodidacts” book is online. It covers Ruby 2.2 and Rails 4.2. http://amzn.to/1K7X4cr
Query mongdb using hash or Json
We just released mongoid_hash_query which is the little brother of ActiveHashRelation gem. [more inside]
High level Rails testing using Capybara and Minitest
Here’s a short blog post about how to get started with writing high level acceptance tests in Rails using Capybara and Minitest.
Resourceful custom user profile themes in Rails
I wrote a blog post on building a solution to allow users to customize the style of their profile, the Rails way.
FIXED: Ring.pop: A beginner takes on 1,000 hours of Ruby and Rails
Hey Everyone, [more inside]
Justin Searls builds a software consultancy based on trust and learning
Justin Searls runs a software consultancy called Test Double out of Columbus, Ohio. Test Double has a unique model built on trust and learning. Justin talks to us about his consultancy, the layers of understanding that go into a complex software project, and things you should do to keep learning and advance your career as a software developer.
Rubycast #6 - Removing N+ SQL Queries for Speed
In part four of this multi-part series on building a fully functional calendar in Ruby, we will make the calendar more responsive and efficient by removing an N+ active record based SQL query in favor of a more optimized single query. [more inside]
Code Smells And Ruby Shorthand: Unpacking Ampersand + to_proc
One of the worst code smells – and a sign that it’s time to refactor – is long methods. Thankfully, Ruby has some pretty cool shorthands that’ll have you replacing lines in no time! This blog post explores the “ampersand and object” (&:) syntax and unpacks how it uses to_proc to make your iterations even simpler!
Megegen - use Migration Generator without include Rails in project
Mege.Gen is a ActiveRecord timestamped migrations generator CLI tool. Let’s find out [more inside]