Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation variables could be more diverse? #659

Open
benoittgt opened this issue Feb 16, 2023 · 1 comment
Open

Documentation variables could be more diverse? #659

benoittgt opened this issue Feb 16, 2023 · 1 comment

Comments

@benoittgt
Copy link
Contributor

Hello

This subject has been initially open on discourse. Feel free to close it if you want to keep this as a discussion.

I enjoy reading the documentation of Stimulus but sometimes I find it hard to understand how variables are passed when they are too similar. For example on “outlet” doc where in multiple case “result” could be different?

Same in cross controller event. Where we don’t know what we can change at first sight and what needs to be similar. Like at first reading I was thinking ; what “copy” represent?

Also I rarely have variables with one word. Handling a mix of dash, underscore (Rails), cameCase can leads to easy mistakes. Maybe the doc could be more diverse on this part too in examples.

Thanks

@marcoroth
Copy link
Member

Hey @benoittgt, thank you for taking the time to open this issue!

I really appreciate your feedback on the documentation and I agree with you that it could benefit from more diverse examples to better showcase the appropriate usage of each API.

At the same time I think it's important that we don't use too different or too specific examples. So that they are still comparable and showcase how the API is used, without having to understand the context/domain of the example first, if that makes sense?

I'd be more than happy to merge any suggestions that you may have in mind to improve the documentation and provide a better understanding of the APIs. Thanks for bringing this up!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants