Hello Everyone, I want to learn a new programming language for upskilling. So, what language should I choose Rust or Golang? I am a little bit confused. Which will be better Rust or Golang?
For further actions, you may consider blocking this person and/or reporting abuse
Top comments (13)
Without any further context, this question is unanswerable.
â In many cases, Rust and Go are both poor choices to focus on if you want to enter some specific industry .
Each language has its place in some ecosystems more than others.
đ E.g. if you're aiming to do statistical analysis in a science/research department, your colleagues will want you to have R and/or Python and likely reject any suggestions of Go or Rust.
đ Equally, if you want to work on front-end dev, focusing on JavaScript/TypeScript will be more fruitful.
đ ī¸ If you're looking for integrating with existing tooling, look at what those tools favour most. If it is neither Go nor Rust, then the observation answers itself.
đ¤ If it's for the sake of learning/having fun, or for future proofing, learn either or both . đ
Note that these days the question of đĻ Rust vs ⥠Zig is more frequently popping up than Rust vs đĻĢ Go - and for good reason. But what's your reason ? â
OMG Python because is blazing fast
Isn't?Both bad choices? Maybe if you want to refactor or interact with C++ you would be crazy to choose Go/Rust instead of Carbon
Hello, Thanks. I am actually interested in learning backend development.
Go for backend development for sure. Go's concurrency is killer and the whole language was built for backend and microservices
Go is certainly easier to write, and is a good choice if you like the old C style of doing things, but has some pitfalls that you must be aware of.
Rust has a more strict syntax, is more verbose, but imho it has less pitfalls and can give you a better understanding of the flow of data throughout the code.
Both languages are good, if you want to write backend servers Go will get you there quickly with just the standard library, but with Rust you will need a library like Axum or Actix and a bit of understanding of async.
do you plan doing much async stuff?
Here an article that goes into detail why async rust sucks
bitbashing.io/async-rust.html
example, you are writing x:
please further note
Its about your personal values, what do you value more?
Go and Rust are similar in the way that Python and JavaScript are similar. Try out the both languages, and see for yourself.
I suppose that you are a novice developer, so I assume that Go would fit better since it has been made to be easy as python, but as powerful as C++ (iirc)
Go and Rust are similar in the way that Python and JavaScript are similar
But the chasm between Rust and Go is very broad (I mean ideologies or design or use cases or quantity of features) compared to Js and Python.
Try go and rust on codewars and you find it which one is fit for you. My vote is : rust.
I would definitely recommend GO to anyone who want to learn a new language, and their main area of focus is not web page development (you have no choice, go for Javascript). Go should suffice for most of the use cases... Use Rust if performance or security is the most important criteria for your personal or enterprise projects. And Rust's steep (I mean really steep) learning curve makes it not for everyone... Though I personally love Rust more compared to GO, but I tend to use GO more compared to Rust... How irony... đ đ đ
Choosing Golang would be a very practical choice.
In general, projects where Go's GC is a major obstacle tend to choose Rust.
I recommend Rust because some of its concepts are quite interesting.
Go for concurrency or if you plan on working with cloud native technologies since many CNCF and other cloud tools are written in Go (ie. kubernetes, prometheus, argocd, docker, dagger).