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.
Serverless Rails on AWS Lambda in 5 Minutes
Post covers how to deploy a Rails application to AWS Lambda Serverless in a few minutes. With Jets Afterburner, you don’t have to make any changes to your Rails application to get it on AWS Lambda. 🎉
4 interesting examples using operator precedence in Ruby
In this article, we’re going to explore the following topics:
Gem for eliminating Ruby initializers boilerplate code, and providing unified service
Smart Init offers a unified API for stateless service objects, accepting values in initializer and exposing one public class method call which instantiates new objects and accepts arguments passed to initializer. [more inside]
Git Cop 3.0.0
A new version of the Git Cop has been released with enhanced support for XDG environment variables. This is most notable when adding a .config/git-cop/configuration.yml to your projects with custom settings. There is no longer a need to use tools like dotenv to set $XDG_CONFIG_HOME or $XDG_CONFIG_DIRS individually as Git Cop will detect the changes automatically. Enjoy!
Runcom 4.0.0.
The Runcom gem has been updated to 4.0.0 which includes Ruby 2.6.0 and improved XDG environment support. This is a boon for anyone needing XDG support for cache, config, and data environment variables (especially CLI programs). See project README for further details.
MixGenes - Inside Breeding - Matron + Sire = New (Offspring) Kitty
Hello, I’ve added a new chapter to the (free online) book “Programming Crypto Collectibles with Ruby” titled “Inside Breeding - Matron + Sire = New (Offspring) Kitty - All About Gene Swapping, Inheritance & Mewtations (incl. mixgenes Formula and Odds & Probabilities)”. Happy data wrangling and genome genetics bits & bytes slicing with ruby. Cheers. Prost.
HexaPDF 0.9.0 with document layout support released
The latest version of HexaPDF supports document layout which makes the creation of PDF files much easier. For details see the release announcement. [more inside]
101: Actual refactoring - real life story
This blog note is next in our cycle aimed at less-experienced developers. This time we will start with real-life code, that I’ve found in one of our projects. Through a series of steps, we will refactor it to excellent object structure, separated from other parts of the application. Read more…
Statistics - Build Yourself An Up-to-Date Cattributes Rarity & Popularity Cheatsheet
Hello, I’ve added a new chapter to the (free online) book “Programming Crypto Collectibles with Ruby” titled “Statistics, Statistics, Statistics - Build Yourself An Up-to-Date Cattributes Rarity & Popularity Cheatsheet from the (Unofficial) CryptoKitties Web Service @ api.cryptokitties.co/cattributes”. Happy data wrangling with ruby. Cheers. Prost.
How to use the Ruby 2.6 JIT
Ruby 2.6 was just released and includes a new experimental just-in-time (JIT) compiler. Here’s a quick screencast to learn How to use the Ruby 2.6 JIT.
Ruby in AWS Lambda with PostgreSQL / Nokogiri
Running Ruby-based Lambda functions with binary dependencies can be a bit tricky, so I wrote something to document how I got this working smoothly. [more inside]
Why RSpec users should care about Rails system tests
RSpec has had feature tests for a long time, so what’s the big deal with Rails system tests?
Programming Crypto Collectibiles Step-by-Step Guide. Let's start w/ CryptoKitties...
I’ve started a new (free online) book on github titled “Programming Crypto Collectibiles Step-by-Step Book / Guide”. Let’s start with CryptoKitties & Copycats. Inside Unique Bits & Bytes on the Blockchain…
Tests as Must Have for Complex Projects
Development in its pure form is not only writing code, but also a number of manipulations that are necessary for its correct and timely work. Testing in development takes the lion’s share of both time and resources, but proper testing will bring only time savings and the best result for the client. Read More.
Function composition >> Ruby
Last week Proc#« and Proc#» got merged into Ruby 2.6. This opens the door for function composition. Here’s my opinion as to why this is a great leap forward for Ruby and what needs to improve. Read more
Rails 5 API + JWT Setup : Easy familiar way with Devise
Supercharge your next application with a solid setup of Rails 5 API & Devise JWT authentication: [more inside]
Using to_enum with methods that take a block
This post describes how to turn methods that use blocks into enumerators using the to_enum method and why this would be useful.
2018 - A Year of Ruby Conferences & Camps ++ 2019 - What's Upcoming?
Hello, you can find all ruby conferences & camps from around the world of the year 2018 @ https://planetruby.github.io/calendar/2018 What was your favorite? Any highlights? ++ For the upcoming year 2019 you can find all ruby conferences & camps @ https://planetruby.github.io/calendar/2019 What’re looking forward too? Any recommendations?
2018: Review of a year o blogging about Ruby
2018 was my first year as a tech blogger. [more inside]
Setting up Ruby on Rails Development Environment on Mojave 10.14.2
Sometimes we have to configure a new development machine, whether it is for ourselves or a friend. We often find that there are some little pieces of our environment that we have forgotten about or have neglected to document. This is my documentation for a ready-to-work development environment for Ruby on Rails. [more inside]
Ruby Quiz - Challenge #9 - Tally Up the Standings Table for English Premier League
It’s Friday. Ruby Quiz time! Join us. Let’s keep going with a new Ruby Quiz every fortnight. Ruby Quiz - Challenge #9 - Tally Up / Calculate the Standings Table for the English Premier League 2018/19 Season - And the Winner is… Liverpool? Manchester City? Send your code snippets to ruby-talk. Happy data wrangling and keeping scores with ruby.