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.
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:
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.
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
Active Admin Tips and Performance Optimizations for Rails Apps
Active Admin gem is a popular tool for building admin interfaces in Ruby on Rails apps. In this blog post, I will describe a couple of less obvious tips and performance optimization techniques. [more inside]
Build Your Own (Offline) CryptoKitties Breeding (Offspring) Calculator
Hello, I’ve added a new chapter to the (free online) book “Programming Crypto Collectibles with Ruby” titled “Build Your Own CryptoKitties Breeding (Offspring) Calculator - Odds & Probabilities”. Happy data wrangling and genome genetics bits & bytes slicing with ruby. Cheers. Prost.
The Complete Guide to Create a Copy of an Object in Ruby: Part I
In this article we’re going to explore the following topics:
AWS Lambda Serverless Ruby Cron Jobs Tutorial
A great use case for AWS Lambda is running Cron Jobs. Instead of setting up a special one-off Cron server to run a simple task, we can just run the task on serverless nowadays. In this blog post Serverless Ruby Cron Jobs Tutorial: Route53 Backup we’ll go over how to build a simple Cron Job with Jets, the Ruby Serverless Framework. As a useful practical example, we’ll create a job that backs up route53 records. This is quite handy when if you ever need it!
How we interview developers
Hi all! If you’re running an agency or you need to recruit developers for your project, you need to have a process in place. At MarsBased we’ve been hiring Ruby developers for five years now, and this is how we do it: [more inside]
Ruby Quiz - Challenge #10 - Breed Kitties - Mix Genes Using the Sooper-Sekret Formula
It’s Friday. Ruby Quiz time! Join us. Let’s keep going with a new Ruby Quiz every fortnight. Ruby Quiz - Challenge #10 - Breeding Kitties - Mix Genes Using the Sooper-Sekret Formula in the GeneSciene CryptoKitties Blockchain Contract Send your code snippets to ruby-talk. Happy data wrangling and genome genetics bits & bytes slicing with ruby.
Comprehensive Ruby 2.6 changelog
The Changelog of new language and standard library features that tries to be full, comprehensive and well-structured, complete with examples of usage, reasons behind changes, and links to discussions.
Handling enums in PG array columns
Little extension similar to Rails enum, but for arrays
Updated base32-alphabets library - Encode / decode numbers in 5-bit groups (2^5=32)
Hello, I’ve updated the base32-alphabets library that lets you encode / decode numbers in 5-bit groups (2^5=32) with Kai, Crockford or Electrologica notation / alphabet (e.g. break down the 240-bit CryptoKitties genome into 12 groups of 4 (x 5-bit) genes, for example). What’s news in 1.1? You can use byte arrays for encode / decode too or use Base32.bytes to get all 5-bit chunks as an (integer) byte array. Happy unique bits & bytes slicing off the (block)chain with ruby.
Gem for grouping multiple DB operations under same transaction like Ecto
Ector::Multi makes it possible to pack operations that should be performed in a single database transaction and gives a way to introspect the queued operations without actually performing them. Each operation is given a name that is unique and will identify its result in case of success or failure. [more inside]
Using Ruby in 2019
I spent some time putting together my thoughts and reasons for using continuing to use Ruby in 2019. I’d love to hear your reasons, too! Using Ruby in 2019
Notes from The Complete Guide to Rails Performance's Workshop
Here are some notes from my experience participating in Nate Berkopec’s workshop. I mention some of the tools and libraries that we used throughout the workshop and how you could use them to do performance optimization: