Justin Searls(@searls) 's Twitter Profileg
Justin Searls

@searls

⚠️ This is an automated account that crossposts from https://t.co/U3CFodk0J6 — instead of replies and DMs, just email me: [email protected]

ID:9038902

linkhttps://justin.searls.co calendar_today22-09-2007 21:51:58

79,1K Tweets

18,8K Followers

1,3K Following

Justin Searls(@searls) 's Twitter Profile Photo

It felt extremely wrong writing this recursive validation-checker this morning,
but for the life of me I couldn't find a better way to ensure deeply-nested
associations hadn't somehow become invalid after they'd last been saved… gist.github.com/searls/ee2a2aa…

account_circle
Justin Searls(@searls) 's Twitter Profile Photo

I don't understand how so many people could attend stand-up meetings every day and still not be remotely funny.

🔗 justin.searls.co/takes/2024-04-…

account_circle
Justin Searls(@searls) 's Twitter Profile Photo

v0.0.3 of the searls package is out. If you need my latest contact info you can npm install me github.com/searls/searls

account_circle
Justin Searls(@searls) 's Twitter Profile Photo

Wow, they've got a lofi music for everything now. Just found a YouTube video of ARM chips being fabricated called 'ASML ASMR'

🔗 justin.searls.co/takes/2024-04-…

account_circle
Justin Searls(@searls) 's Twitter Profile Photo

How should I have known I wasn't supposed to put down my masseuse's phone number as 'current therapist' on the patient intake form?

🔗 justin.searls.co/takes/2024-04-…

account_circle
Justin Searls(@searls) 's Twitter Profile Photo

Saw a family out to dinner the other day and the kid ordered milk. The waiter responded, 'regular or chocolate'?

The mom got very mad at the waiter's mention of chocolate milk. It's a little shocking how far the Ovaltine window has shifted in recent…

🔗 justin.searls.co/takes/2024-04-…

account_circle
Justin Searls(@searls) 's Twitter Profile Photo

I’ve written more tests than just about anybody. Spent years comparing dynamic and static type systems. My life's work is to maximize correctness and minimize maintenance.

All it's taught me: the single most important thing programmers can do to…

🔗 justin.searls.co/takes/2024-04-…

account_circle
Justin Searls(@searls) 's Twitter Profile Photo

TFW you can’t work up the motivation to program all day and then when you _finally_ get into the zone, you run out of time and have to go be somewhere.

🔗 justin.searls.co/takes/2024-04-…

account_circle
Justin Searls(@searls) 's Twitter Profile Photo

Before buying Apple Vision Pro, my biggest worry about the ergonomics was that I would ABSOLUTELY HATE touching my forefinger and thumb together to “click” things.

200 hours later: I was right! Still not used to it. Just supremely off-putting and…

🔗 justin.searls.co/takes/2024-04-…

account_circle
Justin Searls(@searls) 's Twitter Profile Photo

If anyone out there wants to win some number of Searls Tokens*, I’d love some help figuring this VS Code issue out.

*Redeemable for good vibes. Searls Tokens have a cash value of 1/100th of 1 cent in jurisdictions that require it… stackoverflow.com/questions/7829…

account_circle
Justin Searls(@searls) 's Twitter Profile Photo

If I were a citrus grower, I'd absolutely have a behind-the-scenes blog about my business called Navel Gazing.

🔗 justin.searls.co/takes/2024-04-…

account_circle
Justin Searls(@searls) 's Twitter Profile Photo

Shout-out to Jesse van der Pluijm (jessevdp.nl) for reminding me I should be using the Rails 7 attributes API for setting defaults 🤦‍♂️ api.rubyonrails.org/classes/Active…

account_circle
Justin Searls(@searls) 's Twitter Profile Photo

Am I right to use Rails 7’s `normalizes` feature as a way to set an app-layer default value for a model attribute?

```ruby
class Basket < ApplicationRecord
normalizes :fruits_array, with: ->(fruits) { fruits || [] }
end
```

🔗 justin.searls.co/takes/2024-04-…

account_circle