rustoftheday Profile Banner
Daily Rust Profile
Daily Rust

@rustoftheday

Followers
2K
Following
657
Statuses
378

Daily tips & tricks for Rust ๐Ÿฆ€ programming. Following back all accounts with ๐Ÿฆ€ or ๐Ÿช in their profile.

Joined November 2023
Don't wanna be here? Send us removal request.
@rustoftheday
Daily Rust
18 hours
๐Ÿฆ€ #Rust Tip #103: Want to spawn threads without managing handles? std::thread::scope blocks until all threads terminate within the defined closure. Example:
Tweet media one
3
15
191
@rustoftheday
Daily Rust
2 days
๐Ÿฆ€ #Rust Tip #102: Use the #[track_caller] macro to make panics report the call-site instead of the function itself. Great for debugging wrappers & assertions!
Tweet media one
2
13
255
@rustoftheday
Daily Rust
2 days
@LukasHozda With all that unsafe, you're practically writing C again ๐Ÿ˜€
1
0
4
@rustoftheday
Daily Rust
3 days
I you're into #Robotics , and working with ROS2 specifically, look into the R2R crate:
0
2
16
@rustoftheday
Daily Rust
9 days
@fredine no, will look into it.
0
0
1
@rustoftheday
Daily Rust
12 days
๐Ÿฆ€ #Rust Tip #101: Hard to believe that the Rust compiler can also help find errors in your SQL at compile time. Just check out the SQLX crate!
Tweet media one
4
17
142
@rustoftheday
Daily Rust
19 days
RT @AstraKernel: โœจ I love Rust's Result type: it's either an error or a value. In Go, a person can do `return nil, nil` that can mess youโ€ฆ
0
2
0
@rustoftheday
Daily Rust
24 days
@_trish_07 I challenge you to find a solid IOS developer.
0
0
1
@rustoftheday
Daily Rust
25 days
@the_mzakrzewski Who needs if/else? match role { "Admin" => true, _ => false }
2
0
6
@rustoftheday
Daily Rust
26 days
@_trish_07 What stands out is your font's "f" character.
0
0
0
@rustoftheday
Daily Rust
26 days
Daily Rust reached 100 Rust tips and >2000 followers. Thank you all for your continued interest! ๐Ÿš€๐ŸŽ‰๐Ÿฆ€
0
0
66
@rustoftheday
Daily Rust
27 days
@WagieWeeb Ubuntu, because apt-get; don't care much for the Gnome desktop.
0
0
1
@rustoftheday
Daily Rust
27 days
@_trish_07 Why do you think C is "simple"?
0
0
1
@rustoftheday
Daily Rust
27 days
๐Ÿฆ€ #Rust Tip #100: You can combine enum variants with different signatures in the same match arm using the { .. } syntax when the fields arenโ€™t relevant. Itโ€™s a very useful trick for concise matching!
Tweet media one
0
17
214
@rustoftheday
Daily Rust
29 days
@ChShersh @ChShersh what makes OCaml such a popular choice in FinTech?
1
0
1
@rustoftheday
Daily Rust
29 days
@NotNordgaren @AstraKernel You are right, C++ compiler messages are a crapshow. It is sadly not seen as a priority in the C++ world.
0
0
2
@rustoftheday
Daily Rust
29 days
RT @orhundev: Need to delete files safely in Rust? ๐Ÿฆ€ ๐Ÿšฎ trash-rs: A Rust library for moving files to the Recycle Bin. ๐Ÿ“š Docs: https://t.coโ€ฆ
0
4
0
@rustoftheday
Daily Rust
29 days
๐Ÿฆ€ #Rust Tip #99: Have you used this? let Some(var) = foo else { ... } is probably a lesser-known but concise syntax for unwrapping optionals that has apparently been around since Rust 1.65:
Tweet media one
13
15
331
@rustoftheday
Daily Rust
1 month
@remixedcat @davepl1968 It is just that good once you grok it.
0
0
0