Hans Schnedlitz
banner
hansschnedlitz.com
Hans Schnedlitz
@hansschnedlitz.com
Ruby Developer from Vienna and Vienna.rb Ruby Meetup organizer 🇦🇹 Testing, maintainability, and developer experience. Love climbing and hiking 🏔️
Finally. Francophiles, rejoice! 🇫🇷 🎉
November 4, 2025 at 5:27 PM
TIL StimulusJS supports keyboard event filters out of the box. I was so close to writing a bunch of custom JS before thinking to myself "nah, there's got to be a better way" .

Of course, there was.

#ruby
November 4, 2025 at 2:28 PM
Already upgraded to Rails 8.1?

If you're getting some pesky deprecation warnings, here's a one-liner to find the gems responsible 🕵️

#rubyonrails #ruby
October 24, 2025 at 1:28 PM
Rails 8.1 will have dark mode for error pages. No more getting blinded when your app throws an error 😅

#rubyonrails #ruby
October 21, 2025 at 9:43 AM
TIL about Concurrent::Map compute_if_present. This method provides a simple interface to concurrently re-calculate a map value if it's key is present.

Found this in the Solid Cable Source 🕵️

#ruby
September 26, 2025 at 1:28 PM
TIL Minitest has a pride mode, so you can show your *fabulous* testing pride 🌈

Apparently, this has been a thing for forever; I just came across this now, digging through command line options.

#rubyonrails #ruby
September 24, 2025 at 1:28 PM
I waste way too much time binging random crap on Youtube. If I need downtime, I might just as well watch something useful, right?

I think I found a hack to help with that.

Now I just redirect to RubyEvents and watch some talk 😅

#ruby
September 23, 2025 at 1:28 PM
Strong Service is Strong. We need more gems like this that push the boundary of what's possible.

But I have to say, this much touted DSL looks suspiciously like plain old Ruby 🕵️

#ruby
September 3, 2025 at 4:27 PM
I've been working on a variety of map-related projects recently and needed some sample images for locations.

Wrote this little script to pull a bunch of street view images. Dead simple.

Yeah, the resolution isn't great, but it's good enough for seeds 👌

#ruby
September 3, 2025 at 1:28 PM
I've been obsessed with Browser compatibility lately. Maybe one of my apps broke on an older version of Safari. Whoops.

Anyways. I got into Browserlists and Baseline, and wanted a way to integrate this tooling with Rails.

Presenting Browserslist Ruby 👇

#rubyonrails
September 1, 2025 at 4:27 PM
Lightgallery looks terrible out of the box. Luckily, pretty easy to fix with some simple CSS.

Here's the before and after. Pretty happy with the result 😊
September 1, 2025 at 1:28 PM
Devise has this nice 'authorized` helper for conditionally defining routes based on whether the user is logged in or not.

Among other things, this allows you to define multiple root routes.

If you're not using Devise, here's how to create that helper yourself.
#rubyonrails
August 29, 2025 at 4:27 PM
Tailwind doesn't always work well with Rails form helpers.

For example, button_to creates a form, which you mostly don't care about. The `contents` class turns the form into a phantom container, so it's children are treated like direct children of the parent.

#rubyonrails
August 28, 2025 at 4:27 PM
I like that we can block specific browsers with Rails 8.0. However, I'm not the only one who feels that the default is somewhat arbitrary.

Sure, I can always set required versions myself. That's still cumbersome. Working on a little something to address this 🔧

#rubyonrails
August 28, 2025 at 1:28 PM
Some upgrades to Puny Monitor just dropped.

- Improved query performance significantly 🚀
- Simplified dependencies 📦
- Better filters & aggregation 📈

I'm using it for pretty much all my side projects now, it works like a charm. Check it out 👇

#ruby #rubonrails
August 27, 2025 at 1:28 PM
TIL about ignoring references in git blame 👀

When making bulk formatting changes (e.g. RuboCop), you generally don't want those changes to show up in git blame/change sets in PR reviews. A `.git-blame-ignore-revs` tells git to ignore changes from specific revisions.

#ruby
August 8, 2025 at 4:27 PM
The Speculation Rules API seems like a neat idea.

Still very much experimental, but could replace other prefetching solutions (looking at you Turbo) once widely available 🤔
August 8, 2025 at 1:28 PM
We need more fun in software.

Remember when Flipper used to show you 'Blank Space' if you had no features configured? That was before the fun policy arrived 👮

What are your favorite examples of little quirks and easter eggs in software?

#ruby
August 7, 2025 at 4:27 PM
TIL about Stimulus shouldLoad 🤩

Exceedingly handy if you have some controllers that should only load under certain conditions. For example, only on mobile devices (e.g. to provide additional interactions).

#ruby #rubyonrails
August 7, 2025 at 1:28 PM
RailsConf 2025 talks are live! That was quick.

I guess my plans for Sunday evening just changed, time to watch some talks 👀🍿
July 27, 2025 at 10:42 AM
Clickable editor links just landed in Rails main!

A very nice addition, I'm sure this will make debugging just a tiny bit more comfortable.

Now I just need to make it work with my trusty Nvim 🧐
July 25, 2025 at 4:27 PM
I've been writing a bunch of ViewComponents recently. This little helper comes in handy! 🔧

It's crazy how much more pleasant small QoL helpers make development.

#rubyonrails
July 24, 2025 at 4:27 PM
Updated my Bookshelf for 2024 and 2025! Didn't read as many books as previous years 🤷

Personal highlights looking back are Piranesi and Lord of Light. The latter especially doesn't get as much recognition as it should IMO.
July 18, 2025 at 4:27 PM
TIL Claude Code recently added support for hooks.

Run whatever command after the agent finishes - great for notifications. Don't need to put that kind of stuff into your ClaudeMD anymore 👌
July 18, 2025 at 1:28 PM
Kind of sad when a random joke project has a better Readme and website than 99% of OSS out there 🥲
July 17, 2025 at 4:27 PM