Can’t escape AI slop projects from meat proxies man. Every single open source project smells like Claude Code recently. Sad times.

  • Helix 🧬@feddit.org
    link
    fedilink
    arrow-up
    51
    arrow-down
    4
    ·
    2 days ago

    I’ve made an open source hello world calendar app in a month in Rust. This language is so hard to understand for me, and I wrote C code for microcontrollers for a living some days of my life… Just can’t wrap my head around it.

    Guess I’ll have to go buy socks and take HRT to finally be able to learn Rust.

    • Ephera@lemmy.ml
      link
      fedilink
      arrow-up
      11
      ·
      2 days ago

      It’s unfortunately on YouTube, but I always found this explainer quite helpful to understand the core concept of ownership/borrowing: http://intorust.com/

      (You can skip the first two chapters.)

      It just is a different way of thinking and especially veterans struggle with it, because they’ve got all these patterns in their head that don’t work very well in Rust.

    • lime!@feddit.nu
      link
      fedilink
      arrow-up
      7
      arrow-down
      1
      ·
      2 days ago

      what made it easier for me was to think of it as design by contract. if you start by describing the interfaces, you can basically autocomplete the functionality.

      i wrote a driver for an i2c device in rust because i needed to sanity check my c implementation, and after defining the types of each register i wanted to use i could just ignore types entirely because it all became implicit.

      not saying i particularly like how much magic there is in rust, just that i get it.