I’ll answer: Nothing specific to Mockito, it happens in every language. Tests “solidify” code which makes refactoring hard. And yet, after refactoring, one can be happy to have tests to check whether there is any regression.
Testing is hard. I’ve tried with AI today: No, it is still not capable of handling that kind of (straightforward) task (Using Claude).
They also encourage/enable code that is less testable. If you use mockito to get your fake responses/assertions where you need them, you don't have to think about your class's dependencies to make your code testable and therefore better decomposed. I don't even do TDD, but I still find that thinking about how I'd test a class guides me toward better-factored code.
One alternative to make code with typing styles in the Java way (as opposed to the Typescript or Go way) is to have a whole lot of custom interfaces and then you end up with a whole bunch of:
doTheThing(foo: Fooable) { ... }
when there's really only one Foo implementation in prod. It leads to (what feels like, to me) more code obfuscation in large projects, than the benefits that come out, at least for me.
So Mockito and friends are a nice alternative to that.
That is just my experience and opinion though, and there are definitely more valid or equally valid alternatives.
I don't think we have to choose. Naturally finding the "right division of labor" is as infinite as finding the "right level of abstraction", but I think the ideal situation is to strive toward code that is easy to test without having to introduce a lot of mocks or without infinite layers of abstraction.
Is it victim of the enumeration vulnerability, ie between 403 and 405 you can guess what they were busy with and therefore identify the activity? Or do they randomize the numbers, but then just 3 digits seems little for such a big country?
You’ve written more words in answers than in the original article. Thank you very much for giving us this privilege and providing “support” for details of your writings.
Yes. It pulls people towards normality, since it gives the average words for every answer. Meanwhile social media encouraged people to be different enough to surface, and therefore encouraged abnormality.
It's a over-simplification, that's for sure, one bordering on incorrect. But for people who don't care about the internals, I don't think it's a harmful perspective to keep.
It's harmful because in this context it leads to an incorrect conclusion. There's no reason to believe that LLMs "averaging" behavior would cause a suicidal person to be "pulled toward normal"
It's a philosophical argument more than anything I think. And it does beg the question, does your mind form itself around with the humans (entities?) you converse with? So if you talk with a lot of smart people, you'll end up a bit smarter yourself, and if you talk with a lot of dull people, you'll end up dulling yourself. If you agree with that, I can see how someone would believe that LLMs would pull people closer to the material they were trained on.
Kagi systematically doesn’t return any good answer whatsoever. It’s such an awful quality that I can’t imagine anyone seriously promoting it, therefore I bet these comments about Kagi are advertising posted by bots. It’s not possible otherwise.
I find it to be more reliably useful than the other non-Google alternatives I’ve tried. I find its “PDFs Only” filter to be awfully handy too. Proudly not a bot, but I freely admit that, because I pay for it and our incentives seem aligned, I’m biased toward giving it the benefit of the doubt.
Always open to new horizons, though—are there non-Google search products that you find to consistently work better?
I share the same sentiment. I know many people praise Kagi, and I respect the effort behind it too. I tried it for three months and realized it was not for me. Google works just fine for my needs.
Haha… no bot here. Been using Kagi for years now. Not sure what you‘re searching for. My own tests, admittedly early, found no instances, where Google gave better results.
Comparatively cheaper, no. Americans could afford a lot of things, but the average American home looked like Malcolm in the Middle, and not so much more fancy for the higher class. Meanwhile in 2025, people have immense furbished kitchen (I’m European so I always notice that in abs-training-bro-youtube-slop, I’m not talking about influencers here) and living rooms, order food deliveries all the time, and perhaps some americans could access the number of flights that we saw in movies like Die Hard (going from NYC to SF to see a wife), but that was unimaginable for Europeans. We’re seeing wealth levels that are unimaginable, and global poverty has receded so much that the UN overhauled their definition to redirect their efforts towards human rights rather than hunger.
No, the average 30 year old American owns far less than the average 30 year old American did in the 50s, 60s, 70s, 80s, and 90s. Owning a home in a safe community is what is most important, and most young men can't seem to get that. Things are getting worse.
Heck, I'll lower the bar! I'm (mid-30s American) not so worried about 'safe'. A certain amount of danger is fine. Desirable, even, if it meant I could live in my home town, not in an unfamiliar city.
I could buy half of a house, right now, cash. I don't, because the moment I do, I'll be forced to sell/move/whatever. Again. Where I am [for work] and where I want to be are forever at odds. Leaders have found it fashionable to bundle us all together. Spin the wheel and see if we hit RTO, let's bid against each other [again].
All to say, I'd give half my salary to never negotiate it or my location, again. Clearly not an option, so what to do? Endure and save. You won't see me buying toys or status symbols, that's for sure. At Will employment, meet At Will spending.
This is not woke, no matter how large you define woke. You can see links with the ACLU or various human rights defense groups, but those groups may have become woke, without “global surveillance” becoming a woke topic.
Wokism is about making racist accusations of dominance over an audience who didn’t do it. It’s about unfairness and hyping factions against each other. The global surveillance is not about pitting groups against each other. To wit, 1984 has always been a very right-wing torpe.
"Wokism" is an amorphous culture-war weapon that can be anything an author wants it to be. Diversity is woke, equity is woke, inclusion is woke, non-heteronomative relationships are woke, movies that are barely critical of unbridled capitalism are woke. Not being onboard with "law and order" is woke - and not being 100% onboard with Flock can be reframed as being pro-Criminal and "woke"
> global surveillance is not about pitting groups against each other.
And yet this is exactly how the surveillance companies sell their global surveillance tools. Ring, Flock are all about keeping an eye on "outsiders" - see Nextdoor for examples on how people justifying surveiling others.
Many gays (or “non-heteronormative” as you say) are anti-woke. You’re operating a dichotomy between your opponents and you, trying to paint them as sweeping generalizators. But this is not wokism. Wokism is when you take “gays” and attribute them to your side, painting the others as nazis.
I’m gay and the single most powerful harm that was made to my life was the emergence of wokism.
> Many gays (or “non-heteronormative” as you say) are anti-woke.
That doesn't mean other conservatives dont see gay rights and marriage equality as "woke". You just proved my point though, "woke" is the bespoke set of things you don't like.
Do you want links to the numerous instances of conservatives lumping the existence of gays with being "woke"? Or before they hijacked the term, derided the "gay agenda"? Even the Log Cabin Republicans cried uncle[1]
In addition to “drawing”, it’s also the loosely interpreted age that concerns me. Any drawing “deemed under 18” is just as criminalized as the actual crime. While there are many Instagram users who pretend to be above 18, many drawings of lewd acts, adding that the age is freely interpreted by judges… it’s a free field for general oppression.
That’s the best improvement to my life ever. I migrated from a normal-person rental to a million-dollars house, but to me the true luxury is, having someone to set the house back to impeccable state. I should have done that in my 42sqm flat.
Glad to see not only our financial infrastructure relies on wealth management agents’ skills at writing formulas, but our army also relies on our general commanders’ skills in Excel.
Funnily Excel is the tool of adults born in 1980; The next generation will only know Canva, so I guess we’ll have great infographics about battle fronts.
Testing is hard. I’ve tried with AI today: No, it is still not capable of handling that kind of (straightforward) task (Using Claude).
reply