toad.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
Mastodon server operated by David Troy, a tech pioneer and investigative journalist addressing threats to democracy. Thoughtful participation and discussion welcome.

Administered by:

Server stats:

303
active users

#rustaceans

0 posts0 participants0 posts today

dear experienced #rustaceans of the fediverse - if you are interested in a remote job with a good supportive company (defensive cybersecurity, not web3 bs), hmu, there may be an opportunity on my team very soon!!!

i don't know yet the level, but i reckon it's going to be senior+. but it's good work with a good team and I'd love more women and/or queers in general on the team with me 😁😁😁

always hearing about how trans people love #rust , and yet I'm the only trans rust dev here, what's up with that?

Continued thread

To be clear I mean this in the literal sense (its docs include contemporary slang and thus are still receiving updates) and not, like, sarcasm.

(Also uh, what hashtag do other #Rustaceans use anyways, #Rust obviously has some collision properties, but not sure I see a lot of #Rustlang either? or is that just fediverse being annoying 😂)

Replied in thread

@jbowen

But I don't hear similar things about JS, Java, or C++, even during the apogee of popularity for each of those languages.

It's like most people who really like their languages are still kinda measured in their praise, but #rustaceans are just nuts about #rust.

Of course, that could just mean that #rust really is that good, or maybe simply that it resolves a lot of pain points that current devs are feeling.

✨ Underscore expressions in Rust

Underscore `_`, a reserved identifier - Anything passed to into it will be ignored(But careful, it is not dropped)

👉 Underscore doesnt copy,move or borrow the value

👉 In the following code, we create String instance 'x'.We pass it to the underscore which does nothing than ignoring whatever we give. It does not move the ownership.
Ownership still remains with 'x' 😱

let x = String::new("Kernel");
let _ = x;

👉 Then what is the use?

👉 It will be useful in situation, when you are not interested in a certain value and ignore it.

For example:
fn main(){
let x = (21, "Parker");
let (age, _) = x; //Ignore the name, only want age from the tuple.
println!("age: {}", age);
}

Resources:
runrust.miraheze.org/wiki/Unde

Underscore is not exactly "throw away" but rather it is exactly "don't bind to variable:
news.ycombinator.com/item?id=2
reddit.com/r/rust/comments/96z

So my engineering team decided to give themselves a little (?) challenge and spend two weeks on rewriting our content recommender service in #rust. Their motivation is two-fold: (1) understand the unnecessary complexity that has built up over time around a straight forward use-case, and (2) learn #rust 🙂 I think this is ambitious but doable, so I want to support them. Any #rustaceans or engineering managers using #rust in production out there that can give me some advice? #rustlang