Technically yes, but a newbie doesn’t need that. I doubt it’s an application that performance is so critical either.
Too much premature optimisation IMO
Technically yes, but a newbie doesn’t need that. I doubt it’s an application that performance is so critical either.
Too much premature optimisation IMO
It’s quite simple. Just remove the permalink
field! If you are calculating it then no need to store it in the struct.
If you do need the field to be there (ex you serialise it with serde), then create a method called new
that takes everything but the permalink, construct your permalink there, then return a new object.
Your permalink method can now just be self.permalink.to_string()
P.S. in the second case I’d recommend to change the return type of self.permalink()
to &str
. It avoids unnecessary cloning of the string.
You guys need FNEI? Factoriopedia is great!
For a second I thought it was the Linux comunity
This graph is awful to read ngl
I wouldn’t mind having a explanation of what you want to do instead of the code. It’s not quite clear what you mean.
Anyways, what you want is to transform an iterator (your Select) into an iterator of Option<String>?
For that, there’s multiple ways but here’s the simplest:
link_nodes.map(|node| node.value().attr("href").to_string())
Essentially, for each elements, we execute a closure (arrow function in JavaScript) that transform the node into your href string.
P.S. can’t guarantee it works, I don’t know what this “Select” type is, and I’m programming on mobile
And in the porygon episode (sort of)
Immediately way more interesting
I love how “fuck” is the the only word censored when it’s literally a map of swear words
What’s the colours about?
“projects” is doing some megaton lifting
And in my mind “CE” is “Clear everything”. I’m keeping OP’s method
They also accept pulling the power cord out as “oh no” and shutdown for you!
I didn’t know it was native too!
True, but my joke wasn’t meant to be scientifically accurate at all. We have a genie here. They don’t care about science. Apart from monkey paw science
0 is the freezing point of water 50 is the boiling point.
If it’s 30°c outside, it will be only be 15 after the wish, thus fit what the character said
Granted. Celsius now range from 0 to 50
Edit: … or whatever unit you prefer. It’s still the same
I wanted to check out bitwarden as a self hosted service, but looks like I better stick with good ol’ keepass+Syncthing
I’d actually recommend consent-o-matic instead of IDCAC. It actually selects the minimum concent for you instead of just hiding it.
I’m going to burst your bubble but GitHub doesn’t allow non open source licenses on public repositories.
Just ask winamp lol