简体   繁体   English

“发电机”和“脚手架”有什么区别?

[英]What is the difference between “generator” and “scaffolding”?

每个人都做(或产生?)什么东西?

scaffolding is generated by a generator. 脚手架由发电机产生。

Generators in general can generate many things, so you have to check the documentation for each. 生成器通常可以生成很多东西,因此您必须检查每个文档。 Generators are run during the development process to create source code. 在开发过程中运行生成器以创建源代码。

The scaffold generator can generate controller, model, and view files, as well as tests and migrations, depending on the options used. 脚手架生成器可以生成控制器,模型和视图文件,以及测试和迁移,具体取决于所使用的选项。

Scaffolding are the default files created by the generator, which is just a quick and dirty implementation. 脚手架是生成器创建的默认文件,这只是一个快速而肮脏的实现。 Like building scaffolding, it is not intended to be the final thing, but just a stand in for the more polished version as you build it. 就像搭建脚手架一样,它并不是最终的目的,而只是在构建时打磨更加精巧的版本的代表。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM