

Conservatives don’t care about truth or internal consistency. They just want to harm the out-group.


Conservatives don’t care about truth or internal consistency. They just want to harm the out-group.


It is! I spent a lot of time manually cleaning up the CSV, and there were still problems.
Apparently there’s some other way to export data that’s not horrible but I’m not authorized to use it for some reason.
I work at a big company with very weak testing culture.


At my job I have to use this “SAP” software and I think it’s the worst professional software I’ve ever used. The dates export as three pairs of two digits. No indication of what’s what. The numbers export with commas, so like “1234” comes out in the csv as “1,234”. I hate it. It also mangles some other data so like “0000” turns into “” for some reason.
It’s not really that different from like
my_get_mock = Mock(side_effect=Some exception("oh no"))
result = some_func(http_getter=my_get_mock)
There’s many ways of writing bad code and tests, but mocks and patches aren’t always a bad tool. But sure, you can definitely fuck things up with them.
Javascript has mocking with jest: https://jestjs.io/docs/mock-functions
There’s an example there of mocking our axios (a common library for network requests, a la python requests)
It’s been a long time since I’ve used java, but mockito exists: https://site.mockito.org/javadoc/current/org/mockito/Mockito.html#2
(Usage note for anyone unfamiliar, but despite the name java and JavaScript are radically different languages.)


If there’s any justice, everyone who works for Palantir will be lined up next to everyone who worked for ICE.
I vaguely remember Java also has mocking libraries, as does JavaScript. (Though JavaScript isn’t a language I’d hold up as the ideal.)
with patch("some_file.requests.get", side_effect=SomeException("oh no")):
result = func_using_requests()
Though not every language makes mocking as easy, and multiple responsibilities in a single function can quickly get messy.
I used to be better at math and coding. If I pulled up my old project euler solutions I’m not sure I’d understand them anymore.
It goes into your subconscious.


Oh, that’s an idea. Unfortunately my work has no union. Tech is full of rugged individuals.


I used some AI at work to do some stuff in polars, because I don’t really know that library very well.
As a result I have a function that does what I asked for (I wrote tests), but I don’t understand it and didn’t really learn anything. Not a great trade.
I broke a player’s brain in college playing DND where an NPC just lied to her.
She’d asked where so-and-so was. NPC didn’t like her or her faction, so he just lied and said he’d taken up boxing. This isn’t an especially credible lie because so-and-so was a lightweight nerd. But she says okay and goes tearing up the local boxing clubs, and can’t find the guy.
She’s like “where is he?”
Me: “you don’t see him, and no one’s even heard of him.”
Her: “but the guy said he was here”
Me: “he did”
Her: “so where is he”
Me: “doesn’t look like he’s here”
Her: “but he said he was”
Me: “he did say that”
Her: “so why isn’t he here?”
This went on for a while until one of the other players got impatient and said “the guy who doesn’t like you maybe lied to you! Or was wrong! Can we move on please??”


Is it better to skip work entirely or go and just goof off? Probably the former?
Do you think the people that send junk like “hi” or “quick chat?” get annoyed when they’re the recipient? Or they just think it’s normal?


Fuck cars. I’d be pissed if I lived there
I don’t have any useful advice but I’m sorry for your frustrations. It’s okay to be sad about it!
I feel like this topic somehow aligns with the form of a 2017 Twitter screenshot posted on tiktok posted on Lemmy.


At one of the bigger groceries I’ve been to, the wheels would lock up if you got too far from the store. Well, we’d parked outside that range so the wheels locked up and I had to awkwardly drag the full cart to the car.
Being a good person, I went to drag it back to the return spot. The wheels did not unlock. Dragged it all the way back anyway.
But given this, I can see why someone might just abandon their cart if the wheels are locked.
The young adult and youth experience in the UU church was pretty great. Less church-y, more interactive. I made a lot of good friends when I was younger there.