Allan Deutsch
allandeutsch.com
Allan Deutsch
@allandeutsch.com
👨‍💻 Software craftsman

🎟️ SeattleJS Organizer

Currently building:
🦺 typesafe-ts to help you write safer code with confidence
🐤 docduck.dev to get inline docs feedback from developers
Didn’t know that was a thing, gonna do it!
November 11, 2025 at 11:00 PM
Feels like a where’s Waldo of code bugs lol
November 11, 2025 at 10:59 PM
Those 1 character ones are always so annoying
November 11, 2025 at 10:59 PM
Now try it in a single pass over the array 😁
November 11, 2025 at 10:57 PM
How would the type inference differ from declaring a var before the if statement? AFAIK it would have the same narrowing in conditionals, the only difference is that the value would not be in scope outside the branch.
November 11, 2025 at 10:53 PM
Using an accumulator would more clearly convert your intent, but the code itself might be a bit less clear. Perf would be much better though 😁
November 11, 2025 at 6:08 AM
Explicit scope for variables only used in the conditional branch is really nice. IMO it makes code more readable because it conveys the intent behind the variable declaration.
November 11, 2025 at 1:28 AM
Yes it’s very nice! In particular I like that it makes the scope explicit for variables only used in the conditional.
November 11, 2025 at 1:25 AM
I used to hate them but I’ve come around! I’m currently on a 36h layover in Denver and spent yesterday afternoon at Meow Wolf’s Convergence Station 💯

I much prefer a layover where I get to spend a day somewhere fun to the ones where I spend 4-8hrs in an airport waiting for a plane.
November 10, 2025 at 6:00 PM
Your code is quite concise! Do you care about perf? A single loop over the array is probably faster.

If suitable for you, getBoundingClientRect() might be better.
November 10, 2025 at 9:49 AM
There’s a spot in Seattle that serves a mini stroopwaffle with a similarly flavored coffee, but I don’t think I’ve seen anywhere else do it.

By chance are the places you’ve seen do it serving dark roasts?
November 9, 2025 at 3:07 PM
My personal policy is no flights before 8am and it is a fantastic policy
November 9, 2025 at 2:31 PM
is in browser testing as fast as happy dom or jsdom? I'm still using happy dom, and only run e2e tests in browser. I'd be happy to run everything in browser if the perf is good.
November 7, 2025 at 6:59 PM
Or if you’re a parent, inshallah means no, but not from me. For example:

“Can we get ice cream?”
“Inshallah” (if god is willing, aka no)
November 5, 2025 at 11:56 PM
I really really hope the rollout for this is much smoother than the California high speed rail.
November 5, 2025 at 11:49 PM
These are all great! The pace of shipping is really strong lately from the safari team 💪

Where I see challenges is adoption. Users are slow to update their OS, and they don’t get the new safari feature until they do. Caniuse has safari 26 for <10% of safari users, even 1.5mo after release.
November 5, 2025 at 11:47 PM
Bluesky supports images, you’ve got this!
November 5, 2025 at 2:42 PM
Dang that’s awesome! I had no idea
November 5, 2025 at 6:06 AM
Let’s do a webring!
November 5, 2025 at 5:44 AM
🙋‍♂️
November 4, 2025 at 1:48 AM
Dressing up cheap food is super underrated IMO. I like to put saffron in my oatmeal, same vibe.
November 3, 2025 at 9:11 PM
The thing I love most about this is I can just run it in the background while doing something else. When I check in, there's an update on the investigation or a proposed change for me to try out.

I love using agents for this sort of stuff because they _increase_ the quality of the code base.
November 3, 2025 at 9:10 PM
I can’t imagine how much work it would be to manually test everything instead of using automated tests. I can move so much faster when running a test suite tells me I didn’t break anything and therefore can keep moving forward.
November 3, 2025 at 3:34 AM
My impression is that it is basically the show less button, just easier to get to.
November 2, 2025 at 12:07 AM