Profile avatar
scottw.com
Husband, Father, & purveyor of fine Ruby on Rails apps. Always building something.
430 posts 826 followers 237 following
Prolific Poster
Conversation Starter

“Not so fast fast, my friend”. Corso is a national treasure and will be missed on Saturday mornings.

The Copilot code review didn't yell at me for using `it` in a block. That's progress, I guess. The feedback on one of my Stimulus controllers is far better than what it has told me about Ruby.

9 year old messages.

TIL: Date (via ActiveSupport) has a helper method that returns a range for the current week. Date.current.all_week => Sun, 16 Mar 2025..Sat, 22 Mar 2025 #ruby #til #themoreyouknow

This is great. I do not use the ‘and’ keyword enough.

Three episodes in to Yellowstone and Casey is killing everyone.

I was curious if other languages had symbols. I haven’t done any fact-checking, but the fact that it took me longer to figure out how to share this than to generate it still blows me away. g.co/gemini/share...

Crumble’s Keylime is a decent quick bite for π day.

For the last 3 months or so, I have been using this 'Strict' gem all the time and it has not yet let me down.

TIL - Rails (ActiveSupport) provides an API for adding callbacks to objects:

So far, Copilot code reviews have done nothing useful except catch spelling mistakes. Even worse, it always complains about Ruby 3.4's `it` in blocks.

I like this API for running CI tasks locally, especially with something like LeftHook. I still believe CI around PR requests is the better team workflow (especially as the team grows), but this new API is likely something I will use.

Netflix on the MY screen significantly improves the experience of waiting in the car for a kid to finish dance class.

TIL about re-running your Rspec tests with a specific seed. I had a test that occasionally, depending on some state, was not cleared correctly in the test ENV. Passing `--seed` with the seed made it easy to duplicate and fix. `bundle exec rspec --seed 56556`

Until recently, I never once considered righting a custom Rubocop rule, but over the last couple of weeks I have written 3.

I wonder what percentage of people come back the next day (or later today) to finish the checkout.

I recently started using Dry-Monads for more than simply returning Success and Failure, and I have been enjoying it quite a bit. The do syntax for multi-step validations has been particularly nice.

I had not let my battery run down since I started using Starship. This is kind of nice:

Does anyone know of a VSCode extension that allows you to create sets of `jump files`? I am working with Event Sourcing and navigating many related files with standard naming conventions. It would be nice to have a shortcut to list the files related to an event, cmd, etc.

I have 25+ years in this profession (coding), and I will still spend days on something only to realize I am vastly overcomplicating what should be a simple problem.

I have become the person who talks to Gemini and I think I like it.

I woke to a new class of error (at least for me). An old customer site was accessed via archive.org, which executed some now invalid JavaScript calls back to our servers, which raised errors since they were no longer valid.

Shout out to JustCrossPost. It has gotten much snappier and more responsive over the last week.

Is anyone else having issues with control+a and control+e in VS Code and Cursor? It keeps outputing something like this: ^A^A^A^A^A

The last piece.

With an ActiveRecord model, what is your favorite/recommended way to force queries to have a default order (such as order(valid_at: :asc)) without using a default_scope? or requiring one to be set on each query?

First shitty chiefs call of the game. What a joke. Go Birds.

Looks broken?

Go Berds. 🦅🦅🦅🦅🦅

Had a chance to my favorite UUID today: 00000000-0000-0000-0000-000000000000

I feel like I should have known this: Date precision on OS X is not entirely up to par with Linux. ruby -e 'puts Time.now.strftime("%Y-%m-%d %H:%M:%S.%9N")' docker run --rm ruby:alpine ruby -e 'puts puts Time.now.strftime("%Y-%m-%d %H:%M:%S.%9N")'

I lost too many hours today getting caught up in the Rails console's use of prettyprint. I kept thinking the data was not formatted correctly.

TIL: RSpec's Shared Examples. https://rspec.info/features/3-12/rspec-core/example-groups/shared-examples/

I still cannot believe how much more it costs to insure a Tesla than other vehicles. We have full coverage on three vehicles; the Tesla (Y) is 50% of the bill. Collision alone on the Tesla is 25% of the total bill.

incredible string slice feature in Ruby that allows you to match against a regex and extract capture groups in a shorthand way learned this in a @gorails.com video with Chris Oliver more details: github.com/jbranchaud/t...

Celtics wearing their “we lost a bet uniforms”.

I just learned this is valid Ruby (call is aliased to .()). This might be my least favorite Ruby ever.

If you took a shot every time Brady says stud you are completely 💩 faced right now. Something to keep in mind for the Superbowl. Go Brids.