Skip to content

Conversation

prince-patel23
Copy link

This PR addresses RFC #1578 by improving the README examples for the math/iter/special namespace package. The current README examples are minimal and not particularly informative, so this PR aims to provide more detailed and useful examples to showcase the functionality of the namespace.

Changes Made:

  • Updated the example code block in the README to demonstrate the usage of the iterSqrt function from the math/iter/special namespace.
  • Added comments to clarify the purpose of the example code.

Please review and provide feedback. Once approved, this PR can be merged.

The README file serves as a crucial entry point for users exploring a package. Hence, it's essential to provide clear and informative examples that demonstrate the package's functionality effectively. Prior to this commit, the README examples for the math/iter/special namespace were minimal and did not adequately showcase the available functionality.

To address this, I have updated the README examples to include a more detailed demonstration of the `iterSqrt` function, which is one of the key functions within the namespace. This function iteratively computes the square root of each value in an array, making it a useful tool for certain mathematical applications.

Additionally, I have included comments within the example code to provide further clarity on the functionality being demonstrated. These comments help guide users through the example and explain the purpose of each step.

By improving the README examples in this manner, we aim to provide users with a better understanding of the capabilities offered by the math/iter/special namespace. This should ultimately enhance the overall user experience and make it easier for users to leverage the functionality provided by the package.

This commit closes RFC stdlib-js#1578.


Signed-off-by: Patel Prince <[email protected]>
@prince-patel23 prince-patel23 changed the title [RFC] Improve README examples for math/iter/special namespace( prince-patel23) refector: Improve README examples for math/iter/special namespace Mar 11, 2024
@Planeshifter Planeshifter changed the title refector: Improve README examples for math/iter/special namespace refector: Improve README examples for math/iter/special namespace Mar 12, 2024
@Planeshifter Planeshifter added the autoclose: Project Conventions Pull request which should be auto-closed due to not following project conventions. label Sep 7, 2024
@stdlib-bot
Copy link
Contributor

Thank you for working on this pull request. However, we cannot accept your contribution as this pull request does not follow project conventions.

We place a high value on consistency throughout the stdlib codebase, and this pull request was found to significantly deviate from stdlib conventions. We encourage you to closely examine other packages in stdlib and attempt to emulate the practices and conventions found therein.

  • If you are attempting to contribute a new package, sometimes the best approach is to simply copy the contents of an existing package and then modify the minimum amount necessary to implement the feature (e.g., changing descriptions, parameter names, and implementation).
  • If you are contributing tests, find a package implementing a similar feature and emulate the tests of that package.
  • If you are updating documentation, examine several similar packages and emulate the content, style, and prose of those packages.

In short, the more effort you put in to ensure that your contribution looks and feels like stdlib—including variables names, bracket spacing, line breaks, etc—the more likely that your contribution will be reviewed and ultimately accepted. We encourage you to closely study the codebase before continuing to work on this pull request.

Thank you again for your interest in stdlib, and we look forward to reviewing your future contributions.

@stdlib-bot stdlib-bot closed this Sep 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

autoclose: Project Conventions Pull request which should be auto-closed due to not following project conventions.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants