Me on top of a hill

Splines

GitHub | YouTube (Science) | ORCiD | LinkedIn
YouTube (Music) | Spotify | Tidal

Contact me: info<at><domain>

Hey there, I'm Dominic aka Splines. Welcome to my little blog where I write about programming, music, physics, math... whatever is on my mind right now. And don't be too serious, let's wiggle more through life as Jacob would put it :)

Rails Flash messages via Turbo Streams

How to render Rails Flash messages via Turbo Streams, while still allowing usual redirects to show Flash messages. This is really quick to set up.

Jacobi and the total time derivative

The total derivative with respect to time is fundamental to physics, yet still, its multivariable form might come out of nowhere when first introduced. We revisit the Jacobian matrix and multivariable chain rule in order to highlight their relationship to the total time derivative. Many examples are provided along the way.

My core principles

What I firmly believe in.

Inline server-side form validation with Turbo

A guide to Rails validations and how to show server-side validation messages inline in your web forms. We employ Turbo Frames to avoid page reloads.

Rails FactoryBot in Cypress

How to use FactoryBot.create() inside your Cypress frontend tests in order to set up some mock objects to interact with.