this post was submitted on 18 Nov 2024
14 points (100.0% liked)

Rust Programming

8172 readers
23 users here now

founded 5 years ago
MODERATORS
 

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.

you are viewing a single comment's thread
view the rest of the comments
[โ€“] [email protected] 5 points 18 hours ago (2 children)

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.

[โ€“] [email protected] 1 points 17 hours ago (1 children)

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 ๐Ÿ˜…

[โ€“] [email protected] 5 points 12 hours 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?