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.
Why Phusion is organizing an open source mini-conference in Amsterdam
A little back story to the ROSS conf format, the (3rd!1!!) installment that will take place in Amsterdam in little over a week from now: https://blog.phusion.nl/2018/05/02/why-we-organizie-an-open-source-conference-in-amsterdam/
Client-side caching in Rails: conditional GET requests
This week in AppSignal Academy’s caching series, we’re discussing conditional GET requests and client side caching in Rails. We’d love to know what you think!
Ruby 3x3 - Ruby 3 Will Be 3 Times Faster - What’s News?
Hello, I’ve updated the Ruby 3x3 articles (and slides) collection @ Planet Ruby. What’s News? Thanks to the RubyElixirConf Tawain new slide decks include: The State of / All About Guilds - A New Concurrency Model for Ruby 3 by Koichi Sasada, Cookpad ++ Method JIT (Just-In-Time) Compiler for MRI (Matz’s Ruby Interpreter) - Optimizations in Ruby 2.6 Preview 1, 2 by Takashi Kokubun, Treasure Data. Anything missing? Additions welcome.
How To Use The Decorator Pattern in Ruby
Design patterns help you solve specific Object-Oriented Design problems. In this article you’ll learn about the Decorator Design Pattern & how to implement it in Ruby. http://www.rubyguides.com/2018/04/decorator-pattern-in-ruby/
HOWTO execute Rust code with Ruby
Learn how to compile and execute Rust code with Ruby—useful for optimizing performance-critial sections of your Ruby app, or re-using code already written in Rust without having to port it to Ruby: https://readysteadycode.com/howto-execute-rust-code-with-ruby
How to instance_eval?
Ruby has multiple evals to execute code in another class context: instance_eval and class_eval - so what’s the difference? when to use what?
Reducing Sidekiq Memory Usage with Jemalloc
I wrote a new article on Reducing Sidekiq Memory Usage with Jemalloc. Hope you enjoy!
Increase Your Productivity with Rails Console Aliases [Quick Tip]
Recently I’ve started using a productivity technique which saves me a lot of unnecessary typing when working with Rails apps. In might seem trivial but I still wanted to share it because it makes my everyday work easier. [more inside]
GDPR engine for Rails
PolicyManager (Aka GDPR RAILS) was created with flexibility in mind to comply with the requirements of the GDPR (General Data Protection Regulation). It’s currently being developed at preyproject.com , It’s production ready and will be battle-tested on preyproject.com from May 25th. https://github.com/prey/gdpr_rails
Contribute sending translations in your language for the gem 'timeliness-i18n'
‘timeliness-i18n’ gem provides translations for ‘timeliness’ and ‘validates_timeliness’ gem. But nowadays there is just some languages translated. Help us to increase the number of languages available with translations. Contribute with the repository: https://github.com/pedrofurtado/timeliness-i18n [more inside]
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