Ruby / Rails Inside
@rubyinside
735
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
735 subscribers
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
Ruby / Rails Inside
https://kirshatrov.com/2021/02/09/vitess-notes/
Kir Shatrov
Vitess: scrappy notes
I’ve been playing with Vitess at work, and I’ve been finding it extremely hard to Google for common issues and error messages from Vitess. While the official docs are improving, there’s a general lack of stack overflow -like tips for fixing silly errors.…
Ruby / Rails Inside
https://longliveruby.com/articles/small-rails-design-patterns
Longliveruby
Small Rails design patterns that make a big difference
Refactor your Rails application without introducing big changes
Ruby / Rails Inside
https://medium.com/rubycademy/3-ways-to-use-regexp-capture-groups-with-back-references-in-ruby-b4969cc9b3ec
Medium
3 ways to use Regexp capture groups with back-references in Ruby
Taking advantage of capture groups to manipulate Strings in Ruby
Ruby / Rails Inside
https://gorails.com/episodes/realtime-nested-comments-part-2
GoRails
Realtime Nested Comments: Part 2 (Example) | GoRails
Hotwire lets us broadcast changes so we can use the same approach for nested comments, but in realtime!
Ruby / Rails Inside
https://weblog.rubyonrails.org/2021/2/9/Rails-6-1-2-has-been-released/
Riding Rails
Rails 6.1.2 has been released!
Hi everyone,
Ruby / Rails Inside
https://blog.arkency.com/testing-responses-from-http-apis-with-cursor-based-pagination-and-webmock/
Arkency Blog
Testing cursor-based pagination with Webmock
Hi, we're Arkency and it's our blog with meaty content.
Ruby / Rails Inside
https://www.youtube.com/watch?v=sEOLtIGkDeM
YouTube
How To Encrypt Fields in Ruby on Rails with Lockbox
In this tutorial I'm going to show you how to use the Lockbox gem ( https://github.com/ankane/lockbox ) to encrypt field within your Database.
This is a good solution for when you need to store some sensitive data (such an oauth credentials, or an API key)…
Ruby / Rails Inside
https://blog.appsignal.com/2021/02/10/ruby-on-rails-view-patterns-and-anti-patterns.html
AppSignal Blog
Ruby on Rails View Patterns and Anti-patterns | AppSignal Blog
Rails views are sometimes amazing and fast, and at other times, they can have all sorts of issues. If you want to increase confidence over how you handle your views, then this blog post is for you.
Ruby / Rails Inside
https://blog.engineyard.com/ruby-unbundled-add-microservices-to-rails-app
EngineYard
The Ruby Unbundled Series: Add Microservices to your Rails App in Minutes
Leverage Rails controller methods as their own Rack applications to rapidly create and deploy microservices.
Ruby / Rails Inside
https://weblog.rubyonrails.org/2021/2/10/Rails-5-2-4-5-6-0-3-5-and-6-1-2-1-have-been-released/
Riding Rails
Rails 5.2.4.5, 6.0.3.5 and 6.1.2.1 have been released
Hey everyone! Rails version 5.2.4.5, 6.0.3.5 and 6.1.2.1 have been released! Those version are security releases and addresses two issues:
Ruby / Rails Inside
http://live.julik.nl/2021/02/why-reductions-are-important
julik live
What is a reduction and why Fibers are the answer for Ruby concurrency
In the Ruby 3 features, a lot of attention went to Ractors - a new parallelism primitive which provides what can best be described as “Web Workers” - separate threads of execution with memory isolation from the spawning thread. However, there was also a release…
Ruby / Rails Inside
https://boringrails.com/tips/rails-highlight-search-results
Boring Rails: Skip the bullshit and ship fast
Use the Rails helper highlight when showing search results
Use the Rails highlight helper to wrap search result matches in <mark> tags.
Ruby / Rails Inside
https://boringrails.com/tips/rails-excerpt-helper
Boring Rails: Skip the bullshit and ship fast
Show relevant chunks of text with Rails excerpt helper
The Rails helper excerpt can extract a chunk of text that matches a certain phrase, no matter where in the string it is.
Ruby / Rails Inside
https://eregon.me/blog/2021/02/13/correct-delegation-in-ruby-2-27-3.html
On the Edge of Ruby
Correct Delegation with Ruby 2.6, 2.7 and 3.0
While looking at how a few gems handle delegation on Ruby 2.7, I noticed that many of them are unfortunately incorrect. The official blog post about keyword arguments changes in Ruby 2.7 and Ruby 3.0 is rather long and might be unclear. So I will keep this…
Ruby / Rails Inside
https://boringrails.com/tips/rails-attributes-api
Boring Rails: Skip the bullshit and ship fast
Automatically cast params with the Rails Attributes API
A common practice in Rails apps is to extract logic into plain-old Ruby objects (POROs). But often you are passing data to these objects directly from controller params and the data comes in as strings.