|
所在平台: Coursera |
课程主页: https://www.coursera.org/learn/rust-fundamentals
课程评论:没有评论
课程名称:Rust 基础 课程概述:本课程是全面的 Rust 编程课程,适合各个水平的学习者,包括初学者和有一定编程经验的人。无需具备 Rust 的先前知识,使其对编码新手非常友好。在课程中,您将获得扎实的 Rust 编程基础,并逐步掌握高级概念,从而能够编写高效、可靠且性能优秀的代码。您将理解 Rust 的核心概念和语法,学习有效的代码组织方法。 课程大纲: 1. **安装 Rust 和设置文本编辑器** - 本周您将学习如何利用强大的工具优化 Rust 开发工作流,包括编程建议、使用 Copilot 的提示以及 GitHub Codespaces。通过深入学习编程建议、使用 Copilot 的提示和 Codespaces 的基础知识,您将掌握简化编码过程和更高效协作的技能。 2. **Rust 基础** - 本周您将深入了解 Rust 编程中的控制流、错误处理和函数的基本概念。通过学习条件语句、循环(包括 while 和 for 循环)、break 和 continue 语句、match 控制流和错误处理,您将有效地控制代码流并处理错误。此外,您还将探讨 Rust 中函数的基础知识,包括单位函数、返回值、参数的使用以及借用概念。 3. **使用结构体、类型和枚举** - 本周您将学习 Rust 中的各种数据结构和类型。我们将涵盖定义结构体、创建实例和相关函数的内容。此外,您还将探索使用 String 和 str 类型进行字符串操作,了解向量的值检索和元素添加。课程也会涉及枚举,包括 Option 枚举及其应用,以及如何与枚举一起使用向量。最后,我们将重点关注处理枚举情况的穷举匹配。通过实践评估加强您对 Rust 数据结构和类型的理解。 4. **应用 Rust** - 本周您将探索与代码组织、测试、文档和库开发相关的高级主题。在学习如何使用 doctest 验证代码、处理公共模块和私有模块、管理公共和私有字段、组织测试文件、为代码编写测试、测试私有代码、有效使用测试失败消息以及记录代码等内容时,您将掌握创建健壮且结构良好的 Rust 项目所需的技能。
Name:Installing Rust and Setting Up Your Text Editor
Description:This week, you will learn how to optimize your Rust development workflow using powerful tools such as programming suggestions, prompts with Copilot, and GitHub Codespaces. By diving into the lessons on programming with suggestions, using prompts with Copilot, and exploring the fundamentals of Codespaces, you will acquire the skills to streamline your coding process and collaborate more efficiently with others.
Name:Rust Fundamentals
Description:This week, you will dive into the essential concepts of control flow, error handling, and functions in Rust programming. By exploring the lessons on conditional statements, loops (including the while and for loops), break and continue statements, match control flow, and error handling, you will gain a solid understanding of how to effectively control the flow of your code and handle errors. Additionally, you will explore the fundamentals of functions in Rust, including unit functions, return values, using arguments, and the borrowing concept.
Name:Using Structs, Types, and Enums
Description:This week, you will learn about various data structures and types in Rust. We'll cover defining structs, creating instances, and associated functions. Additionally, you'll explore string manipulation using String and str types. The course will also touch upon vectors, covering value retrieval and element addition. You'll gain familiarity with enums, including the Option enum and its applications, as well as using vectors with enums. Lastly, we'll focus on exhaustive matches for handling enum cases. Practical assessments throughout the course will reinforce your understanding of Rust's data structures and types.
Name:Applying Rust
Description:This week you will explore advanced topics related to code organization, testing, documentation, and library development. By delving into the lessons on verifying code with doctest, working with public and private modules, managing public and private fields, organizing test files, writing tests for your code, testing private code, using test failure messages effectively, and documenting your code, you will acquire the necessary skills to create robust and well-structured Rust projects.
This comprehensive Rust programming course welcomes learners of all levels, including beginners and those with some programming experience. No prior knowledge of Rust is required, making it accessible to coding novices. Throughout the course, you will gain a solid foundation in Rust programming and develop proficiency in advanced concepts, enabling you to write efficient, reliable, and high-performance code. You will understand the core concepts and syntax of Rust, learn effective code organizat