r/javahelp • • Sep 18 '21

how popular is Rust for backend in FAANG level companies?

I am kinda new to backend and I would like to learn a language that can help me write production level code. I have heard about verbose style of Java code and how the syntax for Rust is not elegant. however I really like the idea of a system level language with smaller memory footprint.
Also I know Java has been around much longer and is a mature language but based on my brief research on documentations for both languages, I found Rust docs more engaging. Do you think for a new backend developer with around 3 YoE Rust is the good choice in 2021?

0 Upvotes

5 comments sorted by

•

u/AutoModerator Sep 18 '21

Please ensure that:

  • Your code is properly formatted as code block - see the sidebar (About on mobile) for instructions

  • You include any and all error messages in full

  • You ask clear questions

  • You demonstrate effort in solving your question/problem - plain posting your assignments is forbidden (and such posts will be removed) as is asking for or giving solutions.

    Trying to solve problems on your own is a very important skill. Also, see Learn to help yourself in the sidebar

If any of the above points is not met, your post can and will be removed without further warning.

Code is to be formatted as code block (old reddit: empty line before the code, each code line indented by 4 spaces, new reddit: https://imgur.com/a/fgoFFis) or linked via an external code hoster, like pastebin.com, github gist, github, bitbucket, gitlab, etc.

Please, do not use triple backticks (```) as they will only render properly on new reddit, not on old reddit.

Code blocks look like this:

public class HelloWorld {

    public static void main(String[] args) {
        System.out.println("Hello World!");
    }
}

You do not need to repost unless your post has been removed by a moderator. Just use the edit function of reddit to make sure your post complies with the above.

If your post has remained in violation of these rules for a prolonged period of time (at least an hour), a moderator may remove it at their discretion. In this case, they will comment with an explanation on why it has been removed, and you will be required to resubmit the entire post following the proper procedures.

To potential helpers

Please, do not help if any of the above points are not met, rather report the post. We are trying to improve the quality of posts here. In helping people who can't be bothered to comply with the above points, you are doing the community a disservice.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

2

u/BS_in_BS Extreme Concrete Code Factorylet Sep 18 '21

From my experience so far, most people don't care about particular languages. There's no such thing as a language X backend engineer; you're a backend engineer and you're expected to pickup what ever language the project you're working on is in.

If you feel that you're learning more via Rust than Java, then go for it. Assuming you have them time, I'd go and learn the basics of server development in both language, and then see which one you find more engaging.

1

u/[deleted] Sep 20 '21

The question honestly makes no sense, especially being asked in this thread. First off, search for Rust jobs online - there are almost none, even a decade after 1.0 (and by this I mean how you could get a job knowing only Java, but that's near impossible for Rust today).

Secondly, be careful getting blindsided by shiny docs - they can be a deadly trap. The basic rule of thumb is that complexity can only be distributed, not eliminated. In the case of Java, thanks to the GC and the JVM, the language itself is very simple and easy to understand. In the case of Rust, a lot of that complexity is offloaded onto the programmer - you will find this out when you start using Rust for projects beyond the scope of the "Rust book". The compiler tries its best to help out, but this is causing the semantic gap between the stated rules of the language and the actual implementation to be growing wider and wider, which can be very dangerous since it makes understanding and predicting the behaviour of a snippet of Rust code more and more difficult and unreliable. The language is already massively complex, and it's only going to get worse.

Finally, for all means and purposes, I don't consider Rust a general purpose language. It's good as a systems or tooling language, but it would be foolhardy attempting to make enterprise applications out of it. Likewise for Java - excellent at enterprise apps, but probably best not write low-level system code in it.

If you're interested in systems development, learn systems development and do projects in it (using C, Rust, C++, Ada, or what not), and that will make it easier to find projects which may also use Rust instead of making Rust the main focus.

1

u/ignotos Sep 18 '21

It is used - you can easily find articles about Rust being used at e.g. Google or Facebook. And Amazon, Facebook, Google and Microsoft are all part of the Rust Foundation.

However it's still pretty niche - the kind of thing a few specific teams might use, and the company itself might invest in to some extent - but it's not exactly used by huge numbers of developers.

So maybe not something to go all-in on if you're specifically concerned about maximising your chances of getting hired. If you're only interested in working on a backend team which uses Rust, you will absolutely be limiting your options! Still, I'd encourage you to at least experiment with it if you're genuinely interested.