What is a recommended approach to enable others to extend your generator?

Prepare for the Yeoman (YN) Test. Use flashcards and multiple-choice questions, all with hints and explanations, to get ready for your upcoming exam. Enhance your learning experience!

Multiple Choice

What is a recommended approach to enable others to extend your generator?

Explanation:
Providing a base generator along with clear documentation on how to extend it creates a solid foundation for others to build on. When you publish the base and spell out extension points—such as how to add new prompts, actions, or templates, or how to compose with other generators—developers can create compatible extensions without duplicating work or altering your core logic. This encourages reuse, collaboration, and easier maintenance, because extensions follow a public API rather than diverging through forks. Keeping logic private or hiding extension points prevents anyone from customizing or enriching your generator, and forcing users to fork makes upgrades and compatibility far more painful.

Providing a base generator along with clear documentation on how to extend it creates a solid foundation for others to build on. When you publish the base and spell out extension points—such as how to add new prompts, actions, or templates, or how to compose with other generators—developers can create compatible extensions without duplicating work or altering your core logic. This encourages reuse, collaboration, and easier maintenance, because extensions follow a public API rather than diverging through forks. Keeping logic private or hiding extension points prevents anyone from customizing or enriching your generator, and forcing users to fork makes upgrades and compatibility far more painful.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy