

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’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?
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.


Pretty much every time I go to one of the local grocery stores I see a crew of firefighters roll up in their truck buying food.


I just link people to good posts I find on here.
You’re not going to get a typical apathetic person to change anything.


know your rights! All three of them!
You have the right not to be killed
Murder is a crime!
Unless it was done by a police man…
The clash from 1982 still timely


“There must be in-groups that the law protects but does not bind, and out-groups that the law binds but does not protect.” That’s all it is. That’s all it’s ever been.
They are worse than villains from a child’s story.
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.