HNHacker News
TopNewBestAskShowJobs

devnullbrain

1,889 karma · joined November 25, 2022

submissionscomments
devnullbrain··on Error handling in Rust
>This means, that a function will return an error enum, containing error variants that the function cannot even produce. If you match on this error enum, you will have to manually distinguish which of those variants are not applicable in your current scope

You have to anyway.

The return type isn't to define what error variants the function can return. We already have something for that, it's called the function body. If we only wanted to specify the variants that could be returned, we wouldn't need to specify anything at all: the compiler could work it out.

No. The point of the function signature is the interface for the calling function. If that function sees an error type with foo and bar and baz variants, it should have code paths for all of them.

It's not right to say that the function cannot produce them, only that it doesn't currently produce them.

devnullbrain··on More on Apple's Trust-Eroding 'F1 the Movie' Wallet Ad
I can do better than that. Uninstall it.

It's a 600 MB app and you can log back in using only the iOS password manager. Reinstall it when you need to use it.

devnullbrain··on New Linux udisks flaw lets attackers get root on major Linux distros
>20 years ago

So while Windows was letting everyone be root?

devnullbrain··on How to negotiate your salary package
Yes. If advice can't be followed, it's probably just bragging.
devnullbrain··on How to negotiate your salary package
It's bad, but it's not impossible. I got an improved offer from one company when I told them I was going to accept another company's offer. And then I accepted the other company's offer, because it was the best move in my career. I've ended up with some surprisingly rare skills that end up being desirable to some niche companies.

So I won the negotiation game with the first company by truly not wanting the job. And I got the rational desired outcome of negotation with the second, by having the right skills and right luck at the right time.

None of us would be feeling pessimistic about our career prospects if we had OpenAI experience.

devnullbrain··on Klein Bottle Amazon Brand Hijacking (2021)
Even small claims?
devnullbrain··on Klein Bottle Amazon Brand Hijacking (2021)
Rubbing alcohol is also cheap enough that the 'free shipping' is really just being included in the price.
devnullbrain··on What Google Translate can tell us about vibecoding
Archived in 2024
devnullbrain··on Bento: A Steam Deck in a Keyboard
Valve already failed with Steam Machines. There's not a compelling enough reason for them to split production of the Deck into two divergent streams with lesser economies of scale.

Also, 'just' the deck in a box still needs the same regulatory approval.

devnullbrain··on The Missing 11th of the Month (2015)
The technical constraint still applies. My keyboard uses ' ' and '-' to represent many different symbols.
devnullbrain··on What Google Translate can tell us about vibecoding
>All this is not to say Google Translate is doing a bad job

Google Translate is doing a bad job.

The Chrome translate function regularly detects Traditional Chinese as Japanese. While many characters are shared, detecting the latter is trivial by comparing unicode code points - Chinese has no kana. The function used to detect this correctly, but it has regressed.

Most irritatingly of all, it doesn't even let you correct its mistakes: as is the rule for all kinds of modern software, the machine thinks it knows best.

devnullbrain··on Apple's Liquid Glass is prep work for AR interfaces, not just a design refresh
Designing all the slow animations that are required for maintaining the kayfabe of shells that depend on desk analogies.
devnullbrain··on Apple's Liquid Glass is prep work for AR interfaces, not just a design refresh
I find it surprising that skeumorphism is popular here: the rationale is the opposite of the rationale for power-user desktop UIs.

I suppose it's easy to grok what the newsstand is[1], but I'm not convinced it would matter after the first five minutes.

[1] Because I've seen it in US media, along with the route symbol on the maps icon and the fire hydrants that are in captchas.

devnullbrain··on Apple's Liquid Glass is prep work for AR interfaces, not just a design refresh
>which is going to be horrible for accessibility

My suspicion is this concern went the same way as DEI/ESG

devnullbrain··on Apple's Liquid Glass is prep work for AR interfaces, not just a design refresh
>Before Liquid Glass, your least intrusive option was backdrop blur or translucent pastel dimming overlays.

Or an outline, like gameboy emulators have been doing forever

devnullbrain··on Research suggests Big Bang may have taken place inside a black hole
But that sun has never been a pharoah of Egypt.

If the only common factor is a belief that 'something' created 'something', you're really not saying anything worth evaluating.

devnullbrain··on Compiler Explorer and the promise of URLs that last forever
>despite Google solemnly promising that “all existing links will continue to redirect to the intended destination,” it went read-only a few years back, and now they’re finally sunsetting it in August 2025

It's become so trite to mention that I'm rolling my eyes at myself just for bringing it up again but... come on! How bad can it be before Google do something about the reputation this behaviour has created?

Was Stadia not an expensive enough failure?

devnullbrain··on Microsoft is starting to open Windows Update up to any third-party app
No, it isn't restarted! See, all your browser windows are open and in almost the same place. Context? What's that? It always looked like this. You're crazy.
devnullbrain··on At Amazon, some coders say their jobs have begun to resemble warehouse work
I don't actually see which guideline it's breaking. It's a serious offer.
devnullbrain··on At Amazon, some coders say their jobs have begun to resemble warehouse work
[flagged]
devnullbrain··on At Amazon, some coders say their jobs have begun to resemble warehouse work
[flagged]
devnullbrain··on Is TfL losing the battle against heat on the Victoria line?
In case you missed the 4 places it's made explicit in the graphs, or 'London' in the URL.
devnullbrain··on At Amazon, Some Coders Say Their Jobs Have Begun to Resemble Warehouse Work
Ok, but so is everyone involved with building the fulfillment centre, the sorting machines, the roads for delivery, the trucks, the railways...

If it sounds like I'm including a lot of jobs, it's because every non-service job in the history of the post-industrial revolution economy has revolved around making things more efficient. Software development is not some uniquely evil domain.

devnullbrain··on At Amazon, Some Coders Say Their Jobs Have Begun to Resemble Warehouse Work
Web devs are a tiny proportion of the employees needed for e-commerce.
devnullbrain··on At Amazon, Some Coders Say Their Jobs Have Begun to Resemble Warehouse Work
Same goes for a truck driver, road builder, railway worker, etc.

FWIW, I spent many years as a cashier. It's not something I find inherently more valuable to the world. If we could trust people not to steal, we wouldn't need them.

devnullbrain··on At Amazon, some coders say their jobs have begun to resemble warehouse work
So would it be poetic justice when an electrician gets laid off?
devnullbrain··on At Amazon, some coders say their jobs have begun to resemble warehouse work
The person the headline refers to is a webdev. What job is that getting rid of?
devnullbrain··on At Amazon, some coders say their jobs have begun to resemble warehouse work
This is the message between the lines of much of the anti-dev schadenfreude, but actually spelling it out makes it obvious: it's not true.

Only a minority of dev jobs are automating people out of work. There are entirely new industries like game dev that can't exist without it.

Software development has gained such a political whipping-boy status, you'd be forgiven for forgetting it's been the route to the middle classes for a lot of people who would otherwise be too common, weird or foreign.

devnullbrain··on EU ruling: tracking-based advertising [...] across Europe has no legal basis
>which is most Tech revenue

Not true

https://fortune.com/ranking/global500/2023/?sector=Technolog...

devnullbrain··on EU ruling: tracking-based advertising [...] across Europe has no legal basis
A number of news websites have started to make you choose between accepting cookies for free or paying to reject cookies
← PreviousPage 6 of 25Next →