Chris Winslett
banner
winsletts.bsky.social
Chris Winslett
@winsletts.bsky.social
Last one in 2024
December 31, 2024 at 10:12 PM
For Rails migrations, I avoid using models -- often, in the future that model is changed, renamed, or removed.

I do use SQL in my migrations though. I find the INSERT INTO ... SELECT pattern is ideal for migrations that require data changes.
December 26, 2024 at 7:10 PM
Choose your data stack:
December 17, 2024 at 3:59 PM
Want to feel like a kid? Go on a late night bike ride.
November 19, 2024 at 12:20 PM
More useful than duct tape.
November 17, 2024 at 3:01 PM
Morning ride - first 40 degree ride of the fall
November 16, 2024 at 4:52 PM
Below is the class-pattern I use in Ruby on Rails to work with materialized views. Materialized views assemble the data into a query table. I use this for performance cache.
November 1, 2024 at 5:58 PM
“At all times” got me
October 27, 2024 at 4:41 PM
October 25, 2024 at 5:26 PM
When I run a long-running command line action locally, I append ';say "done."'

Then, I get a verbal indication that it has finished.
October 25, 2024 at 11:28 AM
This is my kind of humor at the coworking space:
October 24, 2024 at 7:41 PM
First, if this truncation doesn’t get more subscribers, I don’t know what will.

Second “potentially dangerous situation?” This sounds like a full-on dangerous situation.
September 22, 2023 at 3:40 PM
saw a murder in broad daylight
September 19, 2023 at 7:15 PM