Ryan Bates

@rbates.dev

Producer of https://railscasts.com - Ruby on Rails Screencasts. Also https://rbates.dev

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.

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.

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

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.