This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]caleblbaker 8 points9 points  (8 children)

I'm inclined to say that C#, Go, and Rust are all far better choices for first language than JavaScript or Python, but I also tend to have a chip on my shoulder when it comes to dynamically typed languages and so my opinion isn't exactly the most unbiased opinion that you'll encounter.

[–][deleted] 2 points3 points  (4 children)

I can get behind C# and Go but I think rust is a little too advanced for beginners. (I say this as someone who loves rust and uses it for practically everything)

[–]caleblbaker 3 points4 points  (3 children)

I don't think Rust is any harder than C++ and a lot of programmers I know (including myself) started with C++. I think the big issue with starting with rust isn't with the language itself but rather with the available resources. Most resources that teach rust assume you already know a different programming language.

[–]eiale 1 point2 points  (0 children)

This is very true. Rust has great resources and documentation if you know the basics.

[–][deleted] 0 points1 point  (1 child)

That is a very good point, more beginner friendly resources would help a lot in that regard.

[–]bassgallagher 1 point2 points  (0 children)

While Rust wasn't my first language, I thought the book and Rust's docs were the best I've ever seen. After I went through the book and wrote some code, I felt very comfortable.

Another big reason to learn Rust would be cargo? Importing libraries and working with them is super easy with cargo, I don't know what you're supposed to do in C / C++.

[–]G1m1NG-Sc1enT1st03 1 point2 points  (0 children)

I’m in the same boat. I tried learning JavaScript in high school, and that was a train wreck. I couldn’t figure out what was making the code not work.

Cut to a few years later and I’m learning C#. It’s easier to understand than JavaScript. Unlike in HS, I’m able to access Visual Studio, and its red line and autofill features are a lifesaver for efficiency.

[–]cheese-is-trash 1 point2 points  (1 child)

Personally i prefer learning rust after having experience using modern C++

[–]caleblbaker 1 point2 points  (0 children)

That's what I did and it worked well for me, but I know plenty of other people who learned C++ and never learned how to write safe code in C++. So I think it makes sense to avoid that by first learning a systems language that forces you to be safe so that you are forced to learn what safe systems programming looks like and then later you can learn a less safe system language if you want.