Skip to content

docs: add required examples #143

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

Merged
merged 6 commits into from
Jul 15, 2020
Merged

Conversation

mattsb42-aws
Copy link
Member

Issue #, if available:

#103

Description of changes:

This initial commit only contains the requirements for examples. Either through expanding this PR or via a separate PR, I'll be adding spec documents for each of the required examples.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

acioc
acioc previously approved these changes Jul 2, 2020
Copy link
Contributor

@acioc acioc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a good start.

Comment on lines +87 to +89
- Every example SHOULD follow a consistent layout and framing.

- ex: Consistent function name and input parameters across examples.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is fine since it's a SHOULD, but I definitely expect different implementations to have language-specific naming and (potentially) a different number of parameters for specific operations.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yup. My intention there was to avoid requiring the same pattern across implementations but to encourage each implementation to be internally consistent.

Comment on lines +18 to +19
- [Python (DEV)](https://github.com/aws/aws-encryption-sdk-python/blob/keyring/examples/)
- [Java (DEV)](https://github.com/aws/aws-encryption-sdk-java/blob/keyring/src/examples/)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(DEV)? Both here and below.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's meant to leave a breadcrumb for the existing implementations but explicitly remind us that they're not in master yet.

@mattsb42-aws
Copy link
Member Author

If there are no objections, I think that introducing additional templates for specific examples fits best as a separate PR.

Comment on lines 21 to 22
| Python | [aws-encryption-sdk-c](https://github.com/aws/aws-encryption-sdk-python) |
| Java | [aws-encryption-sdk-javascript](https://github.com/aws/aws-encryption-sdk-java) |
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Link text should be "aws-encryption-sdk-python" and "aws-encryption-sdk-java" here?

Comment on lines 92 to 94
- If an example MUST contain logic that is not reasonable for production use,
it MUST include clear comments identifying that logic as such
and instructing the reader what they SHOULD do instead.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should the comments also identify the reason that the logic is not reasonable for production use?

Comment on lines +72 to +73
Each implementation MUST include all examples
in its continuous integration testing.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Such a hard +1

Copy link
Contributor

@alex-chew alex-chew left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@seebees seebees left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

great!

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

Successfully merging this pull request may close these issues.

4 participants