Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
mcronce
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
21 ms
·
271.
▲
by
mcronce
4y ago
It requires several additional lines of code just to bubble up an error, for starters, and there's nothing stopping you from ignoring errors and continuing with what could easily be corrupt data.
272.
▲
by
mcronce
4y ago
"Bubbling up" is common parlance for "exit this function early and return the error we got from our callee" (or "wrap the error we got from our callee and return that") In Go, this looks like thing, err :=
273.
▲
by
mcronce
4y ago
I guess it's better than, like, burning something specifically for the purpose of capturing CO2 to put in a tank on the railways...but has anybody ever actually proposed that?
274.
▲
by
mcronce
4y ago
In this case, yes, obviously. But as far as "it's likely easier for them to contribute scraping than write a bunch of code to integrate with your API", that presupposes no existing integration.
275.
▲
by
mcronce
4y ago
It wasn't the only reason, but -O0 was a contributing factor. -O2 alone improves things, but doesn't bring the frame rate in DDD up to 30
276.
▲
by
mcronce
4y ago
Writing a scraper for a webpage is typically far more development effort than writing an API wrapper
277.
▲
by
mcronce
4y ago
I usually use `thiserror` for errors, but all that is is a shortcut macro for `impl Error` and `impl Display`
278.
▲
by
mcronce
4y ago
Demand would be a lot higher if the leaded alternative weren't allowed.
279.
▲
by
mcronce
4y ago
This is only the case* when there is actually something to be gained by specializing the implementation of a data type or function for a given type. In my experience that isn't particularly common. * Excluding Go's implementati
280.
▲
by
mcronce
4y ago
Transphobia, much like homophobia, refers to an ideology, not an actual fear. Nice try getting on your prescriptivist high horse, though.
281.
▲
by
mcronce
4y ago
In addition to not being the same as getting through the night, it's far from the same as getting through several cloudy days in a row. Energy sources that work when they want to will never replace energy sources that work when you t
282.
▲
by
mcronce
4y ago
> This is a commonly made point, but is misleading. The historical usage is for a hypothetical or unknown referent not a specific, known person. This seems less like a material distinction and more like something that transphobic people
283.
▲
by
mcronce
4y ago
How is this a gen Z thing? Singular "they" has been around as a gender-neutral pronoun for, literally, hundreds of years.
284.
▲
by
mcronce
4y ago
You have every right to think whatever you want. You, again, don't get to decide for them who/what they are.
285.
▲
by
mcronce
4y ago
Yes, it does. You don't get to decide for other people who or what they are.
286.
▲
by
mcronce
4y ago
> It's very expensive to get regulatory approval for new engines and even more so to then get approvals to retrofit them to legacy or historical aircraft. "The problems caused by rules we oppose upon ourselves are so bad that w
287.
▲
by
mcronce
4y ago
Uncle and Auntie won't understand that they aren't part of my library, and will complain when something goes wrong with them despite the fact that they're beyond my control. As the person who owns and operates the service, I
288.
▲
by
mcronce
4y ago
Fusion research has not received anything even remotely resembling "all the $Billions in the world"
289.
▲
by
mcronce
4y ago
> Once Jellyfin gets intro skipping I think I'll be switching. I like that feature a lot, but the big one I'm waiting for is Quick Connect on the Roku app so I don't need to choose between highly secure passwords and the a
290.
▲
by
mcronce
5y ago
I'm with you. I definitely miss having an office to go to. Would I take a job that required me to be in the office every day? Almost definitely not. Would I sacrifice a bit of pay if it meant working for a company local enough that
291.
▲
by
mcronce
5y ago
Class actions do virtually nothing to make individuals whole.
292.
▲
by
mcronce
5y ago
Not that that stops companies from making you believe arbitrary modifications will wholesale void your warranty. The crackdown on "warranty void if removed" stickers is better than nothing, but your rights don't mean a thing
293.
▲
by
mcronce
5y ago
Even transforming an error is taken care of by ? func()? desugars to (more or less) match func() { Ok(v) => v, Err(e) => return Err(e.into()) } I'm also not really sure what the complaint is. Go does
294.
▲
by
mcronce
5y ago
"Worse than" lol
295.
▲
by
mcronce
5y ago
To be fair, "because the market will pay it" is entirely the correct answer. It's certainly not interesting , but it is correct
296.
▲
by
mcronce
5y ago
Why would that be awful?
297.
▲
by
mcronce
5y ago
FWIW, I'm fairly sure this is the assembly syntax used by Go - the author may not have made a decision to use this vs another
298.
▲
by
mcronce
5y ago
I do it frequently. It is indeed easy
299.
▲
by
mcronce
5y ago
I'm a huge fan. It's very little work to use, as long as all variants can be known to the author, and as long as you aren't in a situation where uncommon variants drastically inflate the size of your common variants, it'
300.
▲
by
mcronce
5y ago
Are Result and Option really the only thing? Because nesting scopes based on Err/None is rarely the right choice, just like nesting a scope based on `if err == nil` isn't typically something you want to do in Go, or `if errno ==
More ›