Ruby / Rails Inside
@rubyinside
736
subscribers
15
photos
2.51K
links
Daily Ruby / Ruby on Rails articles. Curated channel.
Faker::Hacker.say_something_smart
Suggest link/news
https://t.me/NoMethodError
Download Telegram
Join
Ruby / Rails Inside
736 subscribers
Ruby / Rails Inside
https://jemma.dev/blog/irb-measure
Jemma Issroff
IRB’s Built-in Measure
When reading the official Ruby 3.0 release post, one bullet caught my eye especially. With Ruby 3.0, IRB introduced a measure command. As someone who often times little snippets when debugging, comparing code, or writing new code, I was intrigued! IRB’s new…
Ruby / Rails Inside
https://multithreaded.stitchfix.com/blog/2021/01/06/a-better-react-rails-architecture/
Stitchfix
A Better React/Rails Architecture | Stitch Fix Technology – Multithreaded
Here on the Styling team at Stitch Fix, we are lessening the amount of state a developer needs to have in their head at any given time by moving towards an a...
Ruby / Rails Inside
https://mensfeld.pl/2021/01/how-requiring-a-gem-can-mess-up-your-already-running-application/
Closer to Code
How requiring a gem can mess up your already running application - Closer to Code
Introduction Ruby’s dynamic nature is both its advantage and disadvantage. Being able to reopen system classes during runtime, while useful, can also lead to unexpected behaviors. This article presents one such case: how just requiring a gem can mess things…
Ruby / Rails Inside
https://www.johnnunemaker.com/rails-postgres-partial-indexing/
John Nunemaker
Rails: Postgres Partial Indexing
Postgres has a nice feature where you can index only the values you want to query on. Today I learned that Rails has a nice shortcut for taking advantage of said feature.
Ruby / Rails Inside
https://weblog.rubyonrails.org/2021/1/24/this-week-in-rails-defaults-to-main-branch-name-new-webpacker-guide-and-improved-strict-loading/
Ruby / Rails Inside
https://emmanuelhayford.com/3-practical-uses-of-ruby-method-missing/
Emmanuelhayford
3 Practical Uses of Ruby's `method_missing` Worth Knowing.
Learn the practical uses of Ruby's method_missing. You can use the method_missing method to handle errors, delegate methods and build DSLs.
Ruby / Rails Inside
https://blog.saeloun.com/2021/01/25/rails-6-allow-where-clause-reference-association-by-alias-name.html
Saeloun Blog
Rails 6.1.1 allows `where` to reference associations via joined table alias names.
Rails 6.1 allows where clause queries to reference associations used in `join` or `includes` clause via alias names.
Ruby / Rails Inside
https://evilmartians.com/chronicles/logidze-1-0-active-record-postgresql-rails-and-time-travel
evilmartians.com
Logidze 1.0: Active Record, Postgres, Rails, and time travel—Martian Chronicles, Evil Martians’ team blog
Learn about Logidze 1.0, a performant Ruby library that tracks Active Record changes using PostgreSQL triggers and JSONB stores.
Ruby / Rails Inside
https://planetruby.github.io/gems/glimmer/04-glimmer-dsl-opal
Best of Ruby Gems Series
Day 4 - glimmer-dsl-opal Gem - Script Web Widgets with Two-Way Data-Binding - Ruby <3 JavaScript - Thanks to Opal, the Ruby to…
Ruby Open Data Week 2021, March 6th to 12th - 7 Days of Ruby (Open Data) Gems ++ Best of Ruby Gems Series
Ruby / Rails Inside
https://evilmartians.com/chronicles/fast-delivery-performance-and-real-time-for-retail-zipline
Ruby / Rails Inside
https://thibautbarrere.com/2021/01/20/circle-ci-with-multiple-databases-and-rubies
Thibautbarrere
CircleCI testing for a Ruby library (against multiple databases and rubies)
Leverage CircleCI parameterized builds to run a testing matrix
Ruby / Rails Inside
https://www.moncefbelyamani.com/the-first-gem-you-should-add-to-your-ruby-project/
Moncefbelyamani
The First Gem You Should Add to Your Ruby Project
Moncef Belyamani writes guides to help you become a more confident coder.
Ruby / Rails Inside
https://nebulab.it/blog/using-activesupport-to-deprecate-gems-code/
Nebulab
Using ActiveSupport to deprecate gems code
Here are some best practices to deprecate Ruby application components with ActiveSupport.
Ruby / Rails Inside
https://gorails.com/episodes/realtime-nested-comments-part-1
GoRails
Realtime Nested Comments: Part 1 (Example) | GoRails
Hotwire lets us broadcast changes so we can use the same approach for nested comments, but in realtime!
Ruby / Rails Inside
https://evilmartians.com/chronicles/reusable-development-containers-with-docker-compose-and-dip
evilmartians.com
Reusable development containers with Docker Compose and Dip—Martian Chronicles, Evil Martians’ team blog
Run and test your code in multiple environments with minimal effort while keeping Docker Compose files under control with Dip. Examples for Ruby, Node.js, and Erlang.
Ruby / Rails Inside
https://bishwahang.com/2021/02/05/parallelism-in-ruby-3-0-with-ractors.html
Bishwa Hang Rai’s Blog
Parallelism in Ruby 3.0 with Ractors
With the release of Ruby 3.0, one of the most awaited feature was the release of Ractor. It is still in its experimental phase, but it shows quite big promise, especially with parallel execution of multiple Ractors (and code enclosed in it).
Ruby / Rails Inside
https://karolgalanciak.com/blog/2021/02/05/kafka-for-rubyists-mini-course-advanced-karafka
Karolgalanciak
Kafka for Rubyists Mini Course: Advanced Karafka
This is the fourth and also the last part of the Kafka For Rubyists mini course. If you are interested in other parts of the course, please check them out here.
Ruby / Rails Inside
https://andycroll.com/ruby/use-enhanced-memoization-for-false-nil-with-defined/
Andy Croll
Use Enhanced Memoization for false/nil with defined?
Memoizing false & nil results requires more formality
Ruby / Rails Inside
https://thedevpost.com/blog/mysql2-gem-prepared-statements/
The Dev Post
Interact With Mysql Server Using Mysql2 Gem [Part 3] - Prepared Statements
mysql2 gem is a simple and fast Mysql library for Ruby. And, this tutorial shows how to use the prepared statements using mysql2 gem.
Ruby / Rails Inside
https://blog.saeloun.com/2021/02/05/add-validate-numericality-in-range
Saeloun Blog
Rails 6.1 adds support for validating numeric values fall in a range using `in:` option
The `numericality` validation helper now accepts `in:` as an option for which the value must be a range.
Ruby / Rails Inside
https://wjwh.eu/posts/2021-02-07-ruby-preemptive-fiber.html