Producer of RailsCasts - Ruby on Rails Screencasts

Joined March 2008
53 Photos and videos
Pinned Tweet
10 Dec 2024
I finally set up a Bluesky account. You can find me at bsky.app/profile/rbates.dev I'll continue to post on Twitter/X as well.

2
10
3,197
19 May 2025
What an awesome little game Replicube is. It’s like Picross 3D meets shader programming. The puzzles are a fun challenge and the interface is charming. Thanks @walaber! walaber.com/replicube
9
2,754
25 Feb 2025
90% of the Ruby code I’ve written the past few years has been class methods without shared state. The code has clearer dependencies and is easier to read, test and maintain. OOP has its place, but I don’t think it fits the majority of web-app logic.
25
7
170
11,261
21 Feb 2025
Whenever you’re tempted to reuse a method that *almost* does what you want: Stop, duplicate the method, make the modifications, and then refactor the actual duplication.
4
7
71
3,786
20 Feb 2025
I Googled “capybara drag_to” and the results caught me by surprise.
2
47
2,571
3 Feb 2025
Anyone else find GitHub code diffs near impossible to use in Safari lately? Slows to a crawl and/or doesn’t render.
11
20
3,181
13 Dec 2024
We all have different apps with different requirements. If vanilla Rails is plenty then I think vanilla Rails does too much. dev.37signals.com/a-vanilla-…
6
2
41
3,335
13 Dec 2024
I do agree with this thought behind the post: external dependencies should be avoided when not absolutely necessary.
8
1,702
13 Dec 2024
That said, this is coming from 37 Signals so it makes sense vanilla Rails is plenty for them. if it wasn’t then they would add it to Rails to fit their needs.
1
9
967
13 Dec 2024
I personally would like to see the default Rails install slimmed down and more things moved into official gems.
15
872
13 Dec 2024
What’s everyone using these days to cross-post between Bluesky/Mastodon/X?
3
1
1,563
12 Dec 2024
Ruby’s metaprogramming is like a forbidden fruit. Always there tempting me, and I almost always regret using it.
5
2
75
3,399
10 Dec 2024
I love how Ruby handles keyword arguments. I miss them in just about every other language.
7
1
80
4,494
10 Dec 2024
After working with Roc and Gleam for a while, full type inference is amazing. Now I want a procedural language with full type inference.
1
7
1,730
10 Dec 2024
I wonder why more functional languages don't support local mutability within the scope of a function. It is convenient and still keeps the function pure.
1
8
1,759
10 Oct 2024
Git tip: What if you want to amend an earlier commit? I have this function in my dotfiles. gfix() { git commit --fixup $1 && git rebase -i --autosquash $1^ } Stage changes and run `gfix <commit-sha>`. This will open interactive rebase in your editor so you can review.
5
3
50
5,710
10 Oct 2024
Git tip: I like to keep a clean git history on my local branch. I often run `gcn!` to amend the staged changes to the previous commit. This is an alias I stole from oh-my-zsh. alias gcn!='git commit --verbose --no-edit --amend'
24
2,444
4 Oct 2024
Tip for mac users: Make a shell script of `defaults write` commands to set up macOS the way you like it. Then just run the script when setting up a new system. (see macos-defaults.com/ for possible commands)
1
30
3,727