Andrei Maxim

Professional Ruby guy.
May 2, 2024

In Relentless Pursuit of RESTful Webhooks

I've recently seen a code sample about working with Stripe webhooks in Rails applications and I've noticed the following code in the controller: class StripeController < ApplicationController skip_before_action :verify_authenticity_token, only: [ :webhook ] def webhook # Sample code for handling Stripe webhook events end end First of a...
Read more
April 17, 2024

Instance Variable Access in Ruby

Instance variables (or instance attributes) in Ruby are prefixed with an @ sign: class Person def initialize(salutation: nil, first_name:, last_name:) @salutation = salutation @first_name = first_name @last_name = last_name end def name [ @salutation, @first_name, @last_name ].compact.join(" ") end end john = Person.new first_name: "Jo...
Read more
March 12, 2024

Exploring Visual Studio Code

I've decided to explore a potential migration from Emacs to Visual Studio Code, mainly because I've been planning for a while to get up to date with HTML, CSS and JavaScript and VS Code seems to have support for the most recent tools and practices on the front-end side. Here's how the current setup looks like when opening my version of...
Read more