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.
Scala vs Ruby - Creating a while loop DSL
https://npras.in/tech/scala-while-loop [more inside]
The fastest way to prototype API in your Rails app
https://github.com/igorkasyanchuk/fake_api this gem I 100% sure is the fastest way how you can build an API in your Rails application. See the demo in the readme!
How Was My Experience Migrating a Rails API to Crystal + AWS Lambda
In this article, I shared my experience building a Rails API and a post-migration to Crystal. I was implementing a Genetic Algorithm for the Travelling Salesman Problem, but after a struggle with Ruby on Rails processing speed, we decided to move all the code to Crystal and deploy using AWS Lambda. You can read more here and here
Sumo Logic Dashboard for Rails apps hosted on Heroku
In this article I share a simplified Sumo Logic dashboard I have use for production Rails applications hosted on Heroku. I dig a bit into how the queries work for graphing server performance metrics for Heroku dynos, Heroku Postgres, and Sidekiq. Read more here.
How to Calculate Tech Debt Using Skunk on GitHub Actions
Running Skunk on your Ruby project is now easier than ever thanks to Github Actions [more inside]
Getting Started With System Tests in Rails With Minitest
Dive into instances when generic methods are worth replacing with specific alternatives, illustrated by cleaning up strings. [more inside]
A trick with Ruby Hash.new
Hashes are used a lot in Ruby (sometimes even abused) and they have a very interesting functionality that is rarely used: Hash.new has 3 different forms [more inside]
Opening The Ruby Concurrency Toolbox
We just published an excellent post by Alex Braha Stoll. You’ll learn about all the tools that Ruby provides us for writing concurrent programs. You’ll see the same problem solved by each of these tools. That makes it easy to compare them. And finally, you’ll learn what might be on the horizon for Ruby concurrency. [more inside]
Monitor performance of your Rails application
https://github.com/igorkasyanchuk/rails_performance This gem is a simple alternative to the NewRelic, Datadog, etc. It’s using local Redis to store the information.
html-template gem - old-style classic HTML template language / engine like it's 1999
Hello, I’ve put together a new old-style classic HTML template language / engine like it’s 1999 that includes a back-to-the-future ERB converter too. The original HTML::Template package was written by Sam Tregar et al (in Perl with a first 1.0 release in 1999!). Happy text processing and template merging in ruby. Cheers. Prost.
Automatic image moderation using Amazon Rekognition
AWS provides a huge number of cloud services. Today we will focus on Amazon Rekognition which can help us with automatic moderation of uploaded images. By adding custom validation we will prevent uploading inappropriate content like nudity or violence. Read the post
Rails adds support for if_exists/if_not_exists on remove/add_column in migrations
Manage Redis by Rails Application
I come to present a tool that I have developed with 2 others developers https://github.com/OpenGems/redis_web_manager [more inside]
Ruby Quiz - Challenge #17 - Build an HTML Template Engine Like It's 1999
Hello, It’s Friday. Ruby Quiz time! Join us for the second challenge in the new year in 2020! Here we go: Challenge #17 - Build an HTML Template Engine Like It’s 1999 Let’s say you have the following blog roll / channels defined in ruby… Post your code snippets on the “official” Ruby Quiz Channel, that is, the ruby-talk mailing list. Happy text processing and template merging with Ruby.
Backward-compatible database migrations
A look at best practices, coupled with a horror story: https://withatwist.dev/backward-compatible-database-migrations.html