Ruby / Rails Inside
@rubyinside
734
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
734 subscribers
Ruby / Rails Inside
https://thoughtbot.com/blog/custom-ranges-in-ruby
thoughtbot
Custom Ranges in Ruby
How can we create ranges out of custom objects?
Ruby / Rails Inside
https://shopify.engineering/code-ranges-ruby-strings
Shopify
Code Ranges: A Deeper Look at Ruby Strings
An informal look at what makes encoding-aware strings in Ruby functional and performant, providing insight into all the wonderful things the Ruby VM does.
Ruby / Rails Inside
https://www.andywaite.com/2022/04/15/reusable-github-actions-rails-workflow.html
Ruby / Rails Inside
https://blog.kiprosh.com/advanced-features-provided-by-new-debug-gem/
Kiprosh Blogs
Advanced features provided by the new debug gem in Ruby
Decoding features like record & replay debugging, postmortem debugging, and VSCode integrations are provided by the new debug gem.
Ruby / Rails Inside
https://blog.saeloun.com/2022/04/19/ruby-variable-width-allocation-part-2.html
Saeloun Blog
Ruby 3.1 introduces Variable Width Allocation for Strings
In this blog let us understand how Variable Width Allocation works in Ruby
Ruby / Rails Inside
https://www.fullstackruby.dev/object-orientation/2022/04/17/transform-your-data-with-oop-formatter-pattern/
Fullstack Ruby
Transform Your Data Object-Oriented Style with Formatters
I truly adore this design pattern. Once you know it, you start to see its usefulness across a wide variety of scenarios, codebases, and even programming languages.
Ruby / Rails Inside
https://blog.saeloun.com/2022/04/20/rails-7-lazy-loads-schema-cache.html
Saeloun Blog
Rails 7 now lazy loads schema cache
Use a config option to now switch between eager and lazy schema cache loading.
Ruby / Rails Inside
https://www.morozov.is/2018/05/27/do-notation-ruby.html
Ruby / Rails Inside
https://kddnewton.com/2022/04/25/ruby-syntax-tree-github-io.html
Ruby / Rails Inside
https://bhserna.com/preload-counts-active-record.html
Bhserna
How to preload counts in a list with ActiveRecord
Imagine that you need to put the number of likes for each post in a list, but avoiding n+1 queries.
posts.each do |post|
post.likes.count # n+1 queries
end
One way to avoid n+1 queries here, is to preload the association and the count the records...
Ruby / Rails Inside
https://hanamimastery.com/episodes/20-dry-validation
Hanami Mastery - a knowledge base to hanami framework
dry-validation - The one gem to validate them all!
Validating data input is an extremely important problem to tackle in all applications. In Ruby ecosystem there is no better tool for that than dry-validation. Here is why!
Ruby / Rails Inside
https://rubyonrails.org/2022/4/26/Rails-7-0-2-4-6-1-5-1-6-0-4-8-and-5-2-7-1-have-been-released
Ruby on Rails
Rails 7.0.2.4, 6.1.5.1, 6.0.4.8, and 5.2.7.1 have been released!
Hi everyone!!!! This is an announcement to let you know that Rails 7.0.2.4, 6.1.5.1, 6.0.4.8, and 5.2.7.1 have been released!
Ruby / Rails Inside
https://www.morozov.is/2022/04/26/service-objects-part-2.html
Igor writing about things
Unfinished: Designing helpful service objects. Part 2. Practice
This is a partially-written post, which will never be complete I've been writing this article on-and-off since June 2020. I didn't like how it turned out and re-wrote it numerous times. It tries to cover way too many things at once, and that's the problem…
Ruby / Rails Inside
https://davidmles.medium.com/the-most-useful-visual-studio-code-extensions-i-use-for-ruby-development-637501115248
Medium
The most useful Visual Studio Code extensions I use for Ruby development
I use Visual Studio Code daily for web development with Ruby on Rails. By default, it is a great editor with handy tools. But its great…
Ruby / Rails Inside
https://timriley.info/writing/2022/04/28/salubrious-ruby-dont-mutate-what-you-dont-own/
Ruby / Rails Inside
https://janko.io/how-i-enabled-sequel-to-reuse-active-record-connection/
Janko Marohnić
How I Enabled Sequel to Reuse Active Record’s Database Connection
When I started developing the Rails integration for Rodauth, one of the first problems I needed to solve was how to make Rodauth work seamlessly with Active Record, given that it uses Sequel for database interaction. I believed these two could coexist together…
Ruby / Rails Inside
https://www.youtube.com/watch?v=qpZgHeteH04
YouTube
Inline Editing each Page Title - Episode 2 - Let's recreate Notion in Ruby on Rails
In a normal Rails app we have forms, we have save buttons, and finish work early. But I want my page titles to be inline editable. I will figure out how to capture key events, submit the changes to the server, and even update the page URL with new slugs.…
Ruby / Rails Inside
https://www.honeybadger.io/blog/avoid-race-condition-in-rails/
Honeybadger Developer Blog
How to Avoid Race Conditions in Rails
Race conditions are hard to debug—especially when you don't know it's a race condition! This article looks at some common race conditions and the best solutions for handling each one.
Ruby / Rails Inside
https://featurist.co.uk/blog/hosting-rails-apps-for-free-on-oracle-cloud-with-dokku/
archive.featurist.co.uk
Hosting Rails apps for free on Oracle Cloud with Dokku
Dokku has always been a low effort way to have your own Heroku. And now on a free infrastructure.
Ruby / Rails Inside
https://www.honeybadger.io/blog/active-support-cache-increment/
Honeybadger Developer Blog
Rails' Hidden Gems: ActiveSupport Cache Increment and Decrement
You've probably used `Rails.cache` to read, write, and fetch cached data in Rails—but did you know you can also work with counters? In this series, Jonathan Miles introduces us to some of the lesser-known tools hidden in your Rails codebase.