Peter Bindels

430 Followers
294 Following
4.2K Posts

[2016] Mocking Framework Expectations

https://chrisoldwood.blogspot.com/2016/06/mocking-framework-expectations.html

More time wasted debugging an intermittently failing unit test caused by a mocking framework trying to be “helpful” instead of screaming that a dependency wasn’t explicitly configured 🤷‍♂️.

#StrictMocksByDefault

Mocking Framework Expectations

Tales of a computer programmer.

Every time a newcomer posts an introduction and somebody tells them they shouldn’t have joined Mastodon.social and need to move to a different server, an angel loses their wings.

Ditto:

'Why are you still on Bluesky too?'

'But did you *delete* your Twitter account?'

’You said you switched to Proton mail too, oh that’s bad, once someone at Proton said something’

It’s nice to see new neighbours move into the Fediverse. It feels unwelcoming to see people immediately interview them about the purity of their intentions. Or telling them You’re Doing It Wrong. They've just arrived on a journey away from Big Tech. Maybe they'd prefer to be offered a seat and a cup of tea.

Just seen someone saying they support bans on trans healthcare for under 18s because “let kids be kids”.

By the time I hit puberty, I had KNOWN for a decade.

I also knew that telling anyone would be profoundly dangerous.

So I hid who I was and, am almost grateful that the neurodivergence gave the other kids something else to latch on to. They were so busy calling me a “mong” that they didn’t notice I was trans.

Because that might have got me murdered.

Or pushed me into a position where I felt I had no options other than the same end result.

So I hid it.

And I hid it really well.

And one of the things that happens when a 5 year old child is terrified of their parents, or their families, or the school bullies finding out who they really are is that they end up traumatised.

A 5 year old child. Traumatised and ashamed.

Ashamed because adults openly talked about them.

Or people like them.

And what they said was horrific. What they said made it very clear that they would regard their own kids as subhuman monsters if they ever found out.

So we hid. And an important part of ourselves died in childhood. A light that should have shone, went out.

I’ve tried my best to rekindle it.

I’ve managed somewhat but it will never be right. Not really. I’ve made peace with that.

“Let kids be kids”. Trans kids like me never got to be.

Because of people who say things like that.

What is the most hairy x86 opcode you know? Best I could think of was some rex prefixed sib indexing thing. I got add with sib for flag meddling, and idiv for register load/unload shenanigans.

There's a "Wayland set the Linux desktop back" blog going around now and ... it just makes me so tired.

That take is so amazingly wrong, but so persistent and popular. It is the "immigrants took mah job!" of takes for software. It is so flawed in so many different ways, and utterly ignores the host of actual reasons that Linux has stalled on the desktop.

It is apparently seductive, too, because it offloads the blame entirely on the crew developing Wayland without the person casting the blame considering for even a second the actual complexity of the problems. I could literally write a book on the reasons that the Linux desktop hasn't caught on; and I would, too, if I thought people would actually buy it and read it (a lot of people, I mean - enough to justify writing a book...)

But it boils down to this: Linux desktop development doesn't have more than a tiny, tiny fraction of the funding per year that Microsoft or Apple spend on marketing a single product line. Much less the kind of funds that go into R&D.

Vendors, mostly, are disinterested in supporting an OS that has less than 10% market share. At times they have even been actively dissuaded from doing so by certain other companies...

Users are, by and large, not willing to deal with inconvenience or having to learn new things in order to adopt the Linux desktop, even though the two main vendors are constantly making the user experience worse and continually taking away control of our own devices.

Wayland? It's a convenient scapegoat.

I'm not, by the way, arguing that Wayland is perfect, or that the community behind it has executed everything perfectly. And I'm certainly not arguing that people haven't had bad experiences with Wayland; that hasn't been _my_ experience, but I also have been using Linux for 30 years now -- and I choose hardware based on its Linux compatibility. I also have different expectations from a desktop than someone who has used Windows or macOS most of their life.

OK. Rant over. Be nicer to the Wayland folks. Stop blaming them for everything. In fact, let's maybe consider that what would really be useful is constructive takes on how we can succeed from here.

How do you feel about the impending lockdown of Android?
Good, it is necessary for our safety and security
OK, I trust Google to prioritize user interests
Bad, it is an attempt to take complete control
Terrible, this is the end of software freedom
Poll ends at .
Paris now has a cycling network bigger than Amsterdam and “more daily trips in Paris are now made by bike than by car”. https://www.economist.com/europe/2026/03/12/in-pariss-mayoral-race-its-drivers-against-cyclists
In Paris’s mayoral race, it’s drivers against cyclists

A decade of greening leaves the capital less congested but more divided

The Economist

"And some people say 'These people, they're not even trying to be British. They come here, they bring their own culture, their food, speak their own language, and try to take over the whole bloody place.'

Dunno. Sounds pretty British to me."

~Trevor Noah
😂

Finally, a real use case for JavaScript