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.
Programming Bits, Bytes 'n' Blocks (in Ruby) Step-by-Step Book / Guide
Hello, I’ve started a new (free online) book(let) titled “Programming Bits, Bytes ‘n’ Blocks (in Ruby) Step-by-Step Book / Guide”. Let’s start with the three types of strings, that is, bytes, (string) buffers, and (frozen) strings, … Ruby Trivia Question: What’s the difference between 1) String.new, 2) String.new(""), and 3) "" ?. Happy bits & bytes slicing & dicing with ruby.
Introduction to Rails patterns - free book
I created a free book for you, it’s called “Introduction to Rails patterns” and it covers over 50 pages of useful refactoring tips. You can get it here
[Screencast] Interview with Frank Rietta about Security
In this interview, Frank Rietta, a security expert in web applications, talks about various recommendations for securing a Ruby on Rails application. Many areas are explored from code, staff, servers and infrastructure. https://www.driftingruby.com/episodes/interview-with-frank-rietta
How to learn Ruby on Rails effectively
I wrote an article about my tips for people wanting to squeeze as much as possible from the time to learn web development. [more inside]
Screencast - Sublime Text Mouse-Free Development Advanced Productivity Tips
Sublime Text is my editor of choice for developing Ruby on Rails and JavaScript web apps. In this screencast, I present a couple of more advanced productivity tips and configs that let you minimize the usage of mouse during development. [more inside]
Validate and Fix Ruby on Rails ActiveRecord PostgreSQL Data Integrity
Most Ruby developers work with Rails and Active Record for PostgreSQL database interactions. It provides a ton of magic and is simple to start with. Data integrity problems start creeping up once the code base and database structure gets older. In this blog post, I will describe a couple of techniques for ensuring data integrity and validation in Ruby on Rails web apps. [more inside]
Assigning methods to objects in Ruby
A pair posts talking about (the fairly often blogged about) Singleton Classes, without actually starting with Singleton Classes. [more inside]
Secure Configs with AWS SSM Parameter Store and Rails on Lambda
A cloud-native approach to Rails secrets management using AWS Lambda. https://technology.customink.com/blog/2019/04/16/secure-configs-with-aws-ssm-parameter-store-and-rails-on-lambda/
Image Processing with Libvips, AWS Lambda, & Rails
Just released an simple way to use popular gems like ruby-vips or image_processing with AWS Lambda layers and Rails. https://github.com/customink/ruby-vips-lambda and https://github.com/customink/lamby
Processing text files in Ruby simultaneously
This post analyzes different approaches for processing multiple files simultaneously with Ruby. https://www.jorgemanrubia.com/2019/04/14/processing-text-files-in-ruby-simultaneously/
Parsing a DSL in Ruby in less than 30 LoC
In this article we’re going to see how to parse and serialize a DSL in less than 30 lines of codes. [more inside]
Dockerize the multi-services application for local development
The handy local development containerization guide for getting the services written in Ruby, Node.js, and Golang work together locally with docker networks.
Ruby gem information, stats and usage for your terminal
whatthegem is a small utility to answer some questions about Ruby gems you work with or planning to work with. It tries to answer—right in your terminal—questions like the following: Colleague added gemname to our Gemfile, what is it? How outdated is my favorite gemname I am using locally, what’s changed since then? What’s that benchmarking gemname’s synopsis was, again? There is gemname advised on the internetz for my problem, is it still maintained? Is it widely used?
Git Cop 3.4.0 - Netlify Support
In case you are using Netlify as your build and deploy service for static web sites, wanted to let you know Git Cop now supports Netlify too. Everything happens automatically so you can ensure your Git commits are of high quality. See the README for details. Enjoy!
Programming Bitcon Script Transaction (Crypto) Contracts Step-by-Step (in Ruby)
Hello, I’ve started a new (free online) book(let) titled “Programming Bitcon Script Transaction (Crypto) Contracts Step-by-Step (in Ruby)”. Let’s start with building your own bitcon stack machine from zero / scratch and let’s run your own bitcon ops (operations)… Unlock the ?+2=4 puzzle on your own computer and win “unspent transaction outputs” on your own testnet. Happy bitcon scripting with ruby.
Records Gem / Library v1.0 - Frozen / Immutable Structs with Copy on Updates
Hello, I’ve put together a new gem / library, that is, records v1.0 that lets you use and build frozen / immutable structs with copy on update and includes some language syntax pragmas {...} and ={...} shortcuts too. Happy (functional) coding with ruby.
JSON dynamic attributes with Rails
We had a tricky problem. We knew that the columns for one particular model would need to change over time. That was easily solved with a JSON field, but we also wanted to support validations on this field – validations that are assigned to the model at the time of creation. Read the article by Heitor Silva