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.
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
AppSignal Ruby Gem 2.10: Better Diagnose (And More)
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
Deploying Rails 6 application with Dokku
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
news.rb quick starter script - build your own newsfeed in 1-2-3 steps in 5 minutes
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.
Exploring Big-O Notation With Ruby
New article on our blog: You know Big-O is important - not only for acing your next job interview but for knowing how code works at scale. But have you ever taken the time to go beyond a superficial understanding of the subject? In this article, Julie Kent uses equal parts math and Ruby to reveal the beating heart of Big-O and show us how it ticks. https://www.honeybadger.io/blog/big-o-notation-ruby/
Handling Ruby 2.7 deprecations warnings
In Ruby 3.0, positional arguments and keyword arguments will be separated. For now ruby 2.7 brings deprecations warnings that notifies us that our code should be updated. How should we handle them? Read the post
pluto-news gem - newsreader for easy (re)use - build your own newsfeed in 5 minutes
Hello,
I’ve put together a new News module that offers easy to (re)use “porcelain” helpers / methods that hide the “plumbing” of the pluto machinery for building your own newsreader or newsfeeds in minutes in two easy steps, that is, News.subscribe and News.update. Happy planet. Cheers. Prost.
Working with temporary files in Ruby
⏰ Tempfiles versus Files 🗑 Tempfiles and Ruby’s garbage collector 🤪 Tempfiles quirks (and how to embrace ‘em) [more inside]
How to Deal with 1,000 Failing Specs in a Rails App
Are you staring down the face of a Rails app with a multitude of failing specs? Here are some strategies to chip away at failing specs during an upgrade – and keep your sanity in the process. Read the post.
[Podcast] Interview with Mike Perham from Sidekiq
This week on the Maintainable podcast, Robby Russell speaks with Mike Perham, Founder and CEO at Contribsys and author of Sidekiq and Faktory. They discuss the pros and cons of using external dependencies, how Mike built a business off of his open source project, Sidekiq, and the dIfference in maintaining Ruby vs Go software projects. [more inside]
[Screencast] Emojis from Scratch
In this episode, we look at attaching emojis to our comments model, allowing them to fill in some emotional cues. https://www.driftingruby.com/episodes/emojis-from-scratch
Error handling with Monads in Ruby
Many modern languages, including Ruby, use Exceptions as the primary method of error handling. [more inside]
tty-exit: terminal exit codes for humans and machines
The tty-exit is here to provide human friendly and standard way to use exit status codes in command-line applications. Instead of saying exit(64), you can say exit_with(:usage_error). It is so much nicer! Wouldn’t you agree? That’s why tty-exit gathers a list of all the most common exit codes as used by POSIX-compliant tools on different Unix systems for you to use. Enjoy!