TWIL April 10th 2026
- When fixing someone else's mistake it's generally best not to make one of your own
- You can't rescue passing
nil to JSON.parse for some reason
- The senior engineer who referred me for my job has (had) a blog!
- More of a 'today I remembered' but there's a native HTML progress element
- It's much easier than using divs/pseudoelements
expect_any_instance_of needs to go at the start of the spec, not the end
- Having a
StandardError rescue for your controller action (or anything really) is a pretty bad idea
- makes it very difficult to differentiate among failure modes i.e. should or shouldn't crash the app
- made me think passing a
no_throw param back in the failure response from another service was a good idea
- I really hope that's not the solution we end up with
- Should probably just refactor the
StandardError to catch specific stuff/API to throw depending on type
- But dangerous, I wonder if I can catch more specific stuff first...