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.
The State of Test Coverage in Rails
What is the current state of test coverage in Rails? Here are the findings from surveying over 2,000 Ruby on Rails developers. [more inside]
Enums with Rails & ActiveRecord: an improved way
Ensuring data integrity is vital for a healthy database. ActiveRecord Enums can be complemented with database Enums as well. [more inside]
A simple JSONAPI library
simple_jsonapi is an easy-to-use and easy-to-understand gem for producing JSONAPI documents from ActiveRecord models or POROs. Its companion simple_jsonapi_rails integrates simple_jsonapi into your Rails application. For more details, see https://github.com/patientslikeme/simple_jsonapi
DRY your translations in Rails application
A new version of gem “dry_i18n” was released (1.0.1). Let’s DRY (Don’t Repeat Yourself) your translations in a Rails application! For more details, check the repository in Github: https://github.com/NachoPal/dry_i18n
Ruby-Devscoop: Issue #10
RailsConf was amazing: more than a thousand attendees showing that Rails is more alive and welcoming than ever. [more inside]
Mf - Modifier Functions
You can do this in Ruby: [1,2,3].map(&Mf + 5) # => [6, 7, 8] with this: https://github.com/baweaver/mf [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
(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. https://medium.com/@kdiogenes/one-million-requests-with-ruby-and-rails-45c11a1dd874
How to build rock-solid Ruby on Rails apps with BDD
Learn best practices for building sustainable web apps with behavior-driven development: https://medium.freecodecamp.org/how-to-build-rock-solid-ruby-on-rails-apps-with-bdd-735de9319cc6
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: https://blog.daftcode.pl/make-your-ci-pipeline-fast-and-awesome-with-gitlab-container-registry-41ef244d1ce6
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]