Reddit -> Beehaw until I decided I didn’t like older versions of Lemmy (though it seems most things I didn’t like are better now) -> kbin.social (died) -> kbin.run (died) -> fedia.

Japan-based backend software dev.

  • 0 Posts
  • 31 Comments
Joined 1 month ago
cake
Cake day: August 14th, 2024

help-circle




  • I can’t address the first part, but for your last paragraph, if you’re sharing with humans, csv is fine. If you’re sharing with humans and machines, JSON or yaml or something similar is probably fine. If you’re only moving things around to give to machines, what to use depends on constraints you might have and use cases







  • Cukes and I have run out of places to even pickle them (I need to buy a big crock with a waited thing to keep them below the liquid line).

    Also okra and I’ll probably do some peppers (mostly jalapeños and seranos) depending upon how my harvest is looking.

    I want to do some shelf-stable pickles, but waterbath and pressure canning are both unpopular in Japan so any supplies cost an arm and a leg, especially if I have to import them with the duties and weak yen.







  • Very TL;DR version: a variable has an owner. If you pass it off to another function, you no longer own it and can’t use it until/unless it gives the variable back. Rust can be really strict on making sure you aren’t trying to use something you don’t own at that time. The documentation explains it better than this (and I wrote a longer post but accidentally closed the window and lost it). See also mutability and lifetimes for some pain points people might not be used to.


  • I agree with the others who say to start with The Book – https://doc.rust-lang.org/book/

    From there, start trying to create small things that you might want or need to do (parsing JSON is something that I needed to do and I started there).

    From there, you will learn to fight the borrow checker and start to feel how rust is working. This will be annoying at first, but get better over time (at least in older versions of Rust; I haven’t used it in a while so it may be different now).