Here's one of those things that are easy to miss on code review and will make your tests super slow. Good news: it's easy to fix!
thoughtbot.com/blog/combine...
Here's one of those things that are easy to miss on code review and will make your tests super slow. Good news: it's easy to fix!
thoughtbot.com/blog/combine...
TIL about Rails' image_submit_tag
api.rubyonrails.org/v8.1.2/class...
This was a fun one to write!
I love seeing this UI evolve! What are you using for pagination?
Time.days_in_month(2) # defaults to current year # => 28 Time.days_in_month(2, 2024) # => 29 Time.days_in_year # defaults to current year # => 365 Time.days_in_year(2024) # => 366
Today I learned about Rails' Time.days_in_month and Time.days_in_year. So handy!
π 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!
TIL about Git LFS: An open source Git extension for versioning large files
git-lfs.com
Wait, what? Where?
Does the bot log in? How do you handle auth?
Beautiful!
Where's @marcoroth.dev to add a proper parser to Stimulus? π
From the little I know it seems a lot more than that? Most of the times I'm good with plain HTML and I want to add a few things here and there. Svelt seems like an overkill solution for me?
I keep wanting to try it, but at the same time I so don't want another JS tool.
I'm curious about what the European developer interests are (compared to what also) π
NOOOOO! I didn't have my chance to attend!
Just shaved 200-250ms from a CLI app by just requiring dependencies only when they're needed.
It might not seem much, but it really matters to get that snappy feel.
The RubyGems.org 404 page
This is my favorite 404 page
Great font in those slides!
Did you know that Rails 7.1 stops receiving security updates in 3 weeks? Wished that you had a tool that would inform you about this kind of stuff?
Well, end_of_life v0.5 was just released and it now supports Rails!
Check it out: github.com/MatheusRich/...
This look amazing. I might not need to add
config.action_view.annotate_rendered_view_with_filenames = true
to every app now
That's exactly how it works. It uses Rails main by default, but you can specify any commit you want.
It'll use the same name as your app, so you get meaningful diffs only.
Then, the easy change: adding support for Rails was just a 27loc change (not including tests).
Amazing payoff!
github.com/MatheusRich/...
The code was not written in a generic way, so I followed Kent Beck's advice and started to make the change easy.
It took a diff of +1160/-927 , and it was mostly backwards compatible. Luckily I had tests to ensure nothing was broken.
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).
For example, I just found-out that the they add caching to rubocop runs on CI!
github.com/rails/rails/...
If you wanna use Rails 8.1 today, you can check if there's anything new in the dotfiles, Dockerfile, or the generated authentication system using rails-diff:
github.com/MatheusRich/...
I actually dig it.
The amount of event listeners LLMs suggest when writing Stimulus controllers makes me think most people are not making the most out of Stimulus targets.
Join me at @thoughtbot.comβs Open Summit this year! Iβm extremely excited to be part of this event. Even better, itβs *free* and *online*, so I hope I can see you there!
timriley.info/posts/join-m...