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.
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
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.
Running Skunk on your Ruby project is now easier than ever thanks to Github Actions [more inside]
Dive into instances when generic methods are worth replacing with specific alternatives, illustrated by cleaning up strings. [more inside]
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]
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.
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.
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
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.
A look at best practices, coupled with a horror story: https://withatwist.dev/backward-compatible-database-migrations.html
AppSignal released Ruby gem 2.10. It focusses mostly on diagnose and configuration. Here’s a round-up of what’s in the release - https://blog.appsignal.com/2020/02/05/ruby-gem-2-10.html
Heroku, AWS, Google Cloud are great services for hosting Rails application but they are expensive. If you are developing a small app, kicking off a startup or just playing with Rails you can use cheaper solutions - cloud hosting, like DigitalOcean or Upcloud. The problem is the setup - you need to install dependencies on your own. Then deploy your application manually or using for example capistrano, which also requirers a lot of setup. What if we had self-hosted heroku? Read the post
Hello, a follow-up to the new
News module to get you started really quick. A new
news.rb quick starter script that lets you build your own facebook newsfeed in 1-2-3 steps in 5 minutes. Use the 20+ pre-configured ruby news channels or add your own. Happy planet! Cheers.