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://mensfeld.pl/2021/11/reading-the-uncompressed-gzip-file-size-in-ruby-without-decompression/
Closer to Code
Reading the uncompressed GZIP file size in Ruby without decompression - Closer to Code
There are cases where you have a compressed GZIP file for which you want to determine the uncompressed data size without having to extract it. For example, if you work with large text-based documents, you can either display their content directly in the browser…
Ruby / Rails Inside
https://hanamimastery.com/articles/sequel-over-activerecord
Hanami Mastery - a knowledge base to hanami framework
ROM and Sequel over ActiveRecord?
I've wondered why Hanami uses sequel under the hood. There are some problems with ActiveRecord, but I've wanted to know exactly, what it is about. Here is the summary of my foundings.
Ruby / Rails Inside
https://weblog.rubyonrails.org/2021/11/21/this-week-in-rails-automated-shard-swapping-middleware-standardised-error-reporting-interface-and-more-843a0431/
Ruby on Rails
Automated shard swapping middleware, standardised error reporting interface and more!
Hey, this is Greg, bringing you the latest news about Ruby on Rails.
Ruby / Rails Inside
https://www.ruby-lang.org/en/news/2021/11/24/buffer-overrun-in-cgi-escape_html-cve-2021-41816/
www.ruby-lang.org
CVE-2021-41816: Buffer Overrun in CGI.escape_html
Ruby / Rails Inside
https://learnetto.com/tutorials/how-to-use-react-with-rails-7
Learnetto
How to use React with Rails 7 | Learnetto
Tutorial How to use React with Rails 7 | Full Stack Rails Mastery
Ruby / Rails Inside
https://blog.arkency.com/difference-between-cache-and-read-model-an-example/
Arkency Blog
The Difference Between a Cache and a Read Model, an example
Hi, we're Arkency and it's our blog with meaty content.
Ruby / Rails Inside
https://www.ruby-lang.org/en/news/2021/11/24/ruby-3-0-3-released/
www.ruby-lang.org
Ruby 3.0.3 Released
Ruby / Rails Inside
https://blog.saeloun.com/2021/11/24/ruby-adds-matchdata-match-and-match-length
Saeloun Blog
Ruby 3.1 adds MatchData#match and MatchData#match_length
Ruby 3.1 MatchData#match returns the substring corresponding to the argument, while MatchData#match_length returns the length of the captured substring.
Ruby / Rails Inside
https://www.antonivanopoulos.com/til-queuing-sidekiq-workers-safely-with-the-help-of-isolator
Antonivanopoulos
TIL: Queuing Sidekiq workers safely with the help of Isolator
I recently managed a migration from DelayedJob to Sidekiq and learned about a couple of Ruby gems that helped identify several potential issues with how we currently queued background jobs.
Ruby / Rails Inside
https://hybrd.co/posts/audit-logging-in-rails
HYBRD
Audit Logging in Rails
Need to add audit logging to your Rails application? In this post, I review five popular Ruby gems you can use, walk through rolling your own solution, and share some recommendations about what solution to choose.
Ruby / Rails Inside
https://www.ruby3.dev/object-orientation/2021/03/23/better-oop-through-lazily-instantiated-memoized-dependencies/
Fullstack Ruby
Better OOP Through Lazily-Instantiated Memoized Dependencies
There are various schools of thought around how best to define dependencies in your object graph. Let’s learn about the one I prefer to use the majority of the time. It takes advantage of three techniques Ruby provides for us: variable-like method calls,…
Ruby / Rails Inside
https://gorails.com/episodes/refactoring-javascript-with-stimulus-values-api-defaults
Gorails
Refactoring Javascript with Stimulus Values API & Defaults | GoRails
Refactoring a Javascript countdown timer into a reusable Stimulus controller gives a look at the flexibility we can achieve by taking advantage of the Stimulus Values API and customizing the default values.
Ruby / Rails Inside
https://www.honeybadger.io/blog/rails-kubernetes-cluster-2/
Honeybadger Developer Blog
Running Rails on a Kubernetes Cluster: Part 2
Kubernetes is a popular way to deploy web services and applications using containers. In this, the second of a two-part series, Geshan finishes his step-by-step tutorial for getting up and running with Rails and k8s.
Ruby / Rails Inside
https://hanamimastery.com/episodes/11-effective-ruby-programming-with-dry-effects
Hanami Mastery - a knowledge base to hanami framework
Effective programming in ruby
2 real-world examples of using algebraic effects in Hanami ruby applications with dry-effects.
Ruby / Rails Inside
https://www.bigbinary.com/blog/fix-slow-page-loads-in-a-ruby-on-rails-application
BigBinary
Fix slow page loads in a Ruby on Rails application by identifying n+1 queries
Ruby / Rails Inside
https://www.fullstackruby.dev/fullstack-development/frontend-development/2021/11/30/rise-of-fullstack-ruby/
Fullstack Ruby
The Rise of Fullstack Ruby & the Next Frontier of the Web
Today, right now, right this very minute, is the absolute best time to be a fullstack Ruby/web developer! And tomorrow will be even better.
Ruby / Rails Inside
https://avdi.codes/throw-catch-raise-rescue-im-so-confused/
avdi.codes
Throw, Catch, Raise, Rescue - I'm So Confused!
One of the aspects of Ruby that often confuses newbies coming from other languages is the fact that it has both throw and catch and rai
Ruby / Rails Inside
https://blog.saeloun.com/2021/12/01/rails-7-default-values-for-i18n-translate.html
Saeloun Blog
Rails 7: Pass default values to I18n's `translate` method
Provide fallback values to the translate method apart from those parts of the translation string.
Ruby / Rails Inside
https://blog.appsignal.com/2021/12/01/ruby-on-rails-application-monitoring-with-appsignal.html
AppSignal Blog
Ruby on Rails Application Monitoring with AppSignal | AppSignal Blog
In the first of this two-part series, we'll set up monitoring for a Ruby on Rails application with AppSignal.
Ruby / Rails Inside
https://www.monterail.com/blog/introduction-to-rails-event-store
Monterail
Introduction to Rails Event Store
Rails Event store is a storage of events. Optimize operations to be as fast as possible. We can only read the history of events and add new events.
Ruby / Rails Inside
https://www.ginkonote.com/users/flo/articles/how-to-get-the-most-out-of-the-json-api-serializer-gem@rails
Ginkonote
How to get the most out of the json-api serializer gem | Rails by Flo | GinkoNote
"json-api serializer" gem is the most powerful to serialize Rails models. However, to avoid the common pitfalls, you need to customize it and add some helper methods. Source...