rbates Profile Banner
Ryan Bates Profile
Ryan Bates

@rbates

Followers
38K
Following
2K
Media
53
Statuses
14K

Producer of RailsCasts - Ruby on Rails Screencasts

Southern Oregon
Joined March 2008
Don't wanna be here? Send us removal request.
@rbates
Ryan Bates
1 year
I finally set up a Bluesky account. You can find me at https://t.co/Rd0CG5ZMq8 I'll continue to post on Twitter/X as well.
2
0
10
@rbates
Ryan Bates
7 months
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
0
0
8
@rbates
Ryan Bates
9 months
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
169
@rbates
Ryan Bates
9 months
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
@premium
Premium
4 months
Go ad-free on X with Premium+ Includes access to SuperGrok.
0
436
7K
@rbates
Ryan Bates
9 months
I Googled “capybara drag_to” and the results caught me by surprise.
0
2
46
@rbates
Ryan Bates
10 months
Anyone else find GitHub code diffs near impossible to use in Safari lately? Slows to a crawl and/or doesn’t render.
11
0
22
@rbates
Ryan Bates
1 year
I do agree with this thought behind the post: external dependencies should be avoided when not absolutely necessary.
0
0
8
@rbates
Ryan Bates
1 year
I personally would like to see the default Rails install slimmed down and more things moved into official gems.
0
0
15
@rbates
Ryan Bates
1 year
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
0
8
@rbates
Ryan Bates
1 year
We all have different apps with different requirements. If vanilla Rails is plenty then I think vanilla Rails does too much.
Tweet card summary image
dev.37signals.com
Minimal dependencies, maximum productivity. Staying vanilla pays long term dividends for your Rails apps.
6
2
41
@rbates
Ryan Bates
1 year
What’s everyone using these days to cross-post between Bluesky/Mastodon/X?
4
0
1
@rbates
Ryan Bates
1 year
Ruby’s metaprogramming is like a forbidden fruit. Always there tempting me, and I almost always regret using it.
5
2
77
@rbates
Ryan Bates
1 year
I love how Ruby handles keyword arguments. I miss them in just about every other language.
7
1
80
@rbates
Ryan Bates
1 year
After working with Roc and Gleam for a while, full type inference is amazing. Now I want a procedural language with full type inference.
0
1
7
@rbates
Ryan Bates
1 year
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
0
8
@rbates
Ryan Bates
1 year
Anyone participating in Advent of Code this year? I’m doing it in Gleam:
Tweet card summary image
github.com
Advent of Code 2024 in Gleam. Contribute to ryanb/advent-2024-gleam development by creating an account on GitHub.
2
1
22
@rbates
Ryan Bates
1 year
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
@rbates
Ryan Bates
1 year
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'
0
0
24
@rbates
Ryan Bates
1 year
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 https://t.co/LN9BSGFViE for possible commands)
0
1
30