Dino Maric

Hey! I'm Dino, programmer and CTO of WizardHealth.
Subscribe bellow to follow my ramblings about programming for the web.
Pinned post from January 3, 2023

Inception

Hey 👋🏿, Lately, I found myself regretting not writing down my research or things I've learned in the process. So, as we are entering the new year I've decided to write a journal about my research. To make things more interesting and to hold myself accountable I'm gonna write this journal in the public. As a ruby/rails developer acting ...
Read more
February 17, 2023

ActiveRecord associations with a conditions

ActiveRecord as a neat trick/ability which a lot of folks are not aware of. You can pass a block to association, for example: class Account < ApplicationRecord has_many :users, -> { where(admin: true) } end class User < ApplicationRecord belongs_to :account end What makes this even more interesting is that you can have multiple associa...
Read more
January 11, 2023

This is the effect of canonicalization in PostgreSQL

I was working towards leveraging PostgreSQL ranges in my Rails application. In that process, I've discovered what I think is a PostgreSQL bug. PostgreSQL ranges Postgres has a neat ability to represent ranges, which can come in handy in multiple situations. Under the ranges umbrella term PG contains a few different range data types • i...
Read more
January 4, 2023

Rails engine bugs and a small contribution

Since I've done a lot of work on tailwind-css rails engine, I've noticed that there is one issue. Integrating this engine inside rails engine is problematic as reported here and here. My first idea is to generate a new rails engine, try to make this work and see what steps are required. I will generate new `--mountable` engine just so ...
Read more