“
如果构建区块链就是做菜的话,这本 《Substrate 菜谱》 可以陪伴你从烹饪小白成长为大厨。这本 “菜谱” 展示了使用 Substrate 构建区块链时的最佳实践,每个菜谱均包含完整的工作代码示例及描述该代码的详细文章。PolkaWorld 社区正在翻译本文档,后续将在 PolkaWorld 网站和公众号上连载。
Substrate 菜谱 [1]
为心怀理想的区块链大厨准备的实操烹饪指南
Substrate 菜谱是一本工作示例的菜谱,展示了使用 Substrate[2] 构建区块链时的最佳实践。每个菜谱均包含完整的工作代码示例以及描述该代码的详细文章。这本书是开源[3]的。如果你想参与其中,请查看贡献指南[4]来了解参与贡献的结构和方向。
如何使用这本书[5]
要读到这本书,最简单方法的是访问 https://substrate.dev/recipes。
前两章应该按顺序阅读。
在第 1 章布置厨房[6],你将建立工具链,编译区块链节点,并学习与区块链进行交互。
在第 2 章开胃菜[7]中,你将烹饪你的前几个菜谱,学习 Substrate 开发的基础知识。
本书的其余部分即 “主菜” 可以按任何顺序阅读;你可以跳到你感兴趣的任何菜谱。
记住,你不可能光靠阅读就学会做饭。在阅读本书时,穿上围裙,拿出锅碗瓢盆,练习对食谱进行编译、测试和修改。在厨房中写写代码,提取模式,并将其应用于你要解决的问题吧!
寻求帮助[8]
学习任何新技能时,都会不可避免地在某些地方卡住。当你遇到困难时,可以通过以下几种方式寻求帮助:
Stack Overflow
[9] 上提问
Substrate Technical Riot channel
[10] 中提问
新 issue
[11]
Substrate 是什么?[12]
Substrate[13] 是用于构建区块链的框架。阅读以下博客文章,会让你对 Substrate 有一个概括的了解:
[14]
[15]
[16]
要了解有关 Substrate 的更多信息,请参见官方文档[17]。
学习 Rust[18]
要想在使用 Substrate 时事半功倍,就需要对 Rust 有所了解。幸运的是,Rust 社区以全面的文档和教程而闻名。最初学习 Rust 的最常见资源是 The Rust Book[19]。如果你想查看常用的 crate 使用方式示例, Rust by Example[20] 也很方便。
虽然了解一些 Rust 是必要的,但是等修炼成 Rust 专家之后再开始学习 Substrate 是不明智的。与其在学习 Substrate 之前先学习 Rust,不如在学习 Substrate 时学习 Rust。如果你不了解 Rust 的基础知识,那么本书结尾处还有更多 Rust 资源[21] 。
参考链接
Substrate 菜谱 : https://substrate.dev/recipes/introduction.html#substrate-recipes-
[2]
Substrate: https://github.com/paritytech/substrate
[3]
开源: https://github.com/substrate-developer-hub/recipes
[4]
贡献指南: https://github.com/substrate-developer-hub/recipes/blob/master/CONTRIBUTING.md
[5]
如何使用这本书: https://substrate.dev/recipes/introduction.html#how-to-use-this-book
[6]
布置厨房: https://substrate.dev/recipes/1-prepare-kitchen/index.html
[7]
开胃菜: https://substrate.dev/recipes/2-appetizers/index.html
[8]
寻求帮助: https://substrate.dev/recipes/introduction.html#getting-help
[9]
Stack Overflow: https://stackoverflow.com/questions/tagged/substrate
[10]
Substrate Technical Riot channel: https://riot.im/app/#/room/#substrate-technical:matrix.org
[11]
新 issue: https://github.com/substrate-developer-hub/recipes/issues/new
[12]
Substrate 是什么?: https://substrate.dev/recipes/introduction.html#what-is-substrate
[13]
Substrate: https://github.com/paritytech/substrate
[14]
Substrate 是什么?: https://www.parity.io/what-is-substrate/
[15]
Substrate 简明概述: https://www.parity.io/substrate-in-a-nutshell/
[16]
Substrate 和 Polkadot 简要总结: https://www.parity.io/a-brief-summary-of-everything-substrate-polkadot/
[17]
官方文档: https://substrate.dev/
[18]
学习 Rust: https://substrate.dev/recipes/introduction.html#learning-rust
[19]
The Rust Book: https://doc.rust-lang.org/book/index.html
[20]
Rust by Example: https://doc.rust-lang.org/rust-by-example/index.html
[21]
更多 Rust 资源: https://substrate.dev/recipes/more-resources.html
原文:https://substrate.dev/recipes/introduction.html
翻译:PolkaWorld 社区
作者:,来源:PolkaWorld 公众号
郑重声明:本文版权归原作者所有,转载文章仅为传播更多信息之目的,如作者信息标记有误,请第一时间联系我们修改或删除,多谢。
郑重声明:本文版权归原作者所有,转载文章仅为传播更多信息之目的,如作者信息标记有误,请第一时间联系我们修改或删除,多谢。