返回创作者库
RBRyan Bates

Ryan Bates

@rbates
科技与产品英文中坚创作者 (3万–20万)收录于 2026-11-26

Ryan Bates制作RailsCasts,内容聚焦Ruby on Rails教学视频。

Producer of RailsCasts - Ruby on Rails Screencasts

粉丝规模
3.8万
关注 478
日常浏览中位数
—
30天 0条
收藏率
—
网络权威分
54/ 100
30 天黑马爆款
0
收录于 2026-11-26
曝光效率日常浏览 / 粉丝数数据积累中
同量级中位 9% (中坚创作者 (3万–20万))计算口径 →

近 90 天内已收录 0 / 5 条有效公开帖,满 5 条后计算同量级曝光对比。

近 90 天已收录 0 / 5 条有效公开帖,满 5 条后计算日常浏览基线。

近 3 天粉丝成长曲线

移动鼠标查看每日粉丝变化

近 3 天变化
-7(0.0%)
38,30038,20038,10038,00011-2611-2811-29

近 14 周发文节奏

2026-11-29 周日0 条

收录于 2026-11-26,已记录 0 天公开动态;收录前暂无历史数据。

14 周推文
0
活跃发文日
0/4
活跃周数
0/1
周均产出
0.0
单日峰值
0
高频星期
—
8月10月11月一三五日
08-24 → 11-29
少多
被头部创作者关注 / 背书10
关注 10
53万关注
23万关注
10万关注
最高倍率—
单帖最高浏览1.3万
最高收藏率1.5%
RBRyan Bates
Ryan Bates@rbates科技与产品3.8万粉en

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.

1.1万29(0.3%)168725
X 原帖
RBRyan Bates
Ryan Bates@rbates科技与产品3.8万粉en

Git tip: Enable 3-way diffs for merge conflicts. It shows the original content between the two changes so you have a better understanding of what has changed: git config --global merge.conflictstyle diff3

5.5千75(1.4%)81103
X 原帖
RBRyan Bates
Ryan Bates@rbates科技与产品3.8万粉en

TIL about t.co/LN9BSGFViE, a collection of commands to configure macOS through the command line.

4.7千70(1.5%)70112
X 原帖
RBRyan Bates
Ryan Bates@rbates科技与产品3.8万粉en

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.7千42(0.7%)5035
X 原帖
RBRyan Bates
Ryan Bates@rbates科技与产品3.8万粉en

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.

3.9千5(0.1%)7074
X 原帖
RBRyan Bates
Ryan Bates@rbates科技与产品3.8万粉en

I’m convinced Rails engines are almost never the right abstraction for a gem. The view/controller layer is too app-specific. Use generators instead.

1.3万21(0.2%)114811
X 原帖
RBRyan Bates
Ryan Bates@rbates科技与产品3.8万粉en

OOP is great for games, simulations and UIs that have independent entities whose behavior largely depends on their internal state. I find processing web requests is clearer with a more procedural style – a list of instructions that need to be performed in sequence.

6.0千14(0.2%)8138
X 原帖
RBRyan Bates
Ryan Bates@rbates科技与产品3.8万粉en

Over the past year I’ve been favoring class methods over PORO (plain old Ruby objects) for business logic and love this approach. So much easier to organize, test, reuse and refactor.

1.3万25(0.2%)54014
X 原帖
RBRyan Bates
Ryan Bates@rbates科技与产品3.8万粉en

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 t.co/LN9BSGFViE for possible commands)

3.7千29(0.8%)3010
X 原帖
RBRyan Bates
Ryan Bates@rbates科技与产品3.8万粉en

I love how Ruby handles keyword arguments. I miss them in just about every other language.

4.5千3(0.1%)7717
X 原帖
RBRyan Bates
Ryan Bates@rbates科技与产品3.8万粉长推 · 4en

We all have different apps with different requirements. If vanilla Rails is plenty then I think vanilla Rails does too much. t.co/d1ZhCKsTdA

3.4千11(0.3%)4026
X 原帖
RBRyan Bates
Ryan Bates@rbates科技与产品3.8万粉en

Ruby’s metaprogramming is like a forbidden fruit. Always there tempting me, and I almost always regret using it.

3.4千4(0.1%)7425
X 原帖
RBRyan Bates
Ryan Bates@rbates科技与产品3.8万粉en

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! t.co/KtrCIxlQLp

3.1千5(0.2%)901
X 原帖
RBRyan Bates
Ryan Bates@rbates科技与产品3.8万粉en

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'

2.5千19(0.8%)2400
X 原帖
RBRyan Bates
Ryan Bates@rbates科技与产品3.8万粉en

I Googled “capybara drag_to” and the results caught me by surprise.

2.7千0(0.0%)4820
X 原帖
RBRyan Bates
Ryan Bates@rbates科技与产品3.8万粉en

I’m tempted to set `travel_to` in every test for constant time and then intentionally testing edge cases such as leap year, daylight savings, odd time zones, etc. Anyone do this?

7.0千12(0.2%)25013
X 原帖
RBRyan Bates
Ryan Bates@rbates科技与产品3.8万粉en

Anyone else find GitHub code diffs near impossible to use in Safari lately? Slows to a crawl and/or doesn’t render.

3.2千0(0.0%)21011
X 原帖
RBRyan Bates
Ryan Bates@rbates科技与产品3.8万粉en

One benefit of giving each major feature its own namespace is you can easily run tests for that feature.

$ rspec spec/**/some_feature

2.6千5(0.2%)3910
X 原帖
RBRyan Bates
Ryan Bates@rbates科技与产品3.8万粉en

Anyone participating in Advent of Code this year? I’m doing it in Gleam: t.co/ve2dPLWfyC

2.0千2(0.1%)2112
X 原帖