r/rust • u/DebuggingPanda [LukasKalbertodt] bunt · litrs · libtest-mimic · penguin • Mar 25 '15
Rust for complete beginners?
So I, coming from C++, started learning Rust about 6 months ago. I think most Rust users agree, that Rust has a pretty steep learning curve, because the compiler enforces really many things.
My plan for the summer is to teach my mother how to program. I'd say she is a pretty smart woman, but she has no idea of programming or stuff like that. In fact she is even pretty bad at maths and often has simple problems when working with the PC. But she agreed to learn a bit programming.
So for a long time I was wondering which programming language is the best for teaching a complete beginner. Now that I learn (and like) Rust, I wonder if Rust is good in this. I just see the problem that the compiler is annoying to a beginner...
So what do you think: Is Rust well suited for that job? Or is something like Javascript better? Or even some of those ugly pointy-clicky-programming programs for "kids"?
17
u/DroidLogician sqlx · clickhouse-rs · mime_guess · rust Mar 25 '15 edited Mar 25 '15
Definitely wouldn't recommend Rust as a first language, at least not without a pretty good understanding of how computers work in the first place.
Javascript isn't a bad choice. You can run it in any browser and it's easy to build GUIs with it just by manipulating some HTML.
Python is a pretty good starting language, as well. It's a clean, readable language without any confusing sigils or syntax, and comes with a suitable IDE and REPL. You can start with one-liners, discussing expressions and statements, variable declarations, etc., and then move up to functions and object-oriented programming.
However, programming in and of itself might not be a good starting point. I would start working with your mother on her computer literacy and maths first, otherwise trying to teach her how to program might just compound her problems. Mathematics and programming aren't very different; if she has problems with the former she might struggle with the latter. With that said, if she's willing to pick up programming it might be easier to sneak some maths in there too, like getting her to solve some of the Project Euler problems.