Yesterday, I submitted a PR to port #Rustlings to Clap:
https://github.com/rust-lang/rustlings/pull/1633
But @manpacket asked me to try bpaf, so here is the second PR that ports to bpaf:
https://github.com/rust-lang/rustlings/pull/1634
Which one do you like more? π€
Vote here and with a π reaction on one of the PRs.
I pushed a PR to port #Rustlings to Clap π
I finished all the #Rustlings exercises yesterday! All the life stream is on my YouTube channel: https://m.youtube.com/@cheuktingho
#RUSTLINGS: alright. you got this! 94/95! your final task: to wrap your head around the AsRef and AsMut traits!
MY BRAIN, WHICH PRACTICALLY SPEAKING HAS NEVER WRAPPED ITSELF AROUND ANYTHING LOWER-LEVEL THAN PYTHON: ππ€·π»ββοΈπ΅βπ«
...huh. I guess #Rust's cargo does things "OS package manager style" and downloads a bunch of repository metadata locally? (instead of what I'm used to in lang package managers, hitting an API.)
Near the end of #Rustlings so I need clippy, and this is taking a few minutes:
[nix-shell:~/Code/others/rustlings]$ cargo install clippy
Updating crates.io index
Fetch [=================> ] 74.29%, (117872/182006) resolving deltas
Not a complaint per se, was just surprised!
Back on my #Rust bullshit. A theme the whole time I've been reading bits n snatches of the Rust Book (i.e. mostly when asked to by #Rustlings, but with a medium amount of going off into the weeds) is nice, straightforward explanation of the tradeoffs involved in many of the lang features or specific API members.
Too much tech documentation only goes over the how, and not the why. Love to see it. Makes me wonder what reading this would be like as a totally new coder.
Still working through #Rustlings but getting nearish the end (tests! which force the #Rust/#Rustlang book to say more about attribute macros, aka "basically decorators?")
Re-reading earlier notes, I really enjoy the idea of the `Result`/`Option` pair of enums making the "something, or an error" / "something, or nothing" dualities explicit, and their boilerplate-reducing `?` operator (in my head, "the short-circuit operator" π).
Went through about 1/3 of #ziglings today, so far so good. Loops are neat. Error handling is very different from what I'm used to, although potentially really cool if I can grok it.
If you're curious about zig and familiar with #rustlings (or at least have a little programming experience) it might be worth checking out. https://github.com/ratfactor/ziglings
Finished #rustlings.
Feel like some of the exercises didn't have enough context to complete it, but the #rust docs are great. No one's posted all the solutions to the latest set of exercises either, so I put mine up if anyone else wants to go through them. https://github.com/kentarospin98/rustlings-solutions
I feel like I much better understand the language now, but there's so many things, like Arc Mutexes, the Trait system, Macros, Iterators that will just take a ton of practice to get comfortable with, and more importantly, learn design patterns to be quick to solve problems with.
Going to try out a quick little project over this weekend to see how far I can go. I've been parsing the #python AST for a work project, and I thought that was wild, where as in Rust, you just have access to the tokens to build macros in the language itself.
Spent all afternoon trying to get #linux installed on my old 2015 #chromebook so I'd have something to practice #rust and #rustlings on while I travel next week.
Unfortunately, my chromebook went end-of-life before the linux mode was added. When I finally got it running via crouton on a dated version of Ubuntu (that I can't upgrade without breaking) I realized that....
... the battery was non-functional.
#linux #chromebook #rust #rustlings
Wow! I'm absolutely in love with the learning environment of #rust / #rustlang and #rustlings and #rustbyexample. What an incredible combo.
I wish I had a similar environment to learn #python or #julialang in.
For those who are unfamiliar, Rustlings is an interactive learn-by-fixing program you run in your terminal. It correlates directly with Rust's official guide (The Book). They even link together and to the docs. So cool!
#rust #rustlang #rustlings #rustbyexample #python #julialang
As a still practicing academic, I donβt quite know how to formulate my tech interests just yet β so hereβs a disorganized hashtag list of such things I tend to like thinking or learning about:
#csv #linux #archlinux #bsd #datalog #dlv #naturallanguageprocessing #functionalprogramming #rustlang #rustlings #python #javascript #portability #unicode #lexicography #obsidian #postgresql #gis
#csv #linux #archlinux #bsd #datalog #dlv #naturallanguageprocessing #functionalprogramming #rustlang #rustlings #python #javascript #portability #unicode #lexicography #obsidian #postgresql #gis
Hi there, Fosstodon!
I'm a bit disappeared, I know... Yesterday I retook my #rustlang journey. That journey that I abandoned during the Advent of Code due to the increasing complexity of the problems, and the shrinking available time and energy.
Yesterday I took on #rustlings exercises, and I've completed half of them by now.
https://github.com/rust-lang/rustlings
And I came up to an expression that didn't understand back in the day: the `if let` expression.
(more info below π )
@EndlessMason Give #rustlings a go after/before reading the Rust book, if you are already a language maven. Also the vids from @noboilerplate are great to tie concepts down, they do short sharp vids that donβt require setting aside dedicated YouTube time. Iβm not a fan of video tutes, but these are perfect bites of content.
I'm a simple man. My best friend sitting next to me, #Rust and #Rustlings, can you think of a better Tuesday morning?
Side note, #neovim is really ergonomic on an iPad with termius.
I just need to get my nvim setup working with #DotNet, and I'll be able to work from the couch today. If anyone has any tips getting a decent debugging experience working in nvim with Dotnet, let me know! #Rider has me spoiled.
#rust #rustlings #neovim #dotnet #rider
Are you looking for a #Rust project to work on, so you can exercise your knowledge?
Do you want to get out of your comfort zone just a little, so the #Rustlings course pays off?
I have a thing for you - Rusted, the world's worst text editor. Start here:
It's command based, so you can expand it as you like and make it as complicated as you want.
Or you can just follow along.
I will release the sources with the next video, in two weeks.
I don't think the #rustlings course is doing it for me. Sure I manage to get through it but I don't feel any more educated about rust than I was before... The order it teaches in isn't helping in my case either.
#Rustlings mi piace un sacco!!!
Mi sembra un ottimo modo per fare pratica. Davvero ben fatto.