Why Metaprogramming is Cool
Every Ruby on Rails developer has likely used Rails.env.production?, Rails.env.development?, or similar calls to check the current environment. But have you ever wondered how this
SQL Injection Vulnerabilities in Rails
When we first start learning Ruby on Rails, one of the things we quickly pick up is that Active Record helps protect our applications from SQL injection attacks. However, even with
Thread-Safety in Ruby on Rails: Basic Example With Race Conditions
The Global Interpreter Lock (GIL) in Ruby prevents true multi-core CPU usage in a Rails app, but there is still concurrency, especially when using a multi-threaded server like Puma