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
Note: Only the first pargraph is shown on the front page and overly long paragraphs may be broken up.
A deep dive into
extend self.. [more inside]
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]
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.
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 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]
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/
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
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.
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!
This config enforces many of the guidelines outlined in the datarockets Ruby Style Guide. https://github.com/datarockets/datarockets-style
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