[-] [email protected] 10 points 1 month ago

I see this argument repeated here every now and then, but it’s not true: https://aoav.org.uk/2020/the-effects-of-strategic-bombing-in-wwii-on-german-morale/

To summarise: Bombing had a profound effect on depressing morale through inducing defeatism, fear and apathy. Bombing did not harden popular resolve against the US. The hate and anger it aroused was directed against the Nazi regime, not the Allies.

[-] [email protected] 10 points 4 months ago

I think it’s the latter. I once had to take care of a sick friend who was pretty much puking her guts out. Her moans sounded arousing. Of course she wasn’t intentionally doing that, it’s just our own male brains playing tricks on us.

[-] [email protected] 10 points 4 months ago* (last edited 4 months ago)

In fairness, this also happens to me when I write the bash script myself 😂

[-] [email protected] 10 points 5 months ago

So far, it doesn’t seem that they have broken any laws or whatever, that would cause the system to reject their workings.

They are breaking laws, including the constitution. The courts are trying to reject it, but have no method to enforce their rulings when the executive branch willingly ignores them and even explicitly lies the blame with the courts for trying to protect the system.

https://www.npr.org/2025/02/12/nx-s1-5294666/trump-white-house-constitutional-crisis-judges

[-] [email protected] 10 points 8 months ago

Opinionated summary: Developers saw REST, picked the good parts and ignored the rest (no pun intended). They still called it REST, for lack of a better word, even though things like HATEOAS were overkill for most of the applications.

[-] [email protected] 10 points 9 months ago* (last edited 9 months ago)

No, OP asked for a black and white winner. I was elaborating because I don’t think it’s that black and white, but if you want a singular answer I think it should be clear: Rust.

[-] [email protected] 9 points 1 year ago

Couple of weeks ago there was a post here calling for more content to be posted in this sub, so I figured you might appreciate the content. As a project, Biome is also helping a lot of web developers become interested in Rust, since many of our contributors make their first-time Rust contributions there.

[-] [email protected] 9 points 1 year ago

That was a super interesting and informative read! Exactly what I was hoping to find when I posted this, thanks!

[-] [email protected] 9 points 1 year ago

I think they meant using for accumulating, like this:

shapes.iter().map(Shape::area).sum()
147
submitted 1 year ago by [email protected] to c/[email protected]
[-] [email protected] 10 points 1 year ago* (last edited 1 year ago)

Only if your definition of soundness includes that leaks can never occur, which is not how Rust generally defines soundness. I think most Rust users know that the language doesn’t prevent leaks at this point.

[-] [email protected] 8 points 1 year ago

Ahh, that's good to know! Thanks, together with @[email protected] fix that resolves it :+1:

11
submitted 1 year ago by [email protected] to c/[email protected]

I have a fun one, where the compiler says I have an unused lifetime parameter, except it's clearly used. It feels almost like a compiler error, though I'm probably overlooking something? Who can see the mistake?

main.rs

trait Context<'a> {
    fn name(&'a self) -> &'a str;
}

type Func<'a, C: Context<'a>> = dyn Fn(C);

pub struct BuiltInFunction<'a, C: Context<'a>> {
    pub(crate) func: Box<Func<'a, C>>,
}
error[E0392]: parameter `'a` is never used
 --> src/main.rs:7:28
  |
7 | pub struct BuiltInFunction<'a, C: Context<'a>> {
  |                            ^^ unused parameter
  |
  = help: consider removing `'a`, referring to it in a field, or using a marker such as `PhantomData`

For more information about this error, try `rustc --explain E0392`.
error: could not compile `lifetime-test` (bin "lifetime-test") due to 1 previous error
13
submitted 1 year ago by [email protected] to c/[email protected]

Today I'm sharing a little trick that I like to use to make switch statements cleaner and more type-safe. Happy to hear other ideas!

[-] [email protected] 9 points 1 year ago

Great stuff! Good to see that a few of those changes wouldn’t apply to just the Rust compiler, but other Rust programs as well.

21
submitted 1 year ago by [email protected] to c/[email protected]

As part of my Sudoku Pi project, I’ve been experimenting with improving the Bevy UI experience. I’ve collected most of my thoughts on this topic in this post.

6
submitted 1 year ago by [email protected] to c/[email protected]

I wrote a post about how our Operational Transfomation (OT) algorithm works at Fiberplane. OT is an algorithm that enables real-time collaboration, and I also built and designed our implementation. So if you have any questions, I'd be happy to answer them!

view more: ‹ prev next ›

arendjr

0 post score
0 comment score
joined 1 year ago