I’ve only been coding with Python/Javascript since I started my career. I do APIs and websites frontend. I don’t really understand what is interesting in learning an other language. For example, I could learn Ruby, but I’d do the same thing I already do.

Rust, C/C++ tho seem to me to be languages to code other things. Hence my question : what do you code? If possible, make distinction between personal projects and professional projects.

  • algernon@lemmy.ml
    link
    fedilink
    arrow-up
    4
    ·
    1 month ago

    Anything and everything, really.

    I wrote an idle inhibitor in Rust, a GUI WiFi connection manager for my wife, an API client for WriteFreely, I contributed to a Wayland compositor (niri), wrote a library & CLI tools to talk to Kaleidoscope-powered keyboards. I wrote the frontend of my personal search engine in Rust too.

    But I also built a Tauri application where the backend and the frontend were written in Rust too. No HTML or JavaScript in sight, not in the sources at least.

    Professionally, the answer’s the same: if I am allowed to write it in Rust, I will write it in Rust, whether it is a low-level library that talks with hardware, a GUI application, or some web related thingy, or anything inbetween.

    • ClusterBombOP
      link
      fedilink
      arrow-up
      1
      ·
      1 month ago

      Oh! That’s nice. I have a question. Why Rust above all the other languages for web-related stuff?

      Again, I do not have any opinion on this, all I know is Python so 💀

      I have a project idea so you may convince me to try to code it in Rust 😅

      • algernon@lemmy.ml
        link
        fedilink
        arrow-up
        6
        ·
        1 month ago

        I use Rust mostly because I am comfortable working with it. It hits a sweet spot of often letting me write in a functional style, at often zero or very low cost. It has a lot of high quality libraries, for almost any purpose. And the language itself comes with great things too. Traits, Option, and Result are all things I miss when working in other languages like Go.

        It’s also a memory safe language that is also fast, approachable, and has a ton of good documentation. What’s not to like?