Samuel
sam.vd.st
Samuel
@sam.vd.st
+1 for Axum
January 16, 2025 at 11:55 AM
Congratulations to both of you! 🎉
December 12, 2024 at 9:41 AM
PRAGMA foreign_keys = OFF;

-- Hey Aaron 🙋🏻‍♂️

PRAGMA foreign_keys = ON;
December 4, 2024 at 6:50 PM
I had the same problem😆
December 4, 2024 at 12:35 AM
I like it! Curious: how is it that `stream.next()` within your `consume_literal` function is not a problem? Isn't it always advancing, even if the next character is not the one you are looking for? I may need to pull your code to understand it better.
December 3, 2024 at 11:58 PM
I use Neovim with LazyVim, and my keybindings are pretty much standard. I have the LazyExtra for Rust and can do `<leader>ca` for code action, which then gives me a bunch of options. Sometimes the cursor placement matters a lot. I‘ll fire up Zed later when I do day 3 to check how it works there.
December 3, 2024 at 7:17 PM
Oh, and if you haven’t already, make sure to install rust-analyzer and integrate it into your editor! There’s a VSCode plugin that brings Clippy lints right into your code. It can also auto-apply suggestions (via code actions) and format your code. A must-have for Rust.
December 3, 2024 at 6:56 PM
Oh, and if you haven’t already, make sure to install rust-analyzer and integrate it into your editor! There’s a VSCode plugin that brings Clippy lints right into your code. It can also auto-apply suggestions (via code actions) and format your code. A must-have for Rust.
December 3, 2024 at 6:55 PM
🤣
December 3, 2024 at 6:25 PM
Love it! Clippy can be a tough teacher 😄
December 3, 2024 at 6:17 PM
Oh yeah, I absolutely love Rust for all these little abstractions. I get excited every time I learn about a new one.
December 3, 2024 at 6:14 PM
Clippy is the best—I’ve learned so much from it! Be sure to enable more lints; I usually add `#![warn(clippy::pedantic)]` to all my projects. Highly recommend checking it out: doc.rust-lang.org/clippy/lints...
Clippy's Lints - Clippy Documentation
doc.rust-lang.org
December 3, 2024 at 5:03 PM
Hah, funny! Great minds think alike. Not gonna lie, `(1..=3).contains()` was a Clippy lint, and I just went yoink. 🤷‍♂️

Ah, yes, the `.is_sorted()`—I skipped it to train the iter muscles. Technically, it allows `1 2 2 3`, but no difference here since the range check catches it anyway.
December 3, 2024 at 4:29 PM
I’ve never had the chance to try Haskell. I’m very curious to know how it goes. Let me know!
December 2, 2024 at 7:17 PM