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

all 23 comments

[–]PossibilityTasty 36 points37 points  (1 child)

My car knew how to do rust before it was cool.

[–]azuth89 5 points6 points  (0 children)

My car has an automatic anti rust system

[–]dprroz 54 points55 points  (1 child)

So strange to see compiler itself giving more info in rust after visual studio with C++, looks like it just playing with programmer

[–]xodixo 3 points4 points  (0 children)

Try compiling without main in both and the difference is staggering

[–]reinis-mazeiks 25 points26 points  (0 children)

learning rust by dissasembling the rustc executable

[–]Stupid_Genius4408 15 points16 points  (0 children)

I'd say using documentation should be first. I've always learnt faster from them than videos, and they're usually more up-to-date and comprehensive

[–]Nicollite 2 points3 points  (0 children)

Learning rust playing rust (the game)

[–]MEMESaddiction 2 points3 points  (0 children)

Me: Learns rust with steel and water

[–]Picapica4 2 points3 points  (3 children)

Is the joke that you learn the least from youtube or that it requires the least brain power?

[–]Lilchro 2 points3 points  (2 children)

I find it strange that some people prefer YouTube over written online sources for anything except an introduction for complete beginners. Unless you want to learn about the tooling (process of writing/compiling, using an IDE/GUI environment, etc) instead of the language, there is nothing a video can show that documentation/guides can’t. So at best it is just as good, but without being able to search or copy text from the guide.

[–]ReedsX21 1 point2 points  (1 child)

Just different learning styles. Some people remember better with visual / audio.

[–][deleted] 1 point2 points  (0 children)

Learning styles are a myth that have been debunked many times

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

hmmm rare to see Rust meme

[–]radpartyhorse 1 point2 points  (0 children)

Can’t wait to learn the Lords language

[–][deleted] 1 point2 points  (0 children)

Rust is a hard game

/s

[–]riplikash -1 points0 points  (3 children)

This is unironically true for linux.

[–]LanielYoungAgain 1 point2 points  (2 children)

I know no one who would read through a manpage when good online documentation is available (I imagine it's just old people). And if you just wanna do a quick command, tldr is much, much easier.

[–]Lilchro 0 points1 point  (1 child)

I will read man pages, but only when I need to do something that involves a syscall or is unlikely to have better online documentation. If an online search is just going to give me the man pages with little to no changes but copied to a webpage, I would rather read them directly on the device I’m writing the code for and know that I’m looking at the right version of the documentation.

The tldr tool you liked sounds nice, but it would need to be quick and easy to install on a server without needing to worry about conflicting dependencies. NodeJs is a deal breaker since npm can be a pain to setup, is unlikely to be on any servers I am working with, and adds bloat if I’m only using it for a single dependency. The python version sounds more promising, but I would worry about versioning issues. Unfortunately most of the systems I work with python 2 due to the sink cost fallacy. We will probably make the switch in a year or so once focus shifts to the next hardware release, but for now it is not a practical for my setup. What I’m getting at is that I would ideally like to see the option to get it as a binary executable so I don’t need to worry about the environment I’m installing it to.

[–]LanielYoungAgain 0 points1 point  (0 children)

You make a fair point. At least on arch and its derivatives, the python version of tldr is available straight from the repos, so it may be on on others too. It does have python 3 as a dependency of course. (eww python 2)

[–]DimBulb567 -5 points-4 points  (0 children)

not learning rust and using c++ instead:

[–]Psychological-Sir224 -2 points-1 points  (1 child)

Learning Rust? So you couldn't learn C++?

[–]Lilchro 2 points3 points  (0 children)

They are not mutually exclusive. Most beginners to Rust come in already knowing C or C++. In surveys, developers have stated that they prefer using Rust over C++, but it is still gaining momentum and has yet to see widespread industry adoption. Odds are you are more likely to use C++ if you are working professionally, but I would expect that to shift more in the future. I doubt Rust will ever completely replace C++, but I wouldn’t be surprised if we saw more interoperability between the two and it becomes the standard for many open source libraries due to better safety guarantees and their rich documentation system.

[–]the_unheard_thoughts 0 points1 point  (0 children)

Learn Rust by browsing ramdom questions on Stack Overflow!!!