《用 Rust 从零构建生产级应用》封面

用 Rust 从零构建生产级应用

Zero To Production In Rust

Luca Palmieri · 初版 2022 年

24人推荐
29位读者提及
39次提及

为什么值得读

  • 采用做中学的实战项目驱动教学
  • 详细介绍生产级Web后端最佳实践
  • 展示如何在真实生产环境中应用Rust

<em>Zero To Production</em>是你开启Rust后端开发者之旅的理想起点。你将通过实践进行学习:从零开始构建一个功能完备的电子邮件新闻通讯API。你将学习如何:<ul> <li>浏览并利用Rust的crates生态系统</li> <li>构建应用程序架构以实现模块化和可扩展性</li> <li>编写从单一单元测试到全套集成测试的各类测试</li> <li>利用Rust的类型系统强制执行领域不变式</li> <li>对API用户进行身份验证与授权</li> <li>实现健壮的错误

Hacker News 上怎么说

  • 学 Rust 我就用这两本:1. 《Command-Line Rust: A Project-Based Primer for Writing Rust CLIs》 2. 《Zero To Production In Rust》(这本其实就是一个贯穿始终的项目)

    Learning Rust, I use these 2: 1. Command-Line Rust: A Project-Based Primer for Writing Rust CLIs 2. Zero To Production In Rust (it's actually one project)

  • 这本书写得不错,但我感觉对初学者来说太难了。我会建议先读读 Luca Palmieri 的《Zero to Production in Rust》,尤其是如果你更喜欢边做边学的方式的话。

    This book is good but I think it’s too hard for beginners. I would recommend to read ‘zero to production in Rust’ by Luca Palmieri first especially if you like more learning by doing approach

  • 我不确定我同意文章的前提。Rust 可能很难,是的,但它也能把开发者的生产力提升到其他语言之上。在 Go 里,我得担心是不是到处都用 `if err != nil` 检查了异常,而在 Rust 里,我可以依赖编译器通过 Result 类型告诉我是否没有穷尽检查。代数数据类型也一样,或者……

    I'm not sure I agree with the article's premises. Rust can be difficult, yes, but it can also heighten developer productivity above other languages. In Go, I'd have to worry about whether I checked for exceptions via `if err != nil` everywhere, while with Rust, I can depend on the compiler telling me if I haven't done so exhaustively, via the Result type. Same for having algebraic data types or, w

  • 是的,已经完全可以用在生产环境了。去读读 Luca Palmieri 写的《Zero To Production In Rust》来学习最佳实践:https://www.zero2prod.com/

    Yes, it's ready. Read Zero To Production In Rust by Luca Palmieri for best practices: https://www.zero2prod.com/

  • 先看官方那本《The Rust Programming Language》(Rust Book,基础),然后看《Rust for Rustaceans》(中高级进阶,扣底层细节),再读《Zero to Production in Rust》(把学到的东西真正落地到生产)。关于 async,那本《async rust》挺有帮助,但它还在编写中。我建议直接看 tokio 官网的文档来替代。

    Read the actual “Rust Book” (basics), then “Rust for Rusteceans” (medium to advanced nuances of the basics), then “Zero to Production in Rust” (using the previous learnings in production). The “async rust” book is helpful for async, but it’s still a work in progress. I would suggest reading the documents on the tokio site as a substitute.

  • ……除了这里列出的资源,也可以看看 O'Reilly 出的《Programming Rust》第二版,可以说是比官方书更好用的入门与参考书。如果你对 Web 后端开发感兴趣,看看《Zero to Production in Rust》,它非常贴合实战,手把手教你搭建一个服务。

    …resources listed here, check out OReilly's "Programming Rust" 2nd edition, arguably a better introduction and reference than the official book. If you're into backend web development, take a look at "Zero to Production" in Rust for an applied, hands-on approach to building a server.

正在加载完整评论……

键盘快捷键

/
聚焦搜索框
j / k
下一本 / 上一本
Enter
打开选中的书
Esc
关闭 / 返回
g h
回到首页
g b
值得读精选
g t
历史总榜
g r
上升最快
g l
我的书架
?
显示本帮助