Show newer

@izaya sleep has a kind of cycle. it is possible you slept past where you "should have" woken up, so your body went back into the cycle. I get that from my vague recollections of this podcast ep: podcasts.apple.com/us/podcast/

While I appreciate the advantages of "Easier to Ask for Permission than Forgiveness", given how poorly distinguished exception type hierarchies are in , for the sake of providing good error reporting, I find "Look Before You Leap" makes a lot of sense a lot of the time. I'm thinking of the cases where you have a set of options for sets of provided parameters: Checking what's intended and then doing just that thing means that when the operation fails, I can report "<commanded operation> failed" vs trying each thing in series as the previous thing fails and then reporting all of the things that might have failed, only one of which was the intended one.

Really, I haven't found much reason to prefer EAFP outside of certain situations like dictionary accesses, where "checking" is the same thing as access, so it's redundant, or where checking first would cause TOCTOU (en.wikipedia.org/wiki/Time-of-) errors, in which case it's just a correctness thing. Maybe my example above for error reporting is a strawman and not what people have in mind when they say you should prefer EAFP, but given that it looks like basically the same kind of case where EAFP *is* generally recommended (until it doesn't), seems like without talking about the logic behind it (TOCTOU, redundancy, maybe others), you'll tend to mispredict the right approach.

@trinsec I did use tea for half of the water content this time though. You can really taste it, but it's just "ok".

@trinsec oh, you mean they look a bit like dog turds? Never seen a salted dog turd. They taste like bread. All of my bread just tastes like bread 😆

I'm listening to this TED talk with a guy talking about "neon cat" a "popular meme" and I'm like, "WTF is neon cat?"

It's nyan cat. Americans don't know how to say stuff.

@p
that sounds pretty neat, but maybe cumbersome. Is this using Linux namespaces or (judging by one of your var names) Plan 9 or some offshoot of that?

I've made some use of Docker for certain applications, but I've some vague thoughts about using Linux namespaces more directly to isolate some applications--figuring out what all of the files are that the application might need could be annoying. I can possibly automate this by running the application and tracing opened files, but I haven't tried it yet. Possibly a long tail of files I missed that I have to keep adding to my "container".

@izaya

@izaya

> more interesting as a building block in a larger system

Think of it like the difference between having only global variables and local variables. It can be difficult to explain how you use local variables, but it's like that kind of effect.

it continues to baffle me why printf-style string formatting functions don't support a maximum length for strings that truncates to the first N character.s. While I recognize that you can eventually get to needing more elaborate preprocessing, that basic capability really handles quite a few cases when you want a fixed-width output

bbc.co.uk/programmes/w3ct1hth "the real story" is a pretty good program. it has, a couple of times, "incepted" it's way into my dreams when I keep my radio on over night. they just had an episode on , which I know is of interest to some

programming is a self made hell and when programmers act like big brain geniuses it's because they are proud of navigating their own horrible messes

@maltimore you're a PhD candidate studying machine learning, but never studied computer science? how's that work?

There's a lot of praise for syncthing but I think it's kind of unstable:

- often it says that another device is "disconnected" even though I just synced something 5 seconds ago
- the "sync progress" meter gets stuck at various percentages, even though syncing already finished
- the "sync progress" percentage is wildly different between two devices that sync the same folder

And some weirder stuff that I couldn't reproduce.

#syncthing

Show older

🌸🌹2ck 🌱🐇's choices:

Qoto Mastodon

QOTO: Question Others to Teach Ourselves
An inclusive, Academic Freedom, instance
All cultures welcome.
Hate speech and harassment strictly forbidden.