Well the neighbors now have two trees on their roof and we haven’t had power now in over a day, but otherwise fine. Workplace is open and has power and food so we’ve just been hanging out there.
Our home has no damage though.
Well the neighbors now have two trees on their roof and we haven’t had power now in over a day, but otherwise fine. Workplace is open and has power and food so we’ve just been hanging out there.
Our home has no damage though.
If in PHP or JS I make a change, hit F5, and get an error, that’s not any better than the IDE already showing it beforehand.
This is even worse because it can happen in prod without you ever triggering this case. For some projects, it doesn’t matter because the impact of a bug is small. For most, you put a subpar, buggy experience in front of your users, waste more time looking for the cause and debugging later with upset users, and at worst cause actual damages (depending on the project anyway).
You can’t create a subset of an enum directly, but splitting this up into multiple types works. You can have FunctionAError
with errors that function can produce and a variant for your common errors, and FunctionBError
which is similar:
#[derive(Debug, Error)]
enum MyErrorCommon {
#[error("bad value ({0})")]
MyErrorCommon(String),
}
#[derive(Debug, Error)]
enum FunctionAError {
#[error("error a")]
MyErrorA,
Common(#[from] MyErrorCommon),
}
// and same for FunctionBError
The try operator (?
) will automatically use From
impls to convert errors for you as well. If a function returns a result containing MyErrorCommon
in your function and you use ?
on it, it gets converted to that function’s error type for you. thiserror
generates the From
impl for you if you use #[from]
.
Types aren’t unit tests. Unit tests only test a discrete set of inputs and outputs for correctness, and can miss cases that aren’t tested for.
In sound type systems, they are closer to formal verification. The compiler guarantees the properties you expect of the type hold.
As for the rest of the article, do what works best for you in your projects, but if I need to work with you, I’m going to ask for types. I need to know what types the interface expects to receive. Names are not enough. Document them, use type hints, whatever, just put them somewhere because I’m not psychic and I don’t know what you thought about when writing the function.
There’s a lot of bold claims being made. No segfaults, no memory leaks, etc. I’m curious to see how that’s implemented.
Also:
it’s safer than Rust because it lacks an “unsafe” keyword
lol
You can embed Lua pretty easily using a few different libraries. One I liked in particular was mlua
. Lua is tiny, usually sufficiently fast, and easy to learn.
Otherwise, there are some others like Rhai, but there may be fewer resources available for users if you go with a less popular language.
If the US goes full Holocaust, then progressive states can vote to leave the US. It’ll be ugly, but it’s been done before.
On this topic, I remember seeing a thread for Frostpunk 2 asking if it had DEI stuff in it.
There aren’t even any real characters in Frostpunk 2. Tf are you talking about DEI for in a game with no real characters?
steelmaking in specific is very carbon intensive
Makes sense, given that steel is an iron/carbon alloy. I guess decarbonization would be making the process more efficient and capturing more of the carbon into the steel?
It’s hard to tell what it is you’re trying to do here, but maybe Option isn’t the right type? To me it feels like you’d want to return a type like Vec
or an iterator.
I would recommend looking at some of the iterator functions to do this. You could look at filter_map
, collect
, and fold
/try_fold
and see if any of those help you here.
So, in other words, it’s so users excuse it when it produces dog shit. Got it.
Playing FFXIV for the first time.
I don’t really care for multiplayer games as much since I don’t like to commit my time to others to play games (I like being able to get up and leave when I need to), but there’s a solo challenge that sounded fun, so I’m giving that a shot.
I’m more worried about fraud at the elector level, not at the voter level. If the survey covered that, I’d say that there will absolutely be (another) attempt this year.
Chuck Feeney is over here looking like a gigachad though:
He [Feeney] decided to give virtually all his money away to various domestic and international charities and philanthropic efforts over his last 40 years or so. In September 2020, Feeney closed down his philanthropy company, having given away his wealth, minus retirement savings for him and his wife.
That makes more sense. Thanks for sharing.
One note about Sagas - they tick up on your first main phase, so you’d copy the Binding the Old Gods again before getting the forest.
Edit: but yes, you’d get the forest in your main phase after it re-entered on your upkeep.
Of course, in context it’s a lot different. Conceptually, it’s interesting, but only taken without the context that the goal is clearly to subvert the balance of powers between the different branches of government and turn it into an authoritarian government.
If anyone reasonable were to suggest it, it wouldn’t be so terrible though. It’s just that we know how Trump would abuse that office to push his own agenda.
An office to consult with could have helped pushed some of Biden’s things, especially regarding student loan forgiveness. It’s not always clear what is and isn’t legal, and ideally a president would try to push the boundaries as much as they can to accomplish what they believe is best for the country.
Trump is just a uniquely bad dude. Give him a hammer and he’ll turn it into a weapon before he builds anything productive with it.
Yeah, the timing of the article makes it clear what the motive is. It’s to distract discussion away from the article about Stallman.
nobody: