You talk about “non-absolutist,” but this thread got started because the parent comment said “literally never.”
I am literally making the point that the absolutist take is bad, and that there are good reasons to call unwrap in prod code.
smdh
You talk about “non-absolutist,” but this thread got started because the parent comment said “literally never.”
I am literally making the point that the absolutist take is bad, and that there are good reasons to call unwrap in prod code.
smdh
Fair. But unwrap versus expect isn’t really the point. Sure one has a better error message printed to your backtrace. But IMO that’s not what I’m looking for when I’m looking at a backtrace. I don’t mind plain unwraps or assertions without messages.
From my experience, when people say “don’t unwrap in production code” they really mean “don’t call panic! in production code.” And that’s a bad take.
Annotating unreachable branches with a panic is the right thing to do; mucking up your interfaces to propagate errors that can’t actually happen is the wrong thing to do.
Unwrap should literally never appear in production code
Unwrap comes up all the time in the standard library.
For example, if you know you’re popping from a non-empty vector, unwrap is totally the right too for the job. There are tons of circumstances where you know at higher levels that edge cases defended against at lower levels with Option
cannot occur.
deleted by creator
They can’t even be punished. robots.txt
is just a convention, not a regulation. It’s totally not enforceable.
The only legal framework we have is copyright law. Those who oppose this behavior will have to demonstrate copyright violation, and that may be difficult to do since the law hasn’t caught up.
This comment is copyrighted by me and licensed to the public under the terms of the CC-BY-NC-SA 4.0. If you intend to use this comment for commercial purposes, you must secure a commercial license from me, which will cost you a lot of money. If you violate the terms of the CC-BY-NC-SA 4.0 without securing an appropriate license, I will send my army of lawyers that I totally definitely have to defend my copyright against you in court.
orlp invented PDQSort and Glidesort. He collaborated with Voultapher on Driftsort.
Driftsort is like a successor to Glidesort.
Glidesort had some issues that prevented it from being merged into std, and which are addressed in Driftsort. IIRC it had something to do with codegen bloat.
With a headline like that, I thought he died…
RIP Fuchsia
Apple Security Bounty awards may not be paid to you if you are in any U.S. embargoed countries or on the U.S. Treasury Department’s list of Specially Designated Nationals, the U.S. Department of Commerce Denied Person’s List or Entity List, or any other restricted party lists.
Kaspersky can whine all they want. Russia is embargoed. They’re not getting their money.
Kaspersky is a good company doing good work in the cyber security space. Unfortunately, because of the embargo, they may have to turn to the black market to sell future exploits. Or maybe not; I’m not totally sure what kind of ethical standards they have.
The article says all phones Android 9 and up are in on the network.
But I was under the impression that enrollment in the network was still rolling out? Anyone have details on the current state?
To me, this just sounds like the network isn’t rolled out fully yet (or that NYC residents don’t use Android, which seems suspect) rather than a failing of the device itself.
Nvidia is in a great spot for the AI bubble.
It drives up prices now, but when the bubble eventually burst, data centers are still going to need accelerators for more viable compute tasks.
Absolutely the most robust business in the bubble.
It’s honestly wild that the core feature of Bartender (hiding icons in the menu bar) isn’t builtin to macOS.
There are still issues with WearOS, but I think some of that is hardware. Last I heard, Qualcomm’s wearable SoCs were trash, but Samsung is in a good position since they have both the SoC fab and make the watch itself.
Many industries are shifting to a model where Android is the de facto OS for consumer-facing interactions. It’s not well optimized outside of phones yet, but it is rapidly improving. Many cars run Android now, for example.
I’m moderately optimistic about the next generation of WearOS devices.
When they’re publishing papers about your cesspool in Science, you know you done fucked up.
Unfortunately, I think it’s been demonstrated that OpenAI will feed your data into their training pipeline whether you like it or not. They did this with YouTube. And they demonstrated this with Scarlett Johanson. (Even if they used a voice actor instead of actually scraping voice clips of her, it’s still unethical.)
So we knew they’d just scrape these articles anyway. This way, at least the publications get paid.
This is a good book on how Google treats production environments at their scale.
Cattle, not pets.
That seems to contradict the article:
Special prosecutor Kari T. Morissey argued that “the actor has responsibility for the firearms once it is in their hands.”
The prosecutor is explicitly arguing that he has responsibility because he was holding the gun.
The number of electoral votes and the number of reps is based on population and is decided by the census.
So if this happens, at the latest, the votes would get fixed in 2031. But I wouldn’t be surprised if this is part of the deal. Obviously those switching to Idaho want to bring their votes with them.
Motorola has been in the tracker game since way before Air Tags.
I remember getting a Bluetooth tracker with my Moto X circa 2014. Back when Tile dominated the market.