Readit News logoReadit News
xavdid commented on In praise of –dry-run   henrikwarne.com/2026/01/3... · Posted by u/ingve
AmbroseBierce · 12 days ago
You understand how subjective that is right? Someone might expect that the database doesn't do the last commit step while other people is perfectly happy that the database engine checks that it has enough writing permissions and is running as a user that can start the process without problems.
xavdid · 12 days ago
Sure, where you draw the line will vary between projects. As long as its exact placement doesn't matter too much.

For me personally, I tend to draw the line at write operations. So in your example, I'd want a dry run to verify the permissions that it can (if I expect those to be a problem). But if that can't easily be done without a write, then maybe it's not worth it. There are also situations where you want a dry run to be really fast, so you forego some checks (allowing for more surprises later). Really just depends.

xavdid commented on In praise of –dry-run   henrikwarne.com/2026/01/3... · Posted by u/ingve
marhee · 12 days ago
Doesn’t this conflate dry-running with integration testing? ASAIK the purpose of a dry-run is to understand what will happen, not to test what will happen. For the latter we have testing.
xavdid · 12 days ago
Yes, but it depends on the context.

For little scripts, I'm not writing unit tests- running it is the test. But I want to be able to iterate without side effects, so it's important that the dry mode be as representative as possible for what'll happen when something is run for real.

xavdid commented on In praise of –dry-run   henrikwarne.com/2026/01/3... · Posted by u/ingve
xavdid · 12 days ago
I like this pattern a lot, but it's important that the code in the dry path is representative. I've been bitten a few too many times by dry code that just runs `print("would have updated ID: 123")`, but not actually running most of the code in the hot path. Then when I run it for real, some of the prep for the write operation has a bug / error, so my dry run didn't actually reveal much to me.

Put another way: your dry code should do everything up until the point that database writes / API calls / etc actually happen. Don't bail too early

xavdid commented on How well can you predict the state of the world in 2041?   xavdid.fillout.com/predic... · Posted by u/xavdid
xavdid · 18 days ago
We recently welcomed a new baby and have been discussing whether she'll ever learn to drive. I love bets with long time horizons, so we put together a survey so friends and family could pick a side. We kept thinking of fun questions to ask, so it grew into the survey I've linked above, which we're opening to the public.

It's short, fun, and totally informal. Thanks for looking!

There's a little more context about the project on my blog: https://xavd.id/blog/post/predicting-the-future/

xavdid commented on During Helene, I just wanted a plain text website   sparkbox.com/foundry/hele... · Posted by u/CqtGLRGcukpy
firefoxd · a month ago
I have a tab on sublimetext that has been opened since the pandemic and I think it's safe to share my idea since I'm not gonna do it.

*4KB webpage files*

So a website where each page does not exceed 4KB. This includes whatever styling and navigation needed. Surprisingly you can share a lot of information even with such constraints. Bare bone html is surprisingly compact and the browser already does a whole lot of the heavy lifting.

Why 4KB? Because that used to be the default page size in x86 hardware. So you can grab the whole thing in one chunk.

This whole comment is not 1KB.

xavdid · a month ago
Not all the way down to 4KB, but https://512kb.club/ matches this vibe
xavdid commented on A secret to never forgetting numbers   ninjasandrobots.com/the-n... · Posted by u/nate
chias · 3 months ago
Once upon a time I read the joking phrase "M as in Mancy" and now it is the only thing I can ever think of when trying to spell out the letter M.

Perhaps I have now infected one of you. I am sorry.

xavdid · 3 months ago
This was originated (or at least popularized) in an episode of Archer from season 1. It remains maybe my favorite 5 minutes of comedy ever out to screen. It's just so tight!

https://youtube.com/watch?v=dNYMQpcqscA

xavdid commented on Python f-string cheat sheets (2022)   fstring.help/cheat/... · Posted by u/shlomo_z
xavdid · 6 months ago
Ah, these are great! f-strings are so powerful, but I can never remember the arcane little syntax. Definitely bookmarking this.
xavdid commented on PYX: The next step in Python packaging   astral.sh/blog/introducin... · Posted by u/the_mitsuhiko
woodruffw · 6 months ago
We've been pronouncing it pea-why-ecks, like uv (you-vee) and ty (tee-why). But I wouldn't say that's permanent yet.
xavdid · 6 months ago
that's fascinating - I've definitely been saying "you've" and "tie". I assumed this was "picks"
xavdid commented on Every champion needs a rival   tombrady.com/posts/every-... · Posted by u/pbardea
xavdid · 6 months ago
If you're interested in some (light) science behind rivalry and/or the Michigan/OSU rivalry, I highly recommend the documentary "Rivals: Ohio State vs. Michigan". It's a fun look into why a rivalry drives better performance.

https://www.imdb.com/title/tt22937658/

u/xavdid

KarmaCake day1475July 16, 2012
About
Tech Lead for SDKs @ Stripe.

more about me, including contact info: https://xavd.id

[ my public key: https://keybase.io/xavdid; my proof: https://keybase.io/xavdid/sigs/BQWxbAXvZRuPw57WrdW-5xYAvOamOUhGIF0FAnWbiVM ]

View Original