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.
Is module_function really the same as extend self ?
A deep dive into module_function
and extend self
.. [more inside]
Overview of running Rails on ECS Fargate
This post gives you an overview of the key components needed to deploy a Rails app to Amazon ECS on AWS Fargate. [more inside]
A few sneak peeks into Hey.com technology
An ongoing series of posts analyzing the hey.com website front-end code, trying to find the goodies that will possibly get extracted into future Rails, Turbolinks and Stimulus framework releases. An examination of the How did they do it? question. [more inside]
How To Integrate Google Calendar API with Rails
Integrate your Ruby on Rails application with the Google Calendar API and add tasks. Follow these steps during Ruby on Rails development to integrate Google Calendar. [more inside]
Trailblazer 2.1 released with dev tools and state machines
Trailblazer is a framework for a stronger Rails architecture. It provides service objects and flow control. Yesterday, we launched the new website and more docs along with a comprehensive release post introducing an improved developer experience, state machines, and many more upcoming gems.
WahWah - Audio metadata reader ruby gem
WahWah has been released v1.0.0 now. WahWah is an audio metadata reader ruby gem, it supports many popular formats including mp3(ID3 v1, v2.2, v2.3, v2.4), m4a, ogg, oga, opus, wav, flac and wma. WahWah is written in pure ruby, and without any dependencies.
New Screencast Site About Rails (+ Web-Dev in General)
I’ve been an indie Rails-hacker for 10+ years and recently recorded a series of screencasts showing behind the scenes of my web-app business, site OxbridgeNotes (scale = approximately 14k LOC Rails/JS). [more inside]
digest-crc 0.6.0 released. ~40x performance improvement!
digest-crc 0.6.0 has been released. This release introduces optional C extensions, that when built on CRuby, will override the pure-Ruby CRC methods with C equivalents, providing a ~40x performance improvement. If the C extensions cannot be built (no compiler installed, no ruby.h
headers, not using CRuby) digest-crc will fallback to using the pure-Ruby CRC methods. [more inside]
Understanding and Implementing Bubble Sort in Ruby
You’ll probably never need to implement bubble sort from scratch. Just call Array#sort! But sorting algorithms are a popular interview topic for a reason. They ask a bigger question: “Sure, you know what your code does, but do you know how it works? Do you understand the subtle ways that choices you make can impact performance?” In this article, Julie Kent will walk us through the famous Bubble Sort algorithm, demonstrating how it works, how to implement it in Ruby, and how to predict its performance. https://www.honeybadger.io/blog/ruby-bubble-sort/
Introducing Dash, a RoR open source dashboard
Dash: a Ruby on Rails open source dashboard that integrates pull requests and issues from GitHub with Pivotal Tracker stories https://www.ombulabs.com/blog/open-source/introducing-dash.html
AnyCable 1.0: Four years of real-time web with Ruby and Go
It is time to proudly announce the 1.0 release of AnyCable—a drop-in turbo-extension for Action Cable that relies on the same API and also works outside of Rails. As DHH had put it, AnyCable is a “cool open-source project” from Vladimir Dementyev and his fellow Evil Martians that combines the elegance of Ruby API with the performance of Go.
Git Rebase - A Complete Guide
While Git isn’t directly related to Ruby, it is used indirectly. This article on Git Rebase has been several months in the making. The article assembles a comprehensive guide for encouraging a Git Rebase Workflow and becoming a better engineer/communicator in general. Enjoy!
A History of Rails and JavaScript
I got caught up in writing about the many different ways Rails has asked its developers to work with front-end tools. This first part is about the link_to_remote and RJS years. Read it Here. [more inside]
How to handle GDPR in event-sourced applications?
GDPR in event-sourced applications can be tricky. I’ve described how we’ve handled it in our EventStoreClient gem and how the performance is improved in relation to RailsEventStore gem. [more inside]
Failsafe.rb
Just wanted to share a a little helper I’ve been using for years to degrade user experience instead of returning “500 - Server Error”: failsafe.rb.
Shared style configs and notes of code-style conventions
This config enforces many of the guidelines outlined in the datarockets Ruby Style Guide. https://github.com/datarockets/datarockets-style
Automatically keep tracks of outdated gems in a Github Issue
Check new release of your dependencies with a Github Action, base on your Gemfile. https://dev.to/bhacaz/automatically-keep-tracks-of-outdated-gems-in-a-github-issue-55n1
The ancestor chain in Ruby
The ancestor chain is the representation of the class hierarchy in Ruby. https://www.rubycademy.com/screencasts/12
How to Recover from API Downtimes and Errors
APIs are stable, until they aren’t. We talk about that often at Bearer. If you control the APIs, it gets easier, but with third-party APIs and integrations it can be more difficult to predict when an outage or incident is about to happen.
Extract Key or Value From Hash in Ruby on Rails
Want to extract key or value from hash in Ruby on Rails? Here is the tutorial showing the easiest process to extract key or value from hash in detail. Post Link - https://thedevpost.com/blog/extract-key-or-value-from-hash-in-ror/
graphql_activerecord_autoselect 1.0.0
Automatic ActiveRecord column selection for GraphQL (Ruby) fields. https://github.com/mrrooijen/graphql_activerecord_autoselect