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.
Project health indicators on the Ruby Toolbox
The Ruby Toolbox is a website that tries to make finding popular and maintained open source Ruby libraries easier. In a recent community survey many users requested a better way to see the maintenance status of libraries. Today, I have launched new project health indicators to help with that.
Serverless Slack bot on Lambda with Ruby (and what’s the less pleasant part about it)
A journey of moving our slack bot from Heroku to AWS Lambda: https://medium.com/@pawelpacana/serverless-slack-bot-on-lambda-with-ruby-f43e199f8e35
How to Reduce Memory Usage by Tuning Gemfile
Hey! I’d like to share a simple technique for reducing memory usage in Rails apps by splitting gems into web- and worker-related groups and loading only what’s necessary: https://www.gregnavis.com/articles/how-to-reduce-memory-usage-by-tuning-gemfile.html
very simple guard implementation
Tired of manually specifying “rspec models/user.rb controllers/users_controller.rb … “ [more inside]
Ruby Sinatra on AWS Lambda
AWS Lambda now Supports Ruby natively. That means we can build serverless applications with the language we all love. Not only that doh. You can run small Sinatra microservices with AWS serverless approach and in this article we will have a look how/why. [more inside]
How Squashing commits can make you smile.
How to improve every day of every developer with a little help of GIT 😀 [more inside]
Ruby Kafka Messaging App using Docker
A simple Ruby messaging app running in a container that connects to Kafka running in another container. Ruby Kafka Producer Consumer
The clipboard gem, or: How to `pbcopy` on non-Mac operating systems
Did you know how simple it is to access the clipboard from Ruby? It’s just Clipboard.copy and Clipboard.paste when you use the clipboard gem. The newest release includes support for WSL, the Windows Subsystem for Linux.
Mastering data structures in Ruby — Persistent lists
This post is the closing post of a series on mastering data structures in Ruby where I introduce the concept of persistent data structures, a term coined by Driscoll in an article from 1986 that these days it’s at the core of most purely functional data structures. On this article, I’ll review the core aspects of persistent data structures and show you how to implement persistent, immutable linked lists using the Ruby programming language. I hope you like it! Mastering data structures in Ruby — Persistent lists
CircleCI private Slack notifications with a Ruby AWS Lambda
This article shows how to build a ruby lambda with some additional gems (and specs) to create a private Slack notification when CircleCI builds fail. [more inside]
5 mistakes we made in early phase of rails project
I tried to summarize the most painful mistakes we made in the early phases of rails project. Enjoy and share your thoughts: https://codecoding.net/ruby/on/rails/2018/12/07/top-5-mistakes-in-early-rails-project.html
MiniI18n - New release with custom plurals rules
I just released a new version (v0.8.0) of MiniI18n gem with custom pluralization rules support. Languages vary in how they handle plurals, now you can reflect these variations by adding custom rules per locale. [more inside]
Elixir/Unix style pipe operations in Ruby
This proof of concept demonstrates a concise/elegant syntax for pipelining and method composition! [more inside]
A little Active Storage cheat sheet
Have a look how to display, download and stream files with Active Storage.
Using Postgres' citext to clean up messy downcase code
You may want to use the “citext” Postgres type to clean up messy downcase code when looking up slugs/emails/etc in your Ruby/Rails app. In this decision, I quickly explain how this works!
Upgrading Ruby on Rails Insights and Strategies
https://blog.kiprosh.com/upgrade-ruby-on-rails-0eda77ac-6ba2-4893-8001-9a033702f9ef/ For the past few months at Kiprosh, we’ve done versions upgrade of multiple mid to large scale Ruby on Rails applications. One of them was running Rails version 3.2.22. That’s where we found out that, we need to make a lot of changes in our codebase to run our application on version 4.0. Hence, we thought to write this blog post to share our insights and recommended strategies for upgrading such mid to large Rails applications.
Iterating over large tables in MySQL using ActiveRecord
https://medium.com/@rajagopals/activerecord-on-mysql-iterating-over-large-tables-with-conditions-453bd8761c8b . In a high volume analytics system, tables with millions of records are quite common and iterating over the full table or a subset of these tables becomes often necessary — whether it’s to perform computations, run a migration, or create parallelized background jobs on the records. It becomes important to write efficient code for iterations because there is often an order of magnitude difference between a good and not-so-good approac
Ruby Quiz - Challenge #8 - Decipher Super "Sekretoooo" 240-Bit CryptoKitties Genome
Ruby Quiz - Challenge #8 - Base32 Alphabet - Convert the Super “Sekretoooo” 240-Bit CryptoKitties Genome to Kai Notation. Annipurrsary! Let’s celebrate one year of CryptoKitties - yes, more than one million cute little cartoon cats on the blockchain. Let’s convert the super “sekretoooo” kitty genome - that is, a 240-bit integer number where every 5-bit block is a gene - into the base32 (2^5=32) kai notation. Happy genome genetics slicing with ruby.
SOLID & Ruby in 5 short examples
In this article we’re going to explore the following topics: