Ryan Bates (@rbates) 's Twitter Profile
Ryan Bates

@rbates

Producer of RailsCasts - Ruby on Rails Screencasts

ID: 14246143

linkhttp://railscasts.com calendar_today28-03-2008 19:10:25

14,14K Tweet

38,38K Followers

480 Following

Ryan Bates (@rbates) 's Twitter Profile Photo

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)

Ryan Bates (@rbates) 's Twitter Profile Photo

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'

Ryan Bates (@rbates) 's Twitter Profile Photo

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.

Ryan Bates (@rbates) 's Twitter Profile Photo

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.

Ryan Bates (@rbates) 's Twitter Profile Photo

After working with Roc and Gleam for a while, full type inference is amazing. Now I want a procedural language with full type inference.

Ryan Bates (@rbates) 's Twitter Profile Photo

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.

Ryan Bates (@rbates) 's Twitter Profile Photo

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.

Ryan Bates (@rbates) 's Twitter Profile Photo

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