![]() Even the archetypal basic program throws a lot at you when println is not only not a function, but immediately does things real functions are not capable of doing, i.e. Then we could see how well such a beginner gets on.Īs a counterpoint, I'd say that Rust throws learners in at the deep end. It would be great if "hack3rcon" would dive into Rust as a programming beginner. Suggestions above indicate that issue is being resolved. The problem may be the lack of books, tutorials etc that are targeted at the complete programming beginner. And the compiler produces very nice error messages. Contrast to building and running "hello world" in C or C++. Meanwhile, while doing all that Rust makes it very easy to build and run ones first programs with "cargo". One can get a long way in Rust before bumping into complexities of lifetimes, generics, macros and so on. Then one can get on to imparting notions of functions, parameters, returned values etc. I would argue that all of that can be taught in Rust as easily as any other language. After all it is said that all of programming is only "sequence", "selection" and "iteration". Arguably Rust's "hello world" is more concept heavy than that of Javascript, Python, BASIC etc but still pretty good.Īfter that one can move on to the notion of variables, expressions, sequences, conditionals, loops etc. After all the very first thing people will experience is a "hello world" program which is pretty straight forward in Rust: fn main() ? What is that ! for? But compare that to "hello world" in C or Java. I think Rust could work very well for a first time ever student of programming. NB: I've been a programmer for a long time, so this is more speculation on my part than speaking from personal experience. These mostly align with best practices in other programming languages- The habits you'll learn from Rust will help you to write more reliable programs when you eventually move to another language. Rust is also quite opinionated on how you can solve certain common problems. As debugging odd behavior is one of the hardest, most frustrating, tasks in programming, the extra difficulty of Rust may actually be a net positive for novice programmers. Most of what makes Rust relatively hard is that the compiler is less forgiving of errors than other programming languages, so that a program that Rust accepts is more likely to be correct than a program that simply compiles/runs written in another language. Despite this, I believe that Rust may still be a good language for a beginner to learn with. It does not store any personal data.Computer programming is a hard skill to learn in general, and using Rust as a learning language may very well be harder than most. The cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. ![]() The cookie is used to store the user consent for the cookies in the category "Performance". This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other. ![]() The cookies is used to store the user consent for the cookies in the category "Necessary". The cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional". The cookie is used to store the user consent for the cookies in the category "Analytics". These cookies ensure basic functionalities and security features of the website, anonymously. Necessary cookies are absolutely essential for the website to function properly. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |