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.
tty-markdown initial release
tty-markdown helps you convert a Markdown text or document into a terminal friendly output.
How to avoid making your microservices too small
We did an in-depth interview with Darby Frey of Gamut. He has tons of experience with running microservices at scale on infrastructure like Heroku. (they featured him). You’ll learn:
Ruby String Methods (Cheat Sheet)
In this article you will find the most useful Ruby string methods with examples! http://www.rubyguides.com/2018/01/ruby-string-methods/
Explaining variable -a base Ruby refactoring pattern that should be known to everyone
Explaining variable refactoring, as its name is pointing, depends on moving logic of a complicated expression to temporary variables with meaningful names - I want to learn how to do this
Rubocop: Getting to Green in a Huge Rails App
To help improve a teams code reviews and let folks focus on what’s important. A team can collectively agree & enforce a Ruby style guide. This post helps you get a large app quickly under control when the team agrees to some conventions.
Stimulus JS Framework Introduction
Basecamp recently released a new Javascript framework called Stimulus. Check out the screencast to see how it compares with jQuery, React, Vue, etc and how you can use it to build an interactive frontend in your app.
List of Ruby Learning sites
A list of popular sites, blogs and tutorials for learning Ruby - [more inside]
PayPal Payouts in Ruby on Rails
PayPal Payout is a service that conveniently allows you to send money instantly to hundreds of recipients at one time. We painlessly integrated it into one of our client’s apps. Before we implement an example in Rails using the Ruby PayPal SDK, let’s compare it to its counterpart also from PayPal – Mass Pay. [more inside]
From Action Cable to AnyCable
The article explains the differences between Action Cable and AnyCable along with some useful migration tricks. [more inside]
Build advanced and bulletproof applications with Rails - learn about transactions
The transaction is a set of smaller actions such as database records creation, very often combined with an external API call. Learn how to use transactions READ MORE
fizzbuzzer gem - 1, 2, Fizz, 4, Buzz, Fizz,... - a collection of fizz buzz algorithms
Hello, I’ve put together a new fizzbuzzer command line tool and library (gem). 1, 2, Fizz, 4, Buzz, Fizz, 7, 8, Fizz, Buzz, 11, Fizz, 13, 14, Fizz Buzz, … - The fizzbuzzer library includes a collection of algorithms for playing the word game for children that teaches division (one of the four basic arithmetic operations in mathematics) or helps you find the world’s best coders in programming job interviews. Are you (re)using the fizzbuzzer library? ;-) Don’t reinvent the wheel or the feedbuzzer! Cheers.
Rails 5 attributes API, value objects and JSONB
A guide on how to use value objects in your Ruby on Rails applications with PostgreSQL JSONB. [more inside]
Refactor your Rails conditions like the best ones do: null object refactoring pattern
Looking for an excellent replacement for if conditions where you check if an object and its attribute are present? Meet null object and give it a try - READ MORE
Classics - 10 One Liners to Impress Your Friends - Ruby • Perl • Python • PHP ...
Hello, for a new Yuki & Moto Press book titled “Ruby Compared with Other Languages” I’m reformatting/republishing the evergreen classic titled “10 One Liners to Impress Your Friends” orginally posted in 2011 to show off Scala to pre Java v7 devs - now in the updated version incl. Ruby • Perl • Python • PHP • Erlang • Java • JavaScript. Show off Ruby to your friends :-). Cheers.
Generative Art in Ruby
I’ve just released a new version of my math_tool gem (only requires jruby) that should convince you generative art is possible with ruby. https://github.com/ruby-processing/math_demo
Classic - 10 Things Every Java Programmer Should Know About Ruby by Jim Weirich
Hello, for a new Yuki & Moto Press book I’m reformatting/republishing the evergreen classic presentation by Jim Weirich titled “10 Things Every Java Programmer Should Know About Ruby”. The items read: #10 Learn Ruby Conventions ++ #9 Everything is an Object ++
#8 (Almost) Everything is a Message ++ #7 Ruby is Way More Dynamic Than You Expect ++ #6 Objects are Strongly Typed, Not Statically Typed ++ #5 Don’t Worry About Interfaces ++ #4 Mix it up with Mix-ins ++ #3 Embrace Closures +++ #2 ri is Your Friend, irb is Your Other Friend ++ #1 Write Less Code ++ #0 Ruby Makes Programming Fun Again. Cheers.
Mapbox for Rails
mapbox-gl-rails is a set of Mapbox GL javascripts and stylesheets for Ruby on Rails asset pipeline. Just add it to your Gemfile in order to add interactive maps to your application.
Ruby on Rails and ActiveRecord self-join - tables naming explained
Usually, you don’t think about tables naming because it’s obvious. However, there is a case when you might stop for a second. I’m talking about a self-join instruction READ MORE
A Day in the Life of an Agency Rails Developer
What does a typical day look like for a Rails developer? Here’s a time breakdown of what it really looks like. https://blog.planetargon.com/entries/a-day-in-the-life-of-an-agency-rails-developer
Paris.rb conf 2018
Come to have fun with us on June https://medium.com/paris-rb/paris-rb-conf-2018-2fcedcf1384f
Sinator version 3
I’ve just released Sinator version 3.0.0. Sinator is a Sinatra based web application generator.
SimpleResourceController - a lightweight alternative for inherited_resources
simple_resource_controller is a simple and powerful tool for writing CRUD controllers.