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.
How to test solidity smart contracts with ruby with RSpec and Etherium.rb
A small guide on how you could test your smart contracts in RSpec instead of using truffle [more inside]
5 Tips to Design Ruby on Rails Transactions the Right Way
Check out these 5 tips to ensure your transactions are readable and well-designed in your Ruby on Rails app. [more inside]
How to Use Import Maps
With the release of Rails 7, import maps are the default way of loading 3rd party Javascript libraries, which means you can remove Webpack and Node.js from your project. https://youtu.be/kjWluRJtAW0
The Testing Pyramid: How to Structure Your Test Suite
Explore different ways of organizing the test suite including testing pyramid, testing matrix and testing trophy. https://semaphoreci.com/blog/testing-pyramid?utm_medium=social&utm_source=smgroups&utm_campaign=testingpyramid&utm_content=text
How to use ActiveRecord in a library
Ever wanted to use ActiveRecord in a pure Ruby library/gem, not in a Rails app or Rails Engine? In this blog post I walk through how to accomplish this and some of the gotchas which I encountered along the way. Covers how to connect to the database, define models, “connect” the models to the database, and how to run a directory of migrations, all without Rails. Example source code is also available on GitHub.
Search rubygems.org via Raycast
Wanna search rubygems.org without opening a browser? I wrote a Raycast extension to search rubygems.org from within Raycast https://www.raycast.com/aleks/search-rubygems
Redis & Ruby
Been using Ruby and Redis for a long time, Redis best practices have been changing.
How to use CSS Variables with Rails
CSS custom properties (or CSS variables as they’re commonly called) are a great way to let users customize the look and feel of your Rails app. Check out the screencast to Learn How to use CSS variables with Rails
Glimmer DSL for LibUI Code Area (Ruby Tooling Future)
Brandon Weaver has recently contacted me to ask questions about Glimmer DSL for LibUI and said he was excited about the possibility of implementing Ruby syntax highlighting using Glimmer DSL for LibUI by leveraging the rouge gem. Glimmer DSL for LibUI 0.5.8 ships with a rudimentary code_area syntax highlighting custom control (aka widget). [more inside]
How to find your Ruby Software Career Path with Mina Slater
We interviewed Mina Slater (@minaslater) about her progression from Ruby Apprenticeship to Senior Developer. With more than a decade of experience with theater management before becoming a Software Developer, Mina has been progressing in her career as she wanted. She even created her own role. In the week this episode was released, she was promoted to Senior Developer! [more inside]
Rubber Duck Dev Show Episode 35 | Organizing Your Tests
Hear two rubyists discuss some best practices for organizing your automated tests: https://www.rubberduckdevshow.com/episodes/35-organizing-your-tests/
A Deep Dive into Unit Testing
Testing is a significant part of software development, and unit tests are fundamental. [more inside]
gem-compare goes 1.0
I wrote about finally hitting 1.0 for gem-compare, a RubyGems plugin to compare gem versions.
Glimmer DSL for SWT Video Tutorial 8 - Login (Computed Data-Binding)
Desktop development is about 10 times simpler than web development. Learn it and you will become a better web developer as you transfer the simplicity of desktop development to the web! Glimmer DSL for SWT (JRuby Desktop Development GUI Framework) Video Tutorial 8 is out! It walks software engineers through Login and explains Computed Data-Binding! [more inside]
The Return of Screamshot
I’ve resurrected Screamshot, a synchronous HTTP screenshot service I first released in 2016(!), and added a few new features - my favourite is support for prefers-reduced-motion=reduce
. Read about the updates here.
Justin Searls: How to Grow Your Engineering Team Tenfold in a Year and Keep Test Suit
Rapid growth of an engineering team poses its own challenges. One of them is keeping test suites healthy. [more inside]
Glimmer DSL for SWT 4.23.0.0
Glimmer DSL for SWT (JRuby Desktop Development GUI Framework) 4.23.0.0 was just released with support for the new SWT 4.23 and JDK 18! [more inside]
How To Build a Powerful Search Form With Hotwire
In this video, we’re going to look at how to create a search form using Hotwire. Namely, we’re going to filter the search results using Turbo Frames and we’ll add a touch of StimulusJS for real-time filtering. https://youtu.be/4MUEQVxUbm4
EveryLog: Notification app for your Ruby development team
We have just launched a notification app designed for teams of developers and ecommerce managers. The app can be used with any programming language, even Ruby. With EveryLog you’ll finally: ⚡ Send and monitor notifications for important projects only ⚡ Schedule internal communications by sending notifications at specific times. ⚡ Don’t lose your messages on your desktop or mobile device. Setting up notifications is quick and easy: we send you an API Key and you only need a POST request. Once you have filled in the required fields you are ready to go! This is what awaits you: 🚀 infinite projects 🚀 infinite tags 🚀 star entries 🚀 multiple users 🚀 data retention 🚀 push notifications Want to know more? Find out everything you need to know at https://www.everylog.io
Developing Rails within a dockerized environment
In this post I’d like to share my personal Docker/Compose/Dip configuration to hack with Rails itself. [more inside]
How to setup heroku autoscaling in under 15 minutes?
This article explores the use and setup of Heroku Autoscaling and checks if Heroku Autoscaling is a good fit for your application. https://dynoscale.net/blog/how-to-setup-heroku-autoscaling-in-under-15-minutes
Analytics with Rails
Analytics (i.e. stats about your visitors) is nowadays not cheap. Let’s see why, and let’s see how Rails could help. [more inside]