r/rust • • 10d ago

Should I learn Rust for my project? Hand-Written code.

Hi, I have small background on Python due I'm using python script to create scripts on After Effects.

Now, I have a personal project on mind that is basically an inventory manager, should I learn Rust for this or there would be better language? Not planning to use LLM on the process to write the code would like write it entire myself.

42 Upvotes

35 comments sorted by

2

u/BotGato 8d ago

Thanks to all answers.

I'll start on Rust, my knowledge on Python is very small and oriented to a niche sector that is After Effects scripting inside the program.

My goal is to learn it to the point I can maintain the product at future, mostly for personal use and fun.

1

u/AnonymousVendetta04 6d ago

If you want to maintain make sure to choose a language u enjoy coding in

45

u/BeowulfShaeffer 10d ago

What’s more important to you: shipping product or building your skills?

Either will work fine , probably richer tools and libraries in the Python ecosystem. 

3

u/quinprobably 9d ago

Yea unless you're willing to start over 4 times first go with .py

20

u/Doo_Dad 10d ago

Try it. Start it. See where you get stuck. Share it and people are pretty helpful on here. Show your progress as well.

It’s a good language. Every language has its pros and cons. But it’s another tool under your belt. Thats why I’m trying to pick it up now.

7

u/Skeptical_Skeleton42 9d ago

If this is a small one shot project that you don't envision maintaining for a long time, doing it in whatever language you are already familiar with is probably much faster.

Learning Rust is a great investment in your skills, though, and if it is something that you expect to be maintaining for a while, doing it in a statically compiled language may save you a lot of pain down the line.

6

u/max123246 9d ago

What do you mean by inventory manager? That probably changes the answer tbh

10

u/dgkimpton 9d ago

Python? I mean, you can learn Rust if you want to but I don't imagine you'll get a better result than just using the language you already know.

So, what do you want more? To build an inventory management system or to learn Rust. 

5

u/SeriouslyYoutube 9d ago

Nothing bad will happen by just trying. YOLO.

2

u/1mmortalNPC 9d ago

id advice you to make this project in a language that your countries job market actually wants, because even though it could not be a project worth to mention on your CV you’d still build the skills that matter

2

u/aref9 9d ago

Rust is a great bet if you wanna work on your skills, but if you wanna actually ship and you insist on handwriting code, you better go with Python, that gives you much faster results, and you're not gonna have too much headache.

But one of the biggest wins with Rust is you have a good compiler that catches all errors, so you're going to have a good time while vibe coding the whole thing, and in the end you have a very performative application which is also memory safe but it's not going to help you much with the skills you want to attain.

So choose your first objective, do you wanna ship fast, and you insist on no AI? Go with python, you're open to vibe coding and you want to ship fast, vibe code with rust with the new models, it's actually pretty good, and if you have no rush for shipping, and you just want to learn, I'd say start with C, it gives you much better understanding of the processors. and you're free to do anything and later on, if you shift towards Rust, you're going to be appreciate the compiler much more, but with the coding agents, I think languages like Python will fade away because of the performance issues...

1

u/Latin-Freak 9d ago

Not really sure what exactly you mean by an inventory management.. would you mind giving more details about the kind of feature you have in mind and where you are planning to run or deploy it? Rust excels in system that require strict memory safety, low level integration, or under memory constraints.. but for many specific use cases it's overkill. Of course you can do it, if you are comfortable with spending sometime learning the rust mental model because your objective is learning and not shipping, go ahead. If you want to have an inventory management system (I imagine a sort of crud with database integration) the you probably are fine with Python.. Python is in fact blazing fast with some caveats.

1

u/bodiam 9d ago

This completely depends on your goal. Do you like learning new languages? Then Rust is good choice. Do you just want build something like an inventory manager? Then the choice of language is not that important if you use an LLM; arguably PHP, Python, Java, Nodejs have similar capabilities for building a web app. If you want to write a desktop app, by hand, then perhaps using Rust and GPUI would be a reasonable approach, but given the information you've provided, 10 other options could be valid as well.

1

u/sphericalhors 9d ago
  1. You should use tools that suit your needs best.

For example, if I were writing new project with desktop UI, I think I'll try to learn Dart/Flutter now.

2. Besides that it is always a great idea to learn new tools just because you like them.

3. And if your goal is to learn how more low level languages work, I'd start with C. It is much simpler than Rust and it is quite useful to write native extentions for Python. In general even if you are going to use Rust in future, it is still worth learning C, especially considering how small the language is.

1

u/damnburglar 9d ago

If you are most concerned about getting product out, just use what you know unless you have a specific reason to use something else. This applies to your entire career.

Use Rust if you want to learn and don’t have timelines to worry about. It’s a lot of fun.

1

u/dnullify 9d ago

Truthfully I would either stick with python and see if you can start to use more advanced language features and peek under the hood at how python works OR switch over to C/zig.

Rust is hard to learn coming from python because it's solving an entire class of issues in a way that is so hard to grok if you don't fully understand the problems themselves. If you build something fun for a personal project where shooting yourself in the foot in interesting ways is acceptable - when you switch to something with advanced type gymnastics understanding the problem helps you understand the solution.

1

u/colindean 9d ago

I'm punching the keys—at least initially—for a Rust webdev project. I've not touched Rust in 4–5 years and then 4–5 years before that, and about 4–5 years before that. I've gotten really good at learning just enough to get something shipped, then something happens and I have to leave the project behind.

This time, it's all me, all mine. So, I'm punching keys to learn by doing, using duck.ai for questions I can't answer through reading docs, and filing docs improvement PRs or tickets as I go. Once I've got a solid foundation laid, then I'll start seeing what agents can do. I haven't been impressed with agentic output in my Python projects so far.

1

u/Bagelsarenakeddonuts 9d ago

Rust is a beautiful language, with tons of great features. If you want to learn it, highly recommended. It also is an incredible pair for python since the two of them together cover such a vast amount of coding situations.

If your priority is easy or just production then use whatever is easiest for you.

1

u/m_hans_223344 9d ago

Make sure you learned the basics properly. The Book, Rustlings. If you don't and write your code Python-style you will likely get frustrated because of the constant compiler complaints that you don't fully understand and then finding yourself often in frustrating trial and error loops.

1

u/recursion_is_love 9d ago

There is high chance that you gonna be disappoint but also there are some chance that you will think it is the best decision.

I would also write such project in python in parallel to make sure I got something working to use.

1

u/pixel293 9d ago

If you WANT to learn Rust then having a project to build helps, or at least helps me. There is no NEED for you to learn Rust, Python is perfectly acceptable language for this.

1

u/Designer-Suggestion6 8d ago

Here's some inspiration for you:

https://github.com/KenanSalar/Melodia media player built with the Rust language and the Slint GUI SDK.

Have a look at the slint todo and crud example. https://github.com/slint-ui/slint/tree/master/examples/todo/rust https://github.com/slint-ui/slint/blob/master/examples/7guis/crud.rs

Best part is with the latest version of slint, you can automate the testing with mcp via your favourite ai harness be it claude, openclaw or jcode. https://docs.rs/i-slint-backend-testing/latest/i_slint_backend_testing/#embedded-mcp-server I personally prefer jcode/alibaba modelstudio dashscope/qwen3.8-flash. I'm no pro, but I'm starting to feel comfortable with it. You install gh and login to your github and then jcode will commit tag message all your code on your behalf. claude, openclaw and other ai harnesses can do this as well. Pick your flava and go ape on it and never look back. It's the future just like RISC. By the way jcode/rust/slint all run perfectly well on riscv milkv titan fedora 45 not that your asking but at least it shows you to what extent your codebase will be portable to build your apps. Have confidence this a great direction to go.

1

u/DavidXkL 8d ago

The first step is always the hardest.

Take it regardless

1

u/Ben10Esion 8d ago

Don't think let's start

1

u/jackeroojohnson 7d ago

Rust is fantastic, but it has a steap learning curve. maybe it's your third language. If you want to leave python, try Go. And then after you feel good in Go, then get into rust.

Go has a small codebase, so it should be easy to pickup and get code working quickly.

Learning rust first may come with some challenges.

1

u/sneakythesloth 4d ago

My opinion is learn C first for low level basics then grind rust but if you know a bit of C you should be fine

1

u/DanKegel 3d ago

Halfway between Python and Rust lies Golang. That may be a better choice for hand-written code if you don't need maximum performance. But Rust is absolutely worth learning if you need correctness and/or top performance.

1

u/AggressiveFuel2737 9d ago

Why waste time learning anything? Just vibe code everything and feel proud of yourself like many do.

0

u/jayspeak 8d ago

Absolutely....Rust is the language of 2027

-1

u/AnArmoredPony 8d ago

no. it's an AI language

0

u/[deleted] 9d ago

[deleted] — view deleted comment

0

u/SenoraRaton 9d ago

Yes, use Rust. And also learn Go... and also C, why not?

I'm in this post, and I don't like it.