News for hackers. Stuff that matters.
Re:My Node.js is a bit Rusty by afavour on Friday September 08, 2023 @09:26AM (#37433177)
> Rewriting the logic in Rust was not hard

For you perhaps but it’s a pretty massive change in the longer term, though. You now have Rust in your codebase. How many engineers on the team will be able to work on it? If you leave tomorrow will the code become a liability?

With the numbers the author is providing it sounds very much like the problem could be solved in Node, even if it means using an unconventional programming style and there would be a smaller maintenance overhead than reaching for Rust.

Re:My Node.js is a bit Rusty by insanitybit on Friday September 08, 2023 @09:34AM (#37433291)
> How many engineers on the team will be able to work on it?

In my experience, basically all of them. Rust isn't that hard to learn on the job, it's maybe hard for some people to learn in isolation.

Obviously adding a new language requires understanding that there's going to need to be build system support, dev support, etc. I guess I assumed that was there? Unless Wiz is still in the 'wild west' phase where you can just do whatever you want.

Re:My Node.js is a bit Rusty by bheadmaster on Friday September 08, 2023 @11:16AM (#37434640)
Personal anecdote:

I've learned Go in a day. Did the Go tour, and immediately felt comfortable writing it.

I've tried learning Rust multiple times, did tours, tutorials, even started reading the book - still don't feel comfortable writing it.

Rust is not a simple language. I say that, and my first language was C++.

Re:My Node.js is a bit Rusty by insanitybit on Friday September 08, 2023 @11:24AM (#37434778)
I've drawn a line between learning Rust at a company and learning Rust in isolation. When you learn Rust at a company you have the full support of the others on your team, who already know Rust. I have experienced this at multiple companies now - picking up Rust when you are on a team of Rust developers is much easier than picking it up in isolation at home.
Re:My Node.js is a bit Rusty by bheadmaster on Friday September 08, 2023 @12:38PM (#37435931)
> When you learn Rust at a company you have the full support of the others on your team, who already know Rust.

Not guaranteed. Maybe it was that one guy who decided to introduce Rust to the codebase, then quit.

But I agree, generally, learning anything is easier when you have someone to ask.

Re:My Node.js is a bit Rusty by earthling8118 on Saturday September 09, 2023 @11:53AM (#37446786)
Another anecdote:

I learn new languages all the time. I make it a personal goal to never let not knowing a language get in the way of what I do.

Rust was one of the easiest I've ever picked up. There is a ton of good information, examples, books, and tooling out there that helps me.

On the other hand I've had to pick up Go several times in the past. It's never stuck. Basically every project I have seen written in it is convoluted and just messed up to read and interact with.

People ALWAYS overstate the effort that Rust takes. There are a lot of spots that you can get messed up on. But not all of us are out here writing code that hits these things. People act like the existence of lifetimes means you have to write them everywhere and think about it. That's not the case for almost any of us.

Re:My Node.js is a bit Rusty by afavour on Friday September 08, 2023 @11:20AM (#37434718)
> Rust isn't that hard to learn on the job, it's maybe hard for some people to learn in isolation.

I have to disagree with that. I've learned Rust but it was one of the most challenging languages I've picked up. Stuff like lifetimes are very difficult to learn on the job without already doing a lot of reading.

Re:My Node.js is a bit Rusty by insanitybit on Friday September 08, 2023 @11:42AM (#37435099)
Just to clarify, you were learning Rust while employed, working on a Rust project, with others on your team who were already familiar with the language?

In that scenario I have never seen onboarding to the language be a problem.

Re:My Node.js is a bit Rusty by nsonha on Friday September 08, 2023 @05:25PM (#37439641)
Who cares, look again what the topic at hand is
Re:My Node.js is a bit Rusty by insanitybit on Friday September 08, 2023 @06:31PM (#37440138)
What? I care. I made a statement about learning Rust in a work environment, that is the topic at hand.
Re:My Node.js is a bit Rusty by nsonha on Friday September 08, 2023 @08:17PM (#37440924)
You're trying very hard to claim that Rust is easy, that is very irrelevant to the topic.

> Just to clarify, you were learning Rust while employed

they did not say that, but you had to frame it that way to, again, claim that Rust is easy, like who cares.

Re:My Node.js is a bit Rusty by insanitybit on Saturday September 09, 2023 @10:32AM (#37445895)
> You're trying very hard to claim that Rust is easy, that is very irrelevant to the topic.

I was responding to this:

> You now have Rust in your codebase. How many engineers on the team will be able to work on it? If you leave tomorrow will the code become a liability?

It's obviously relevant to that question.

> they did not say that,

I said that in my experience learning Rust at companies is easier than learning it in isolation.

They said that they had trouble.

I asked for clarification if they had trouble while learning in a work environment.

You jumped in to say that a work environment isn't relevant.

> like who cares.

Every other person in the thread who is discussing exactly that you absolute dunce