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.
Building large features: my process for branches, requests and reviews
Working on large features can be tricky. I’ve spent the last few months refining a process that makes it easy to keep in touch with the main branch, to make reviews more manageable, and with little GIT overhead. 👉 https://remimercier.com/building-large-features-process/
Super v0.17.0
Super is a featureful, lightweight Rails admin framework. This release includes improvements to the filtering feature. I’m happy to say that Super is largely stable now, and future releases are unlikely to break public APIs. https://zachahn.com/posts/1623918287
Scout APM Launches Error Monitoring for Ruby Applications
Scout APM announces the release of error monitoring for Ruby applications. Scout APM + Error Monitoring centralizes performance monitoring, error insight, and real-time alerting within a single, integrated dashboard, helping developers streamline troubleshooting by eliminating the need for multiple web application monitoring services. Ruby developers can try Scout APM + Error Monitoring free for 14 days, no credit card required.
AnyCable Goes Pro: Fast WebSockets for Ruby, at scale
A year into AnyCable’s 1.0 release, Vladimir Dementyev and the Evil Martians introduce the Pro version. It adds special ingredients to already performant and scalable real-time formula that keeps the familiar Rails Action Cable API for full-duplex messaging and backs it with the blazing-fast Go server for WebSocket connections. And it’s all free while in beta!
💎 dns_mock - mimic any DNS records for your test environment and even more!
New release of dns_mock has been published. Test framework agnostic, lightweight UDP DNS mock server with dynamic/manual port assignment: https://github.com/mocktools/ruby-dns-mock
“Friends” (Undirected Graph Connections) in Rails
I wrote a short post about how to model social connections in a Rails app, using the Scenic gem to make a simple database view and virtual model.
Rails engine to add traffic analytics to your web app
We have released a Rails engine to enable traffic analytics to any Rails application out of the box. The goal is to have simple traffic analytics for the win of privacy. NO cookies, NO JavaScript, NO third parties and NO bullshit. We wrote a small article to explain a little bit further : https://www.basesecrete.com/active_analytics.html
Moving ActionCable over to Webpacker
If you’ll be updating your Rails application to use Webpacker, here is a step-by-step post on how I moved ActionCable to Webpacker.
Free autoscaling for all Heroku Rails apps
Every Rails app on Heroku should have a safety net in place, and now they can. Introducing the free plan for Rails Autoscale.
Ruby : the "unless" keyword
You are probably familiar with the “if else” control flow but there are certain situations where there may be a visually better way to write these statements. Here we will discuss how you can achieve this via the unless keyword in Ruby and the different ways you can use it. [more inside]
Rails 7 add encryption to Active Record
Rails 7 supports application-level encryption. We can declare which attributes should be encrypted and, ActiveRecord will encrypt and decrypt when necessary. https://blog.saeloun.com/2021/06/09/rails-7-add-encryption-to-active-record
Conditional HTTP GET: The fastest requests need no response body
Wrote a lengthy article on how to utilize conditional HTTP GET requests as a caching mechanism, with examples in Rails. Check it out here.
Examples of Successful Self-Taught Developers
Feel like coding is not for you? You’re not alone. To give you a boost of inspiration, here’s a list of a few successful Rails developers that come from unusual backgrounds. You can read it here.
Dave Thomas on Testing Past, Present, and Future
https://semaphoreci.com/blog/dave-thomas-testing-past-present-future 🎧 An interview about the impact of testing and how software engineering has changed over many decades.
Rails 7 ensures has_one autosave association callbacks get called once
In Rails 7, the autosave association callbacks for the has_one are non-cyclic. [more inside]
Template for making a stock Rails app Ready for Heroku deployment
Wrote a small Rails template to convert a new Rails app to be ready to be deployed on Heroku. [more inside]
Building A New Programming Language In Ruby: The Interpreter
In earlier installments of this series, Alex Stoll guided us through creating a lexer and a parser. These translated the human-readable source code into data structures. In this article, he begins work on the interpreter - the bit that actually runs our code! https://www.honeybadger.io/blog/building-interpreter-ruby/
My thoughts about Open-Source work
I’ve put together a summary of my thoughts related to Open-Source work and financing https://hanamimastery.com/articles/hanamimastery-origins [more inside]