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.
Released benchmark-perf with new api
benchmark-perf changes its run apis to be stateless calls with keyword args and the time measurements to be more accurate.
New release of persistent-đź’Ž gem with full support for TruffleRuby!
The latest release of the persistent-💎 (“persistent-dmnd”) gem is out, with full support for TruffleRuby 1.0! Now your Ruby can be fast and beautiful
A self hosted Medium platform built with Ruby on Rails
https://github.com/michelson/dante-stories This project is a fork of a Medium clone which began as Ken Hibino’s personal side project to learn Ruby on Rails and ReactJS. I’ve upgraded and refactored some parts of the rails app and I’ve integrated Dante2 wysiwyg editor. Try it out, it’s awesome !!
Caching Docker Rails images using master image
Blog post about improving Docker images built process in terms of required storage and build time using “master” build technique.
Adding an Attachment Presence Validator to Active Storage
If you’re using Active Storage, you should know that it does not (yet) provide a way to validate the presence of an attachment. Unlike Paperclip or the other popular file upload gems, there’s no validates_attachment_presence method you can use. Luckily it’s pretty easy to roll this out ourselves. I’ll share the custom validator code that I use to add in the missing validator in this post: http://www.carlosramireziii.com/adding-an-attachment-validator-to-active-storage.html
Alias in Ruby
In the following article, we’re going to explore the following topics:
How to: Road to fast and stable test suite
I’ve blogged - extension to my presentation from last RUG::B meetup, feedback is welcomed, especially that this is my first post ever 👾
Entendiendo la metaprogramaciĂłn con Ruby
¿Qué es la metaprogramación y como es aplicada dentro del lenguaje Ruby? [more inside]
101: Advanced OOP Structure in Rails Practice
When thinking about more advanced OOP structure, one can sometimes ask – how to incorporate it into a Rails application? I will try to answer that question in this blog note, introducing some advanced OOP concept into a Rails application (without any architecture gems). [more inside]
How to Use The Ruby Super Keyword
What does the super keyword do in Ruby? How is super different from super()? Find out in this new article:
Cutting corners is a short-sighted strategy #noshortcuts
In between my travels to Thailand and Japan I felt inspired by a Twitter conversation with Pieter Levels from Nomadlist.com where the main subject was how 100% bootstrapped (ie: no external investment) and fully-independent lifestyle business companies were not perceived as ambitious. [more inside]
Optimize Dokku Deployment Speed for Ruby on Rails apps with Dockerfile
Dokku lets you setup Rails hosting infrastructure on a simple VPS without much dev ops experience. Although it is easy to get started, a default config might result in very slow and unreliable deployments. In this blog post, I will describe how I’ve improved my Dokku based Ruby on Rails (NodeJS with Yarn and Webpack) application deployment speed by over 400% using a Docker image Dockerfile. [more inside]
Tech Book Face Off: Confident Ruby Vs. Metaprogramming Ruby 2
A review and comparison of two books on patterns for writing better Ruby programs.
Implementing a custom Redis and in-memory bloom filter
In our email marketing products, we changed our bloom filter implementation by using a custom Redis and an in-memory bloom filter written in Ruby. We will go through iterations at solving a real problem and writing a custom bloom filter from scratch.
What makes a good changelog?
In the second part of our series on changelogs, we’re looking at the details of what makes a good changelog. Spoiler Alert: It’s all about Consistency, Readability and Relevance.
Polyglot content in a rails app
A look at how to internationalize your app using the Mobility gem and allow you to reach new markets and customers by allowing content to be translated. Feedback would be greatly appreciated!
Refactoring Controller in a Good SOLID Practice
Refactoring controller action in a good SOLID practice
monitor server events in real-time
monitor server events in real-time. [more inside]
Small Ruby Refactorings #1
Improving readability by replacing complex logic with methods:
The Best Features of Active Storage
Rails 5.2 finally delivers file upload functionality straight out-of-the-box with a brand new core library called Active Storage. I’ve been using it in client work and side projects since the beta release, and the experience has been fantastic! If you haven’t had a chance to try it yet or you’re debating whether to use it in your next project, check this out: http://www.carlosramireziii.com/the-best-features-of-active-storage.html
The redo Keyword in Ruby
In the following article, we’re going to explore the following topics:
Smuggle gem! Exports and imports with ease
It’s a gem to manage exports and imports with ease, separating the logic from the models, resulting in a cleaner codebase. [more inside]
Understanding Transducers in Ruby
Translating one of my personal favorites into Ruby, will be writing more on this later. [more inside]