101010.pl is one of the many independent Mastodon servers you can use to participate in the fediverse.
101010.pl czyli najstarszy polski serwer Mastodon. Posiadamy wpisy do 2048 znaków.

Server stats:

504
active users

#rustlings

0 posts0 participants0 posts today
Continued thread

Ok here's a first question I encountered while working on the #rustlings :

When defining a function, what does it mean to put the `mut` keyword in front of the argument's *name* vs. in front the the argument's *type*? E.g. what's the difference between the following two lines:

```
fn some_function(mut some_arg: SomeType) {
fn some_function(some_arg: mut SomeType) {
```

I think maybe I need to put #rustlings aside for a bit and read up a bit more.

I'm hitting the point where I am perma-stumped on some of the exercises.

Like, I really don't understand map_err or why I would want it. The examples aren't making much sense yet.

Not giving up, just changing tactics :)

My latest sticking point:

github.com/rust-lang/rustlings

GitHubrustlings/exercises/13_error_handling/errors6.rs at main · rust-lang/rustlings:crab: Small exercises to get you used to reading and writing Rust code! - rust-lang/rustlings

Hey, if any of y'all are interested in learning #C, I made a project in the spirit of #rustlings and #ziglings: Ceilings! It's still a WIP, but if you know #cprogramming, and there are any improvements to be made, pls open an issue (or better yet, fork)! I'm making the exercises as I learn C myself, following along with my old copy of K&R and a PDF of C Programming: A Modern Approach 😇

github.com/Pinjontall94/ceilin

GitHubGitHub - Pinjontall94/ceilings: Ceilings - Rustlings and Ziglings for C!Ceilings - Rustlings and Ziglings for C! Contribute to Pinjontall94/ceilings development by creating an account on GitHub.

I've finally made it, started learning Rust, read most of the book and finished rustlings.

Now looking around for interesting projects to quickly ramp up my skill ;-)

I had few approaches to Rust but never enough space to master it. But now it looks that a lot of work in a space i'm good at (data processing and databases) is written in Rust. E.g. #ParadeDB or #NeonDB they're both written in it.

Free #Rust Course in Mainz, Germany :ferris:

I am happy to announce that I will offer my Rust course for the third time 😍

📍 Where: In person at the university of Mainz #JGUMainz
📆 When: 26.08. - 30.08.2024 from 10 until 17 o'clock
📚️ Content: My modified version of #ComprehensiveRust and #Rustlings: comprehensive-rust.mo8it.com
🏃 More info and free registration: fachschaft.physik.uni-mainz.de (scroll down for the English version)
🗣️ Language: English

:boostRequest:

comprehensive-rust.mo8it.comWelcome to Comprehensive Rust 🦀 - Comprehensive Rust 🦀

Ever wondered why the language server #RustAnalyzer isn't showing all errors, warnings and lints? 😕

This is especially an issue in #Rustlings where Rust-Analyzer only shows the diagnostics in some of the exercises.

Turns out, Rust-Analyzer uses `cargo check` under the hood which itself stops checking early unless you specify the `--keep-going` flag 🏃🏼

This is fixed in Rust-Analyzer now 😃

github.com/rust-lang/rust-anal

Thanks to @veykril 🤗

GitHubAdd --keep-going to the check command by mo8it · Pull Request #17561 · rust-lang/rust-analyzerBy mo8it