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

Update dot concatenation of Express Tutorial Part 3 #20599

Merged
merged 1 commit into from
Sep 12, 2022
Merged

Update dot concatenation of Express Tutorial Part 3 #20599

merged 1 commit into from
Sep 12, 2022

Conversation

lopezac
Copy link
Contributor

@lopezac lopezac commented Sep 12, 2022

I think it improves reading as is more easy view what happens, if the dot is before the word. From line 451 to 453 is used the convention that I'm trying to add here. example change from "
Athlete.
find().
where('sport').equals('Tennis')
"
to "
Athlete
.find()
.where('sport').equals('Tennis')
".

Description

Motivation

Additional details

Related issues and pull requests

I think it improves reading as is more easy view what happens, if the dot is before the word.
From line 451 to 453 is used the convention that I'm trying to add here.
example change from "
  Athlete.
  find().
  where('sport').equals('Tennis')
"
to "
  Athlete
  .find()
  .where('sport').equals('Tennis')
".
@lopezac lopezac requested a review from a team as a code owner September 12, 2022 18:02
@lopezac lopezac requested review from teoli2003 and removed request for a team September 12, 2022 18:02
@github-actions github-actions bot added the Content:Learn Learning area docs label Sep 12, 2022
Copy link
Contributor

@teoli2003 teoli2003 left a comment

Choose a reason for hiding this comment

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

Thank you! Yes, it is better and is even our convention.

Note that, in a few months, we will use Prettier to format our code, so don't worry too much about these formatting details.

@teoli2003 teoli2003 merged commit a4597fc into mdn:main Sep 12, 2022
@github-actions
Copy link
Contributor

himanshugarg pushed a commit to himanshugarg/content that referenced this pull request Sep 27, 2022
I think it improves reading as is more easy view what happens, if the dot is before the word.
From line 451 to 453 is used the convention that I'm trying to add here.
example change from "
  Athlete.
  find().
  where('sport').equals('Tennis')
"
to "
  Athlete
  .find()
  .where('sport').equals('Tennis')
".
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Content:Learn Learning area docs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants