Skip to content
The Miners

The Miners

Codeminer42’s Engineering Blog

  • #6982 (no title)
  • #6982 (no title)

Tag: Ruby

ActiveRecord Callback Chain: A Cool (and Weird) Edge Case

ActiveRecord Callback Chain: A Cool (and Weird) Edge Case

Luan Gonçalvesby Luan GonçalvesJuly 7, 2021July 4, 2023

Image by jcomp Well, it’s been a while. After a lot of time… I’m back! ( ̄▽ ̄)/ If you haven’t read my last post, give it …

Exploring RSpec – Improving Your Testing Skills

Exploring RSpec – Improving Your Testing Skills

Diego Thomazby Diego ThomazMarch 30, 2021May 29, 2023

Testing our apps has become mandatory these days. For an app to be considered reliable it must have 95% or so of test coverage. Having …

“!” and “?”: Understanding One of Ruby’s Coolest Naming Conventions

“!” and “?”: Understanding One of Ruby’s Coolest Naming Conventions

Luan Gonçalvesby Luan GonçalvesJanuary 29, 2019May 29, 2023

“Well, that’s quite some symbols you got there ♨_♨” – You, after reading this article’s title. It was a calm Friday afternoon here at CodeMiner42, …

Destroying an Association Marked as Read-Only in Rails

Destroying an Association Marked as Read-Only in Rails

Adriano Costaby Adriano CostaDecember 17, 2018October 17, 2023

Read-only is a boolean setting. When true, it prevents an Active Record instance to be updated or destroyed. Although very helpful, there are a few …

Migrating from Paperclip to ActiveStorage My first challenge as an intern

Migrating from Paperclip to ActiveStorage

My first challenge as an intern

Leonardo Negreirosby Leonardo NegreirosNovember 7, 2018May 29, 2023

First of all, I’m no expert in programming. In fact, I started with Ruby on Rails about one and a half month ago with the …

Functional Object Composition and MVC Gluing together encapsulation and functional programming

Functional Object Composition and MVC

Gluing together encapsulation and functional programming

Thiago Araújo Silvaby Thiago Araújo SilvaMay 1, 2017May 29, 2023

I just read a great blog post on the internet about MVC not being object-oriented, and I could not agree more — after all, we …

Crystal by Numbers Benchmarking Kemal, Ruby on Rails, and Sinatra

Crystal by Numbers

Benchmarking Kemal, Ruby on Rails, and Sinatra

Dmitry Rochaby Dmitry RochaApril 28, 2017May 29, 2023

TL;DR Kemal delivers 8.3x more requests than Rails and 1.5x than Sinatra, using only 15MiB (against 110MiB in Rails and 47MiB in Sinatra) and 56% …

Zero to Up and Running a Rails Project only using Docker

Dmitry Rochaby Dmitry RochaMarch 27, 2017

Disclaimer: this post is based on Quickstart: Compose and Rails — Docker the main difference is that I will run everything with my own user …

Refactoring Ruby: From Subclass to Registry From developing a solution to gradually improving it by listening to the pain

Refactoring Ruby: From Subclass to Registry

From developing a solution to gradually improving it by listening to the pain

Thiago Araújo Silvaby Thiago Araújo SilvaMarch 23, 2017May 29, 2023

My team was given a particularly laborious task: implement responsive images throughout a legacy Rails application. Back then, the app was sending disproportionally large image …

Towards Minimal, Idiomatic, and Performant Ruby Code Debunking some popular Ruby idioms

Towards Minimal, Idiomatic, and Performant Ruby Code

Debunking some popular Ruby idioms

Thiago Araújo Silvaby Thiago Araújo SilvaMarch 6, 2017May 29, 2023

I try to embrace a particular way of working with code: it should be minimal, idiomatic, and performant by default. Sometimes it is necessary to …

Posts pagination

Previous 1 … 6 7 8 Next

Content type

Beginner Intermediate Advanced

Recent Posts

  • Tool or Agent? The impact of AI in your code and in your wallet
  • Mastering Zod Validation
  • Codeminer42 Dev Weekly #81
  • The Road To JVM: The JVM Specification
  • Four talks in four weeks

Tags

AI API Artificial Intelligence Authentication Backend Best Practices C Computer Science CSS Database Debugging Design Patterns DevOps Docker Elixir Frontend Functional Programming Git Golang HTML Information Security Infrastructure Java JavaScript NextJS Node.js open-source Performance PostgreSQL Programming Rails React Ruby Ruby on Rails Rust Security Software Architecture Software Development SQL Testing TypeScript UI UX Vue.js Web Development
Creative Commons License 2025 Codeminer42 | Privacy Policy | Cookie Policy | Powered by WordPress and Bam.