Skip to content

Documentation edits for concise, active voice #355

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

Open
wants to merge 32 commits into
base: main
Choose a base branch
from

Conversation

bradhanks
Copy link
Contributor

Removing filler words and passive voice from docs #354

bradhanks added 30 commits April 1, 2025 20:39
* added "messages" inside the bold after "the" was no longer breaking up an active phrase
* Multiple "you" + verb instances in paragraph form required reworking to make  active
* I tried to get from active to passive with the minimum amount of edits and no change in the information being presented
* removed "should"
* updated list layout
* removed "you want", "you can"s
* Added context and formatting to the example
* added example for `init/0` @doc
* removing some passive voice and weak words like "should"
* minor rewrite for different word choice/sentence structure.
*white space changes

Note: If we don't like the formatting of the `c:prepare_for_start/2` parameters, here are the edits in paragraph form:

 The `module` parameter represents the Broadway module passed as the first argument to
  `Broadway.start_link/2`. The `options` parameter contains all the Broadway topology options passed
  as the second argument to `Broadway.start_link/2`.
* "in order to"
* "simply"
* "we need  to"/"we can"
* "you need to"
* "blank of blanks"
* "you should"
* "never stops" (weakly double negative)
* Change "you can blank" to "blank"
Copy link
Collaborator

@whatyouhide whatyouhide 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 ton of changes, I think it might have been easier to review if split up into a few PRs (fix titlecase headers, remove most "you can"s, and another one maybe). I didn't read the whole PR but there are a few spots already where I think the changes might not really make sense, thoguhts?

@@ -43,7 +43,7 @@ end

## A quick example: SQS integration

Assuming you have added [`broadway_sqs`](https://github.com/dashbitco/broadway_sqs) as a dependency and configured your SQS credentials accordingly, you can consume Amazon SQS events in only 20 LOCs:
Assuming you have added [`broadway_sqs`](https://github.com/dashbitco/broadway_sqs) as a dependency and configured your SQS credentials accordingly, consume Amazon SQS events in only 20 LOCs:
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think this is significantly worse without you can?

@@ -202,7 +201,7 @@ See the notes on [`Producer concurrency`](https://hexdocs.pm/broadway/Broadway.h
and [`Batcher concurrency`](https://hexdocs.pm/broadway/Broadway.html#module-batcher-concurrency)
for details.

Here's an example on how you could tune them according to
Here's an example on how you tune them according to
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
Here's an example on how you tune them according to
Here's an example on how to tune them according to

Think this reads better?

@@ -236,5 +235,4 @@ your needs.
In order to get a good set of configurations for your pipeline, it's
important to respect the limitations of the servers you're running,
as well as the limitations of the services you're providing/consuming
data to/from. Broadway comes with telemetry, so you can measure your
pipeline and help ensure your changes are effective.
data to/from. Measure your pipeline with [telemetry](https://hexdocs.pm/telemetry/readme.html) to ensure your changes are effective. (It comes standard.)
Copy link
Collaborator

Choose a reason for hiding this comment

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

I really don't think the parentheses there work well. What about

Suggested change
data to/from. Measure your pipeline with [telemetry](https://hexdocs.pm/telemetry/readme.html) to ensure your changes are effective. (It comes standard.)
data to/from. To measure your pipeline and ensure your changes are effective, use the [telemetry](https://hexdocs.pm/telemetry/readme.html) integration that comes with Broadway.

@@ -207,7 +201,7 @@ Finally, we can send some sample messages to Kafka using using `:brod` with the
:ok = :brod.produce_sync(client_id, topic, partition, _key="", "#{i}")
end)

You should see the output showing the generated batches:
See the output showing the generated batches:
Copy link
Collaborator

Choose a reason for hiding this comment

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

Nope I don't think this works well?

@coveralls
Copy link

Pull Request Test Coverage Report for Build d7f4e00f6c0f6ddbd0b6e1a253eb787dd72157af-PR-355

Details

  • 2 of 2 (100.0%) changed or added relevant lines in 1 file are covered.
  • 1 unchanged line in 1 file lost coverage.
  • Overall coverage remained the same at 92.972%

Files with Coverage Reduction New Missed Lines %
lib/broadway/topology/terminator.ex 1 92.86%
Totals Coverage Status
Change from base Build 72137a564331a1552fa57a4ded8bc0f0cf0217b7: 0.0%
Covered Lines: 635
Relevant Lines: 683

💛 - Coveralls

@bradhanks
Copy link
Contributor Author

This is a ton of changes, I think it might have been easier to review if split up into a few PRs (fix titlecase headers, remove most "you can"s, and another one maybe). I didn't read the whole PR but there are a few spots already where I think the changes might not really make sense, thoguhts?

I can break it up no problem. 👍🤓

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.

3 participants