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.
Today
Httpx 0.11.0 released
Release notes: https://honeyryderchuck.gitlab.io/httpx/rdoc/files/doc/release_notes/0_11_0_md.html
Run fast RSpec tests with GitHub Actions parallel jobs
Example of how to configure Github Actions and its parallel jobs to run faster Ruby tests. https://docs.knapsackpro.com/2019/how-to-run-rspec-on-github-actions-for-ruby-on-rails-app-using-parallel-jobs
StatusCode: Our Weekly Programming Newsletter
You’re not just a Rubyist, you’re a software developer, right? :-) Check out StatusCode Weekly, our language and architecture agnostic newsletter that covers the biggest news across the entire software development world.
Kafka for Rubyists Mini Course: Advanced Kafka
Another part of the Kafka for Rubyists Course, this time focusing on some more advanced aspects of Kafka. [more inside]
Billing Extraction: A Tale of GraphQL Internal API Optimization
In Billing Extraction: A Tale of GraphQL Internal API Optimization we describe how we migrated an internal API form a slow REST implementation to an optimized GraphQL-based one. Read to learn what we did to make it safe, what patterns we used (and rediscovered) and what mistakes we made ;).
crypto-lite Gem - cryptographic secure hash functions and public key signature algos
Hello, I’ve put together a little crypto library / gem, that is, crypto-lite - cryptographic secure hash functions and public key signature algorithms made easy (incl. sha256, rsa, etc.). Cheers. Prosit 2021! PS: New to crypto (programming)? See the Best of Crypto Books.
Magic Responsive Tables with Stimulus and IntersectionObserver
Using Stimulus and Rails server-rendered HTML to build a responsive scrolling data table [more inside]
Building, Testing and Deploying AWS Lambda Functions in Ruby
For quick, scalable, highly-available web services, few options compare to AWS Lambda. Just provide your code, add a little configuration, and you’re done! In this article, Milap Neupane will introduce us to Lambda, show us how to get it working with Ruby and the Serverless Framework, and discuss reasons to use — or to not use! — Lambda in production. https://www.honeybadger.io/blog/ruby-aws-lambda/
The Most Common Types of Technical Debt in Rails
One of our software engineers wrote a blog post about the most common types of tech debt we encounter in our projects and I thought it might be useful here. Common kids of technical debt in rails projects.
Serverless Ruby on Rails on AWS Lambda [Example app]
Recently Lamby was announced which helps you to bundle up your Ruby on Rails application and push it to AWS Lambda. That’s right you can now run Ruby on Rails applications on AWS Lambda ! [more inside]
Easy Automated Rails Tests with Github Actions
Modern software development typically includes some form of continuous integration and delivery. An essential part of CI/CD is automated tests. Github Actions is a quick and easy way to do automated testing. This is my “starter workflow” for automated Rails tests in Github Actions! [more inside]
New release of activerecord-analyze gem
The new release of https://github.com/pawurb/activerecord-analyze gem supports custom plan output formats and all the other PostgreSQL EXPLAIN ANALYZE options.
access logs and execute shell commands on the staging server
https://github.com/igorkasyanchuk/sweet_staging who needs a solution to “tail” staging.log on the server? Or execute a code in the rails console. Or check if the process is running in the OS? [more inside]
Gladiator (Glimmer Editor) v0.7.0
Gladiator (Glimmer Editor) v0.7.0 (code text editor built in Ruby via Glimmer DSL for SWT) has been released! https://andymaleh.blogspot.com/2021/01/gladiator-glimmer-editor-v070.html
Interact with Mysql Server using mysql2 gem [Part 1] – Select operations
This tutorial shows how to perform basic select queries to interact with MySQL Server using mysql2 gem. Link: https://thedevpost.com/blog/mysql-server-mysql2-gem-select-operations/
Awesome Ruby blogs
Hello! 👋 I updated awesome-ruby-blogs (fixed redirects and broken links, added a lot new interesting blogs). If I missed something, please, send me pull request! Thanks and have a nice day! 💎
Day 7 - centralbank @ Ruby Blockchain Week 2021 - 7 Days of Ruby (Crypto) Gems
Hello, let’s welcome the seventh write-up in the Ruby Blockchain Week 2021: Day 7 - centralbank Gem - Print Your Own Money / Cryptocurrency - Run Your Own Federated Central Bank Nodes on the Blockchain Peer-to-Peer over HTTP. Cheers. Prost PS: Bonus! - Day 7 - merkletree Gem - Build Your Own Crypto Hash Trees - Grow Your Own Money on Trees. That’s the end of the blockchain series 2021. See you next year. Have fun staying poor.
Day 6 - kittyverse @ Ruby Blockchain Week 2021 - 7 Days of Ruby (Crypto) Gems
Hello, let’s welcome the sixth write-up in the Ruby Blockchain Week 2021: Day 6 - kittyverse Gem - Inside the CryptoKitties 256-Bit Genome - Slice ‘n’ Dice Unique Bits ‘n’ Bytes - 48 Genes (12 Traits x 4 P, H1, H2, H3) - Build Your Own CryptoKitties Gene Reader - The Future is Meow. Cheers. Prost
Lazy Loading Lots of Comments HOTWire Tutorial #5
As we continue in building out the HOTWire Hacker News Progressive Web App, it’s time to look at loading the comments. Using Turbo’s lazy loading, we can load in the comments as they’re pulled from the Hacker News API. [more inside]