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.
Mf - Modifier Functions
You can do this in Ruby: [1,2,3].map(&Mf + 5) # => [6, 7, 8] with this: [more inside]
Ruby Conferences & Camps in May 2018 - What's Upcoming?
Hello, at the calendar page @ Planet Ruby we collect all ruby conferences and camps from around the world. What’s upcoming in May 2018? ++ Rubyhack - May/3+4 (2d) Thu+Fri @ Salt Lake City, Utah, United States ++ Ruby Unconf Hamburg - May/5+6 (2d) Sat+Sun @ Hamburg, Germany ++ Ruby Open Source Software (ROSS) Conf Amsterdam (FREE) - May/11+12 (2d) Fri+Sat @ Amsterdam, the Netherlands ++ Balkan Ruby - May/25+26 (2d) Fri+Sat @ Sofia, Bulgaria ++ RubyKaigi - May/31-Jun/2 (3d) Thu-Sat @ Sendai, Miyagi, Japan ++ See all conferences & camps in 2018. Anything missing? Updates welcome. Cheers. Prost.
Pull the RSS feed for any website you want without the RSS address
The RSSable gem provides way to pull the RSS feed for any website without worrying about the RSS feed existence or structure. Currently, it supports all most popular blog engines. READ MORE
Qo::Evil - Dynamic Compilation with Eval
TL;DR- Qo::Evil is ~10x faster than Qo because of this. [more inside]
(Re)building the Billion Dollar @Ethereum World Computer from Scratch (Zero) in Ruby
Hello, a little weekend experiment - let’s (re)build the billion dollar ethereum world computer from scratch (zero) using a 25-year-old contract language - ruby :-) - and ye good 40-year-old SQL databases. See a first live converted gold mine / token contract in universum e.g. token.rb. Let’s put ruby on ~~rails~~ the blockchain :-).
Ruby on WebAssembly
A guide to getting started with Ruby and WebAssembly, including some historical context and a look toward the future.
One Million Requests with Ruby and Rails
A not very scientific comparison of a migration from a Serverless architecture in AWS to Ruby on Rails in Heroku.
How to build rock-solid Ruby on Rails apps with BDD
Learn best practices for building sustainable web apps with behavior-driven development:
Microservices for Startups: An Interview with Isaac Mosquera of Armory
Isaac Mosquera, CTO at Armory, discusses how they use microservices to help software teams ship better software, faster while working on the open source deployment tool, Spinnaker.
SOLID Principles #5 - Dependency Inversion Principle
Five-part series of blog posts about SOLID Principles. This one is about the fifth of them - Dependency Inversion Principle: [more inside]
ActiveRecord performance: the N+1 queries antipattern
The N+1 queries problem is a common, but easy to spot, performance antipattern. This week in AppSignal Academy, we’ll learn what causes it (and why it’s called N+1), how to spot it and how to prevent it. [more inside]
Make your CI pipeline fast and awesome with Gitlab Container Registry
Do you want to use CI in your Rails project but struggle with setting it up? Or maybe you already use it but it’s too slow? This quick start guide will show you how to make it fast and awesome:
Transform any Active Record query into the analytics hash
Chartable gem is a lightweight and database-level Ruby library to transform any Active Record query into the analytics hash ready for use with any chart library READ MORE
Taming Rails memory bloat
One simple ENV setting to halve your Sidekiq or Puma memory usage: MALLOC_ARENA_MAX=2 [more inside]
Microservices for Startups: An Interview with Khash Sajadi of Cloud66
“The value of containers comes from microservices, from breaking the application up into smaller pieces and imposing the disciplines that you need within your development team to roll this thing forward.” - Khash Sajadi of Cloud66 shares his experiences and more in this interview
RoleCore: A Rails engine provides essential industry of Role-based access control
RoleCore provides a way to abstraction roles and permissions that making building RBAC system more easier. [more inside]
Testing New Frameworks & Languages: How to Separate the Grain from the Chaff
As developers, we’re often over-enthusiastic about the new shit-hot trends in the industry: the newest javascript frameworks, bleeding-edge CI tools, or even new frameworks to use in your side-projects. It’s easy to end up with a clusterfuck of technologies & frameworks scattered in all the projects of a company, so you should develop a skill to continuously assess whether to adopt them in your company or not. [more inside]
The Results from the 2018 Rails Survey Are In!
The 2018 Rails Survey results are now live. You can see how many of your peers are using which versions of Rails, which gems are most beloved and most frustrating, and more. [more inside]
Simple way to use Paperclip with S3 and CloudFront!
A lot of people looks for instruction how to use Paperclip with S3 and CloudFront. In this post you can read about how to do it in very simple way!
Requiring a file or library in Ruby
In this article we’re going to explore the following topics:
How To Make Your Rails App International
– Creating an international application basically means displaying the same data in many languages. The beautiful world of ruby gems offers many options for achieving that goal. But which one will be the best choice for your project?
On Dealing with Deep Hashes in Ruby — XF — Part One: Scopes
Ever had to deal with a lot of JSON? Tired of flat_map.map.map.compact.flat_map.argh? Learn how to tame your data, starting with how paths, getters, and setters work using Xf Scopes. [more inside]