TWIL August 14th 2026
- You can use
performed?in a Rails controller callback to see if a response was already set- Allowing you to return early/avoid overwriting it
- Obviously you want to write your code to avoid needing this, but in some cases you might need to work around gems you've pulled in
- They coulda named it a bit better though, maybe
response_set?. I spent a while looking through our codebase/Doorkeeper for the definition
- Including your tests in typechecking can quite often include them in the build, which is annoying
- I should really look at how Vault handles that; I feel like there must be a cleaner solution than
tsconfig.build.json
- I should really look at how Vault handles that; I feel like there must be a cleaner solution than
Links
- Shrinking Ruby Hashes - byroot
I did not know a Hash is so much bigger than a Struct in Ruby for equivalent entries; to be honest I thought it was the other way around to the extent I remembered Struct existed at all. Pretty interesting given how many hashes we casually use in all our Rails codebases.
- I'm leaving OpenAI - Taylor Town
The only AI-related article worth reading.