Matheus Richard

@matheusrich.bsky.social

👨🏽‍🍼 Father 🇧🇷 Senior developer @ thoughtbot. 📝 Blogging @ https://tbot.io/blog/matheus 💎 Organizer of http://rubydf.com

Just deleted ~1.6k LOC and ~770 KB of JS by replacing a chart library (and all of its deps) with a Ruby helper that renders the charts as plain HTML/CSS. CSS Anchor Positioning made this basically JS-free.

Bild

🎉 end_of_life 1.0.0.alpha is released! It includes: - Macos install via homebrew - Support for scanning EOL Node.js versions - Support for detecting versions from `mise.toml`. - A new `check` command to check if specific product releases are EOL - A revamped CLI Stay updated!

Bild

I've hacked the first version of end_of_life in a weekend. I had limited time, so I decided to only support Ruby. It served me well for years, but I thought it was time to expand support for other tools (Rails, Node, Python, databases, etc).

TIL about `ActiveRecord.to_param`. I've always defined `#to_param` manually ``` class User < ActiveRecord::Base to_param :name end user = User.find_by(name: 'Fancy Pants') user.id # => 123 user_path(user) # => "/users/123-fancy-pants" ```

Rails now has a `credentials:fetch` command. This is useful to extract a credential and add to Kamal secrets, for example: KAMAL_REGISTRY_PASSWORD=$(rails credentials:fetch kamal.registry_password) No need to use rails runner just for that anymore! github.com/rails/rails/...

Add credentials:fetch command by n-studio · Pull Request #53119 · rails/rails

Motivation / Background With Kamal 2, secrets are now stored in .kamal/secrets. We are expected to use a 3rd party password manager such as 1password to fetch secrets such as KAMAL_REGISTRY_PASSWOR...

github.com

I feel like half of my web problems would be solved if 1. styling select fields was widely available, and 2. select multiple=true had a good default experience (select on click + search + better styles)