HNHacker News
TopNewBestAskShowJobs

BoiledCabbage

6,885 karma · joined March 26, 2017

submissionscomments
BoiledCabbage··on Stepping down as Mockito maintainer after ten years
The whole mocks, fakes and the rest were always a terrible idea. Although people didn't realize it st the time, they were a band-aid to try to make poorly architected code testable.

90% of the time, needing to use a mock is one of the clearest code warning smells you have of there being an issue in the design your code.

It took a while, but the industry seems to be finally (although slowly) coming to this realization. And hopefully with it almost all of this can go away.

BoiledCabbage··on No shares in company, but 550 employees received a $240M gift from their owner
> It's really common for people with sudden windfalls to lose it all.

5% of people isn't "really common". Estimate of 1% of US adults declare bankruptcy within a 5 year period (based on ending in July 2025 and right now is a very low period). 2010 a peak it was likely closer to 3% of adults.

It is rightfully calling it a false trope of "Only rich people deserve money. We should prevent others from getting it".

BoiledCabbage··on Show HN: Books mentioned on Hacker News in 2025
> I'd assumed HN skewed heavily technical but seeing 1984, Dune, and Foundation in the top mentions suggests the community has broader reading habits than stereotypes suggest.

Seeing 1984, Dune, Foundation as the top fiction is about as on-brand and unsurprising as it gets. I don't I could pick more expected fiction except for some popular cyberpunk and something from LOTR.

Throw in a hitchhikers guide, zen motorcycle and something from Feynman and you've covered all the bases.

BoiledCabbage··on Measuring AI Ability to Complete Long Tasks
What agent framework are you using? It can differ from one to the next on the same model.
BoiledCabbage··on 'Ghost jobs' are on the rise – and so are calls to ban them
> There is absolutely not a one to one relationship between a job and a job ad.

Sounds like you've figured out exactly the problem then. If you're advertising for a job and there isn't a job then you've got a problem.

BoiledCabbage··on Working quickly is more important than it seems (2015)
You can practice with two balls, sound the same motions you would with three. And if you really want to focus you can practice making a consistent toss with one ball. Two is probably better bang for the buck.
BoiledCabbage··on Americans overestimate how many social media users post harmful content
Yes, but as soon as scammers find their current methods ineffective they will swap to VPN and find a way to get "in country" phone numbers.

There is a fundamental problem with large scale anonymous (non-verified) online interaction. Particularly in a system where engagement is valued. Even verified isn't much better if it's large scale and you push for engagement.

There are always outliers in the world. In their community they are well know as outliers and most communities don't have anyone that extreme.

Online every outlier is now your neighbor. And to others that "normalizes" outlier behaviors. It pushes everyone to the poles. Either encouraged by more extreme versions of people like them, or repelled by more extreme versions of people they oppose.

And that's before you get to the intentional propaganda.

BoiledCabbage··on Ask HN: Is building a calm, non-gamified learning app a mistake?
I think the point is people are well aware that living in a country that speaks the language is a great way to learn a language.

The point was what's the best way to learn a language other than by having an entire country surrounding you dedicated to that language? Many / most people can't pick up their life for a year to learn a language. People have work, people have families, people have local commitments.

BoiledCabbage··on Ask HN: How can I get better at using AI for programming?
> It's technically deterministic, but it feels nondeterministic in chatbots since tokens are randomly sampled

Are you not aware the random sampling makes something non-deterministic?

BoiledCabbage··on Google releases its new Google Sans Flex font as open source
It's funny I thought out a post, wrote it in my head and then scrolled a bit further and read (where you wrote it). The only difference was I choose upper-case "G" and making it a "C" instead of "J" to "I". We can also make it match open paren as well.

But yeah this whole thing seems absurd of removing the distinguishing marks on things whose only purpose is to allow us to distinguish them.

While were at it N can become \ and M as well. D can become close paren. Q can become O.

And entire font of just vertical bar, horizontal bar, open paren, close paren, forward slash, backslash and a circle. Just think of how clean it would look...

BoiledCabbage··on The Nova Programming Language
I thought it was SNOBOL I was thinking of, but then I looked up the SNOBOL syntax and that wasn't it. Then I thought maybe REBOL but that wasn't it either. Following up from a comment below it was Eve that it seemed more similar to me (at least at first view).

And also replying to one more comment below. Modal on the developer June's website reminds me of Maude. If feel like term re-rewiting languages have a really cool idea in then that are just waiting to take off. Funny enough I think Maude also has a pattern matching system like Nova. although it's I believe an unordered bag of terms to match against instead of an ordered stack.

BoiledCabbage··on The Nova Programming Language
While I'm not clear on how it scales to more broader problems, it's nice to see a somewhat novel idea in programming languages vs the same rehash of algol derived languages.

I do think I've seen something similar. A language mainly driven off of pattern matching, but I don't recall where. Does anyone know of prior art? Or is this completely novel?

BoiledCabbage··on A two-person method to simulate die rolls (2023)
Yup
BoiledCabbage··on Kenyan court declares law banning seed sharing unconstitutional
> where trace amounts of our patented seeds or traits are present in a farmer’s fields as a result of inadvertent means.

That sounds like a very hollow commitment to me. Who defines what "trace" is. Monsanto?

And what is the normal cross pollination rate from doing nothing. 1% 5%? It sounds like it just means we won't sue you the first year, we'll wait until the second year then sue you.

The practice needs to be banned. It's Monsanto seeds that are spreading their genetics in the wind. If they don't want that, then make crops that can't. If they're unable to, then tough.

Saying nobody within pollination range can grow their own crops anymore once someone nearby purchases Monsanto seeds is absurd.

That's all aside from the fact that patenting things that reproduce still is somewhat of a weak concept to begin with.

Putting an absurd tech spin on it. If you made a robot/machinr that could replicate itself sure patent it. If you made a robot that sent out radio waves and every machine within receiving distance could/would suddenly replicate, you can't sue those owners for "stealing your technology".

BoiledCabbage··on Programming peaked
> I promise when I’m old, I will not have this attitude.

To my ears this is a hilariously naive statement. It sounds to me to be roughly the equivalent or a 7-year old saying "Adults have boring jobs where they sit at a desk all day. I hate it. I promise when I'm old I'm gonna be an Astronaut or play Major League Baseball."

It's not that they don't mean it, it's that one should make promises about a situation they can't yet understand. While some of those kids probably did end up being astronauts or baseball players 99%+ who made that promise didn't. It turns out that being an adult gives them perspective that helps them realize the reasons they want a desk job even if they don't like it, or for many they actually enjoy their desk job (ex they like to program).

So the same if a million young people all thought similarly, and then magically changed their view when they got there dont promises your going to be the one who will break the streak.

You might turn out to be an astronaut, but many people listening, based on good previous evidence will rightly assume you won't.

BoiledCabbage··on Bringing Sexy Back. Internet surveillance has killed eroticism
> If something falls out of the center of the normal distribution, it's by definition abnormal. Once again, that doesn't make it bad per se. But trying to police perfectly good words just makes people become more antagonizing to the position you want to defend.

I mean why do people even post something like that? It takes 2 seconds to look up the definition of abnormal. It's it really not knowing, it's is it (what I believe) trying to sneak in their moral judgements behind a veneer of supposed "neutrality"?

> Abnormal - deviating from what is normal or usual, typically in a way that is undesirable or worrying.

BoiledCabbage··on Claude Advanced Tool Use
Between this:

> In the end I want to drop objects into context with exposed methods and it knows the type and what is callable on they type.

And this:

> I'm imagining something more like Rexx with quite high level commands. But that certainly blurs the line between programming language and shell.

It really sounds like you're trying to reinvent powershell.

A shell A Scripting language Everything is a self describing object Piped on the shell With exposed methods to call

BoiledCabbage··on Three Years from GPT-3 to Gemini 3
> Giving more money would bring in better teachers, but I don’t know that they’d be able to overcome the other obstacles

Start with the easiest thing to control? Of giving more money and see what it does?

We seem to believe in every other industry that to get the best talent pay a high salary salary, but for some reason we expect teachers to do it out of compassion for the children while they struggle to pay bills. It's absurd.

Probably one of the single most important responsibilities of a society is to prepare the next generation, and it pays enormous return. But because we can't measure it with quarterly profits we just ignore it.

The rate of return on providing society with as good education is insane.

BoiledCabbage··on China's CO2 emissions have now been flat or falling for 18 months
Just own goal, after own goal, after own goal by the current US political party in power.

While China proceeds to lap us doing what they party insisted was economically infeasible if not impossible. Investing in cutting edge technologies, gaining energy independence, and leading the world in manufacturing growth.

And instead of investing in the future, building better products and tech, and out competing the world, all we've heard from the past decade+ is protectionism for oil interests and tariffs for industries.

Such backwards thinking, while China is an existence proof of what they claimed couldn't happen.

Such lost opportunity for no good reason at all. This country is going to hate being so weak in the international stage, but it's almost inevitable given its domestic choices.

BoiledCabbage··on The Banished Bottom of the Housing Market
Boarding house likely.

https://en.wikipedia.org/wiki/Boarding_house

BoiledCabbage··on Presidential executive order would ban all state AI regulation
He is so blantly not a conservative. So with a 41% (tho falling) approval rating, the bigger question is: did those who claimed to believe in it really give up their principles so easily? Or never really believe in them to begin with?
BoiledCabbage··on C# 14
Interesting, are extension methods a backdoor way to typeclasses in C#? If so that'd be fascinating to see.

If the extension method implements and interface, and any existing type can be extended via that interface it seems like you get that functionality right? Or am I missing something?

BoiledCabbage··on An overly aggressive mock can work fine, but break much later
The mock discussion still misses the real solution, which is to refactor the code so that you have a function that simple reads the file and returns json that is essentially a wrapper around open and doesn't need to be tested.

Then have your main function take in that json as a parameter (or class wrapping that json).

Then your code becomes the ideal code. Stateless and with no interaction with the outside world. Then it's trivial to test just like and other function that is simple inputs translated outputs (ie pure).

Every time you see the need for a mock, you're first thought should be "how can I take the 90% or 95% of this function that is pure and pull it out, and separate the impure portion (side effects and/or stateful) that now has almost no logic or complexity left in it and push it to the boundary of my codebase?"

Then the complex pure part you test the heck out of, and the stateful/side effectful impure part becomes barely a wrapper over system APIs.

BoiledCabbage··on Entrepreneurs don't have a special gene for risk, they come from families with m (2015)
> In my mind, the line for middle class is how long you can pay your bills at without working. If you've got enough money that the answer is a while, then you're rich. If you have so much that you're able to fund other people's dreams, then you're wealthy.

If someone has a $10M/yr salary, but chose to buy a mansion and their income can only cover their bills for a few months they are still "rich" (using your term). Or "upper income" / "not middle-class" using more standard terms. I mean it's great you have your own definition, but that doesn't really make it apply generally.

BoiledCabbage··on Entrepreneurs don't have a special gene for risk, they come from families with m (2015)
> The few that I know for a fact come from exceptional money

The article is not about people "coming from exceptional money". And I bet a lot of the people you are assuming are "middle class" aren't actually middle class.

There is a really bad habit in this country of assuming that you can have money, but unless you are "movie star rich" then you are middle class. That's not the case.

A lot of people work for a living but are not middle class (nor are they CEOs of fortune 500 companies).

More specifically a lot of the people reading HN right now likely fall into the category the researchers talk about. If you work in tech there is a very, very good chance you are not middle class. Just because you don't think of yourself as rich doesn't make you middle class.

It's something that being in an echo chamber of tech that people easily forget.

Someone can go look up a more precise definition, but if middle class were the middle 50th of household incomes, then if you have a household income (not individual, but combined AGI) that is > $100k you are not in the middle-class.[1] That doesn't mean you have multiple yachts, or act privileged or have exceptional money. It simple means (by that definition) you aren't middle class.

And before someone replies with it, "Cost Of Living" arguments do not change this substantially at all. Look at the AGI tables below, many people who think of themselves as middle class, are not. And if you're on HN reading that post, with a US job in tech, there is a good chance that includes you.

[1] Income in the United States - https://en.wikipedia.org/wiki/Income_in_the_United_States

BoiledCabbage··on Elon Musk's $1T pay deal is a troubling display of corporate capture
> Shareholders voted for it. Don't understand how the will of Tesla Shareholders is a corporate governance failure... couldn't read the rest of the article behind paywall, but the premise seems so borked that I'm not going to bother.

Sounds like a failure on to think critically.

The board consists of long time friends of Musk's, people who are heavily invested in his other companies (and so have and want to continue maintain their positive relationship with him), and his brother.

It's not that the board can't vote, it's that the board isn't remotely independent. And according to the WSJ A number of members of the board have hung around many late nights doing drugs with him.

And to be clear it's that that their doing drugs, it's that if you're close enough with someone to be regularly doing hard drugs with them you clearly aren't independent.

BoiledCabbage··on AI isn't replacing jobs. AI spending is
> Jobs that have a high 0-1 component will still be in the US but jobs that are more 1-n may be offshored.

It used to be (since at least mid last century) and 0-1 and 1-n jobs were focused here. The world becoming smaller allowed a lot of 1-n jobs to move abroad. But we kept 0-1 jobs here.

That used to be the situation when the country brought people from around the world to be educated and then start business here. And historical precedent allowed us to continue thise advantages by having a reputation for it and continuing to support it. Our country for some reason now has decided it no longer wants to take the actions that fill the pipeline for 0-1 innovation.

And the world just like it took over 1-n is going to take over 0-1.

Why you would choose catalyze that change as an American, I have no idea.

I think there are people that generally believe that there is magic dust that says it can only happen on US soil instead of there being structural actions taken to enable it.

We will all very quickly learn that 0-1 can be anywhere that 1-n is.

BoiledCabbage··on Grok 4 Fast now has 2M context window
Nothing you posted (from an almost two year old article btw) in anyway refutes the prior comment.

Grok is significantly the most biased. Did you sleep through its continuous insertion of made up stuff about south africa?

This is the same person who is trying to re-write an entire encyclopedia because facts aren't biased enough.

A group has created an alternate reality echo chamber, and the more reality doesn't match up the more they are trying to invent a fake one.

When you're on the side of book banning and Orwellian re-writing of facts & history that side never turns out to have been the good side. It's human nature for some people to be drawn to it as an easy escape rather than allowing their world views to be challenged. But you'd be pretty pressed to find the group doing that any of the times it's been done to have been anything but a negative for their society.

BoiledCabbage··on NY school phone ban has made lunch loud again
> In 2020, school systems in the United States began to close down in March because of the spread of COVID-19

I definitely know who was president in March of 2020. Before they lost their election 8 months later.

Somehow it seems a lot of people don't.

BoiledCabbage··on How I use every Claude Code feature
Confirm on a new clone that if you modify a file that the other is updated.

I thought git by default treats symlinks simply as file copies when cloning new.

Ie git may not be aware of the symlink.

← PreviousPage 4 of 34Next →