Better HN
topnewbestaskshowjobs
Log inSign up

ddejohn

556 karma · joined Jul 23, 2022 (4y ago) · 223 submissions

Submissions

comment 1y ago · link · parent

Everything in the codebase I maintain at my job is an arbitrary dict and there is no type information anywhere. It wasn't even written that long ago (dataclasses were a thing long before this codebase was written).

There's actually a place where the original authors subclassed dict, and dynamically generate attributes of a "data class" such that it can be used with dotted attribute access syntax or dict access syntax but the `__slots__` attribute of these classes is also generated dynamically so you don't have any auto-complete when trying the dotted attribute access. It's genuinely insane lol.

comment 1y ago · link · parent

Who's it for, then?

comment 1y ago · link · parent

yep, the legacy codebase I maintain does a lot of this kind of stuff and has made it difficult to write unit tests in some cases due to all the code that runs at import and all the state we end up with

comment 1y ago · link · parent

Not having subdomains work for container assignments is a baffling design decision. It's a well-known issue and oft-requested feature that the devs seemingly have no plan to fix. It's incredibly frustrating.

> whenever I'm browsing in a container tab, I wish CMD-T opened a new container tab

Not exactly what you're looking for, but Temporary Containers (no longer maintained, fwiw) at least will open every new tab in a new temporary container that will be wiped after a configurable amount of time after closing.

comment 1y ago · link · parent

> Client side password hashing

Forgive my ignorance, but what's wrong with this one?

comment 1y ago · link · parent

> Wearing something shockingly ugly is a great way to not be mistaken for a deer.

Sure... yes the bright orange is ugly, but it's not the ugliness that prevents you from getting shot, it's the bright unnatural color. Other hunters aren't thinking "oh that's really ugly, it must not be something I can shoot" they're thinking "bright orange means person, I should not fire my rifle in that direction".

> If it wasn't, it wouldn't grab my attention so well.

Are you saying that if you thought the bright orange was pretty it wouldn't occur to you not to fire your gun in its direction?

comment 1y ago · link · parent

This. You also don't really need Pydantic unless you're de/serializing data from external sources. A dataclass is perfectly cromulent if you're just passing around data internally.

comment 1y ago · link · parent

> It's like the bright orange garments that hunters wear, the ugliness is sort of the point.

Ugliness is not the point of hi-vis vests lol, the point is to not get shot by other hunters.

comment 1y ago · link · parent

> Obviously I know I could name this function and feed it in, but for one-off logic like this I feel a lambda is descriptive enough and I like that it can be done in-place.

FWIW, you'd also have the benefit of being able to unit test your logic.

comment 1y ago · link · parent

My first car was a 1992 Oldsmobile Cutlass Supreme S, which I got in 2010 and drove for three years before it bit the dust. It was an absolute boat but it was fun to drive, and I could see virtually 360°. I never once in the time I had it had any vision issues.

My next car I got in 2021 was a 2007 Prius. It has a super thick A-pillar in a really terrible spot that makes turning left quite stressful. The turning radius is amazing and I love driving what these days is considered a "compact car", but I absolutely loathe the A-pillar. I am constantly dancing in my seat to see around it, and will check both ways 4 or 5 times before crossing roads from a side street because my field of view is so limited.

I've always mused about whether reducing vision for the sake of crash safety actually ends up resulting in more accidents. Is it better to try to prevent accidents by improving visibility or mitigate harm in the event of an accident (which seems more and more like an inevitability these days where I live where there's virtually zero traffic enforcement; I see red-light runners multiple times per day, and a section of our city highway with 55 mph speed limit has the entire traffic stream going 75)?

I could talk for days about the design of modern cars in the US...

comment 1y ago · link · parent

Excellent, arigato gozaimasu!

comment 1y ago · link · parent

> I tried to get some friends who visited recently to avoid it in favor of some other culturally significant spots

Any tips for somebody looking to visit Japan in the next year or so?

comment 1y ago · link · parent

> you can still have that

... if you're a full-time traveler that can afford to stay for months at a time. For the rest (the vast majority) of us, the GP comment is what we get.

comment 1y ago · link · parent

The whole tone of TFA is super frustrating. The original story is funny, well written, and, well, a story meant to be told "over drinks at a conference". TFA misses all the humor and generally seems to be written by a very bitter person.

comment 1y ago · link · parent

Sounds interesting. Have you written about it in more detail somewhere?

comment 1y ago · link · parent

> so they can indefinitely bilk money from you

Or just stop supporting altogether, a la Spotify Car Thing.

comment 1y ago · link · parent

for some reason I can't reply to the GP -- any ideas why that person thinks Tableau is legacy?

comment 1y ago · link · parent

Nothing tempts me so strongly to give up and leave a site than needing to use a magic link to get in.

Sometimes it takes minutes. I have, on more than one occasion, given up on buying a product because of this. It's actually insane to me how much effort sites put into preventing users from using them.

I get it, most people are idiots with completely non-existent security hygiene, but man does it suck being punished because of just how low the common denominator is here.

49.

Cory Doctorow – PyCon 2025 keynote [video](youtube.com ↗)

2 points · by ddejohn · 1y ago · 1 comment

comment 1y ago · link · parent

Ed writes a lot of good stuff, but yeah, they're usually a slog. His diatribes seem to be getting longer lately too.

comment 1y ago · link · parent

How on earth do you have time to spend 10 hours a day consuming news and podcasts?

edit: and also, do you think that's healthy??

comment 1y ago · link · parent

> humanity is presently in the process of evolving beyond nation-states

No, it isn't. This is some Curtis Yarvin BS.

> So, any solution that truly addresses the _original_ funding disaster must be future-compatible with an internet in which we've overcome the burden of nation-states.

What does this even mean? How do you envision a "future-compatible" CVE database? And what does it have to do with nation states?

comment 1y ago · link · parent

> Great. So I assume you made massively leveraged bets to short the stock market and are now rich?

> Or maybe you didn't, because talk is cheap, and you didn't actually know anything. Because nobody knew anything.

Wait. Your argument for why people weren't prepared for a second Trump admin being worse is... that they didn't think to get rich off of it?

comment 1y ago · link · parent

I didn't claim any of those things were specific to Project 2025.

We've known about RFK Jr all along so yes, if somebody is surprised by the secretary of health being anti-vax, that somebody is irresponsibly ignorant. If that somebody also claims that nobody could have foreseen this, or that prior to him being picked they were fond of reassuring people that "there's no way it'll be that bad"... yeah I'd 100% associate that with the type of behavior becoming of a Russian troll.

I find it really weird and cringey that you're bringing up ego. I don't feel like I'm smarter than everybody else, nor am I claiming to be, nor do I see how any of my comments could even be construed as such. To say this is about me thinking I'm smarter than everybody else is to imply that I'm relishing in the fact that I "foresaw what others couldn't", which is just... an insanely idiotic thing to say. I'm not a sociopath. And for what it's worth, I know plenty of people who also saw this coming.

To be clear, it's a tragedy that so many people were ignorant of what a second Trump admin would be capable of, but that's not really the point I'm trying to make; I am specifically taking issue with your insistence that it was somehow impossible for anybody else to foresee this.

Best of luck in life.

comment 1y ago · link · parent

It's one of the worst takes I've ever seen, and there are a lot of bad takes out there.

Even the premise of their argument is silly -- "evidence-based extrapolation" lmao that's not how politics work at all.

comment 1y ago · link · parent

It's insanely naive to have thought a second Trump admin would not be worse in every possible way. Did you pay attention at all to what was going on with SCOTUS? Project 2025?

Saying "there wasn't any evidence" is borderline bot-speak. Anybody who thought Trump 2.0 was going to be like the first round was simply not paying attention at all and anybody telling others it wasn't going to be like the first admin is either a Russian troll, the mainstream media, or just plain irresponsibly ignorant.

"Nobody could have foreseen this" is about the dumbest take I think I've seen so far.

comment 1y ago · link · parent

Not sure why you're being downvoted -- large, legacy, untyped Python projects are a nightmare to work with.

comment 1y ago · link · parent

Scientists are so adorable

comment 1y ago · link · parent

> edit: I think I read HN comments more than HN articles. Interesting

Nothing wrong with that, in my opinion.

I always check comments first before clicking the link, unless it's something I'm knowledgeable about and/or interested in and already know I want to read. It saves a lot of time.

12345
8