1,889 karma · joined Nov 25, 2022 (4y ago) · 747 submissions
comment 1y ago · link · parent
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.
comment 1y ago · link · parent
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.
comment 1y ago · link · parent
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.
comment 1y ago · link · parent
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.
comment 1y ago · link · parent
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?
comment 1y ago · link · parent
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.
comment 1y ago · link · parent
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.