Hacker Newsnew | past | comments | ask | show | jobs | submit | eastbound's commentslogin

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.

Thank you for your kindness,I feel exciting to communicate with people from different culture.

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 not true in any sense that LLMs "give the average words for every answer"

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.

That's literally what an LLM is.

They predict what the most likely next word is.


That's wrong and even if it were not wrong, it would still not fix the problem. What if the most likely response is "kill yourself"

'Predicts the most likely tokens' is not the same as 'pulls people towards normality'.

Try reading the article. ChatGPT did no such thing.

It will happily validate you toward any deep hole or extreme you want to. It is as bad or even worst then social media in that regard.

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?


Definitely not a bot (you can check my comment history) and I can recommend Kagi.

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.

Happy user of kagi for several years. This is the opposite of my experience. Your comment strikes me as dishonest.

I am also very happy with Kagi's search result and suspect that someone is just trolling.

Holding an opinion like “everyone apart from me is a shill or an idiot” is not an attractive quality in a human.

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]

1. http://www.miamiherald.com/news/local/community/gay-south-fl...


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.

> While there are many Instagram users who pretend to be above 18

Do you support robust and mandatory age verification to enforce existing rules on social media websites, like Instagram?


What? What’s the relation between your question and being safe while consuming ok-content?

I said “deemed”. The judge can decide anything even if the user really is above 18.

Not even to ask how you enforce age verification of characters in a drawing?


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.


Spreadsheets aren't going anywhere, Google Sheets is widely used by 20-something people at my work.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: