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 Rails and Heroku Saved My Bacon
The holiday season is wild. With that and a wedding, I was at full-tilt stress mode. Luckily the simplicity of Ruby/Rails + Heroku got me out of a jam https://schwad.github.io/ruby/rails/heroku/2019/01/11/how-rails-and-heroku-saved-my-bacon.html
Sharding Clio's Database (Part 3 of 3)
The last in a three-part series on how Clio sharded our Rails app’s MySQL database, and some things we learned along the way. [more inside]
The short guide to learning how Classes work in Ruby
LINK - As Ruby is a dynamically typed object-oriented language, then the key concepts behind classes and objects are at the roots of this programming language.
How Do You Use Environment Variables in Ruby?
Environment variables are everywhere in Ruby, but do you know what they are exactly & how they work? Find out in this article: https://www.rubyguides.com/2019/01/ruby-environment-variables/
Exploring a critical Net::Protocol issue in Ruby 2.6.0p0 and its security impact
In this article I’m exploring potential problems that you may encounter when using the brand new Ruby 2.6.0 due to a Net::Protocol issue. Highly recommended as it impacts anything that sends data using the HTTP protocol as well. [more inside]
Process Manager Vs Saga Conusion
When I started learning DDD I found very confusing the fact that the term “Saga” used everywhere even if it shouldn’t be. Here I tried to explain when the problem lies and how to differ the saga and Process Manager [more inside]
Building a minimalistic API with rails
This article explains how with very little code you can create a solid foundation for a REST API in Rails. It has all you need to start with: authentication, pagination and error handling, and everything with only a few lines of code. [more inside]
wkhtmltopdf on Heroku: evaluating different installation options
This article will show different ways of running wkhtmltopdf on Heroku, with a focus on app slug size – something very often neglected but essential for optimal build and boot performance. https://razorjack.net/wkhtmltopdf-on-heroku-evaluating-different-installation-options/
2018: Review of a year of blogging about Ruby in numbers
[LINK] – 2018 was my first year as a tech blogger. [more inside]
What is A Matrix & How to Use It in Ruby?
In this article you’ll learn about the Matrix class, how it compares to 2D arrays & how to use the powerful Daru gem for data analysis. https://www.rubyguides.com/2019/01/ruby-matrix/
Bindings and Lexical Scope in Ruby
In this year’s first edition of Ruby Magic, we’ll learn all about bindings and lexical scope. We’ll show how scope works in Ruby’s functions and closures. And we’ll take a peek at how ERB uses Binding objects to render templates.
TensorFlow reimplementation to enable ML in Ruby
New implementation of TensorFlow landed on our Ruby Machine Learning list. Find new insights on Machine Learning with Ruby https://github.com/arbox/machine-learning-with-ruby#articles-posts-talks-and-presentations [more inside]
Recommended Books, Blogs for Software Engineers
Reading is one of the most habits which has helped me unstoppable develop, improve technical skills and soft skills. Today, I want to share my reading list which is useful in my career path and you too. Read more: https://hackernoon.com/recommended-books-blogs-for-software-engineers-8a4351abe804
Rubyoshka: composable HTML templating for Ruby
I’m happy to introduce Rubyoshka, a new HTML templating engine for Ruby. It offers a way to write HTML markup in plain Ruby (in a similar fashion to Markaby), and to split your markup into multiple reusable components, with nice performance characteristics.
My Ruby 2018: Around the world in nine conferences
Vladimir Dementyev (TestProf, AnyCable, Action Policy) tells how he got to travel to, and speak at nine Ruby conferences around the world in 2018—including the ultimate trifecta: RailsConf, RubyKaigi, and RubyConf. What was special about each of them and whose talks were not to be missed.
The Ruby Reference updated for Ruby 2.6
The Ruby Reference is intended to be most full, actual and accessible language reference. Most of the reference content is taken directly from Ruby documentation and reorganized for easier reading. The core docs were augumented with some quotes from the Ruby website, and some missing content that is written specifically for the book. The source of the book (rendering scripts, config, and unique content) can be found at GitHub. Today I am releasing the new version, which was fully re-rendered for Ruby 2.6 and also includes some content and style fixes. Changelog.
Passenger 6.0.1: fixes runaway CPU issue
Passenger 6.0.1 fixes an issue that caused socket exhaustion (manifesting in runaway CPU), disturbing the startup of apps using our Generic Language Support feature: https://blog.phusion.nl/2019/01/07/passenger-6-0-1-fixes-runaway-cpu/
The Complete Guide to Create a Copy of an Object in Ruby: Part II
In this article, we’re going to explore the following topics:
[Screencast] Using Action Text in a Rails 5.2 Application
With Rails 6.0 is around the corner, Action Text has been merged into the Rails repository. However, it can still be used on a Rails 5.2 application while we wait for its official release. https://www.driftingruby.com/episodes/using-action-text-in-a-rails-5-2-application
Numbering Model Copies Using Enumerators
Hey! I’d like to share a simple technique for numbering model copies in Rails (e.g. “My Post - copy 1”) using Enumerator. https://www.gregnavis.com/articles/numering-copies-using-enumerators.html
Parallelising ETL workflows with the Jongleur gem
Jongleur is a process scheduler and manager. It allows its users to create a number of executable tasks as Ruby classes, define precedence between those tasks and run each task as a separate process. It’s particularly useful for implementing workflows modelled as a DAGs (Directed Acyclic Graph), but can be also used to run multiple tasks in parallel or even sequential workflows where each task needs to run as a separate OS process. [more inside]
The simplicity and power of Ruby Struct
Do you think you know Ruby Struct well? READ MORE