|
所在平台: Udemy |
课程主页: https://www.udemy.com/course/rust-building-reusable-code-with-rust-from-scratch/
课程评论:没有评论
课程名称:从零开始用 Rust 构建可重用的代码 课程概述:Rust 是一种系统编程语言,注重安全性,特别是安全并发,支持函数式和命令式两种编程范式,语法与 C++ 类似,但旨在提供更好的内存安全性,同时保持高性能。在这门实践性很强的课程中,您将从基础知识开始,熟悉 Rust 的基本语法和概念,学习如何定义函数、创建变量等。接下来,您将通过构建一个简单的 crate,使用 Cargo 和 RustDoc 来测试您的代码,并创建一个经过测试、可用且文档完善的 API。然后,您将学习不同形式的代码复用,运用循环、映射、过滤和折叠等功能,节省时间和资源,以便在您的应用程序中以可重用的方式使用代码。在课程结束时,您将能够避免代码重复,编写干净且可重用的代码,并能够自信地使用 Rust 构建各种解决方案。 本培训程序包含两门完整的课程,经过精心挑选,以提供最全面的培训。 第一门课程,学习 Rust,开始熟悉 Rust 的基本语法和概念,从编写 Hello World 程序到定义函数和创建变量。接着,您将学习如何使用 Rustup 管理工具链,并构建第一个命令行程序。随后,您将探索 Rust 的类型系统以编写更好的代码,并在简单的标记语言中付诸实践。您还将学习使用 Rust 的函数式编程特性进行物理模拟,并使用 Rayon crate 进行并行计算。最后,您将掌握最佳实践,通过构建一个经过测试、可用且文档完善的 API 的简单 crate 来测试代码。到课程结束时,您将能够熟练构建各种 Rust 解决方案,并能够利用 Rust 强大的类型系统和通过 Cargo 包管理器获得的丰富库(即 “crates”)生态系统。 第二门课程,使用 Rust 构建可重用代码,将教授您如何构建可重用的 Rust 代码,以便您可以停止复制和粘贴代码。编写适应多种用途的代码。您将通过使用高级特性,如 traits、泛型和宏,来复用代码。您将学习不同形式的代码复用、循环、映射、过滤和折叠,以节省时间和资源。在不牺牲运行时性能的情况下,实现更高水平的复用。将您的代码组织成模块和 crate,以便将其发布到 crates.io。到课程结束时,您将能够避免代码重复,编写干净且可重用的代码。
Rust is a systems programming language with a focus on safety, especially safe concurrency, supporting both functional and imperative paradigms, syntactically similar to C++, but its designers intend it to provide better memory safety while still maintaining performance. With this hands-on, practical course, you'll begin from scratch by getting familiar with the basic syntax and concepts of Rust, defining functions and creating variables & much more. Then you'll learn to test your code by building a simple crate with a tested, usable, well-documented API using Cargo & RustDoc. Next, you will work with different forms of code reuse, loops, map, filter and fold to save time and resources & to use your code in a reusable manner in your apps. By end of this course you will be able to avoid code duplication and write clean reusable code, also you'll be comfortable building various solutions in RustContents and OverviewThis training program includes 2 complete courses, carefully chosen to give you the most comprehensive training possible.The first course, Learning Rust begins by getting familiar with the basic syntax and concepts of Rust, from writing a Hello World program to defining functions and creating variables. Then you'll see how to manage toolchains with Rust up and build your first command-line program. Moving on, you'll explore Rust's type system to write better code and put it into practice in a simple markup language. You'll learn to use Rust's functional programming features to perform a physics simulation and use the Rayon crate to parallelize your computations. Finally, you'll discover the best practices and test your code by building a simple crate with a tested, usable, well-documented API using Cargo and RustDoc. By the end of the video, you'll be comfortable building various solutions in Rust. You'll be able to take advantage of Rust's powerful type system and a rich ecosystem of libraries, or "crates", available through the Cargo package manager.The second course, Building Reusable Code with Rust will start with teaching you how to build reusable Rust code so that you can stop copying and pasting the code. Write code that can adapt to many different usages. You will reuse code by using advanced features such as traits, generics, and macros. You will work with different forms of code reuse, loops, map, filter and fold to save time and resources. Achieve higher-level reuse without sacrificing runtime performance. Organize your code into modules and crates to publish them to crates.io. By the end of the course, you will be able to avoid code duplication and write clean reusable code.