Skip to content

Loops and Arrays: Flip order of sections on arrays and loops #29705

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

Conversation

MaoShizhong
Copy link
Contributor

@MaoShizhong MaoShizhong commented May 16, 2025

Because

As discussed in (#29521 (comment)) and (#29521 (comment)), the current order of arrays -> loops -> array methods feels a little odd, especially given the contents of the external resources linked.

It would flow a lot better to go loops first then arrays and array methods, since the arrays contents includes loop concepts, and the loop contents need only know a basic description of an array.

This PR

  • Renames arrays_and_loops.md to loops_and_arrays.md to reflect the new contents order.
  • Flips the Arrays and Loops sections around, along with relevant LO/KC items.
  • Amends section wording to reflect new contents order.

Issue

Must only be merged at the same time as (TheOdinProject/theodinproject#5000) (which has now been approved) due to a change in the website lesson fetching link.

A quick grep indicates this lesson is no longer linked anywhere in the curriculum so no further changes are necessary.

Pull Request Requirements

  • I have thoroughly read and understand The Odin Project curriculum contributing guide
  • The title of this PR follows the location of change: brief description of change format, e.g. Intro to HTML and CSS lesson: Fix link text
  • The Because section summarizes the reason for this PR
  • The This PR section has a bullet point list describing the changes in this PR
  • If this PR addresses an open issue, it is linked in the Issue section
  • If any lesson files are included in this PR, they have been previewed with the Markdown preview tool to ensure it is formatted correctly
  • If any lesson files are included in this PR, they follow the Layout Style Guide

Flows better this way given the contents of the external resources.
@github-actions github-actions bot added the Content: Foundations Involves the Foundations content label May 16, 2025
MaoShizhong added a commit to MaoShizhong/theodinproject that referenced this pull request May 16, 2025
@MaoShizhong MaoShizhong marked this pull request as ready for review May 16, 2025 23:10
@rlmoser99 rlmoser99 requested review from a team and bycdiaz and removed request for a team May 17, 2025 15:39
Copy link
Member

@KevinMulhern KevinMulhern left a comment

Choose a reason for hiding this comment

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

Great changes 💪 thanks for doing this @MaoShizhong

@KevinMulhern KevinMulhern merged commit 56a34fd into TheOdinProject:main May 22, 2025
2 checks passed
KevinMulhern pushed a commit to TheOdinProject/theodinproject that referenced this pull request May 22, 2025
<!-- Thank you for taking the time to contribute to The Odin Project. In
order to get this pull request (PR) merged in a reasonable amount of
time, you must complete this entire template. -->

## Because

To accommodate the changes in
TheOdinProject/curriculum#29705

Must be merged alongside that PR to avoid 404s for learners.

## This PR
<!-- A bullet point list of one or more items describing the specific
changes. -->
- Renames the "Arrays and Loops" lesson to "Loops and Arrays", including
relevant paths
- Fetches renamed lesson in the Foundations path


## Issue
<!--
If this PR closes an open issue in this repo, replace the XXXXX below
with the issue number, e.g. Closes #2013.

If this PR closes an open issue in another TOP repo, replace the #XXXXX
with the URL of the issue, e.g. Closes
https://github.com/TheOdinProject/curriculum/issues/XXXXX

If this PR does not close, but is related to another issue or PR, you
can link it as above without the 'Closes' keyword, e.g. 'Related to
#2013'.
-->
N/A

## Additional Information
<!-- Any other information about this PR, such as a link to a Discord
discussion. -->


## Pull Request Requirements
<!-- Replace the whitespace between the square brackets with an 'x',
e.g. [x]. After you create the PR, they will become checkboxes that you
can click on. -->
- [x] I have thoroughly read and understand [The Odin Project
Contributing
Guide](https://github.com/TheOdinProject/theodinproject/blob/main/CONTRIBUTING.md)
- [x] The title of this PR follows the `keyword: brief description of
change` format, using one of the following keywords:
    - `Feature` - adds new or amends existing user-facing behavior
- `Chore` - changes that have no user-facing value, refactors,
dependency bumps, etc
    - `Fix` - bug fixes
-   [x] The `Because` section summarizes the reason for this PR
- [x] The `This PR` section has a bullet point list describing the
changes in this PR
- [x] I have verified all tests and linters pass after making these
changes.
- [x] If this PR addresses an open issue, it is linked in the `Issue`
section
-   [x] If applicable, this PR includes new or updated automated tests
@MaoShizhong MaoShizhong deleted the loops-arrays-content-flip branch May 22, 2025 00:42
MaoShizhong added a commit to MaoShizhong/curriculum that referenced this pull request May 22, 2025
KevinMulhern pushed a commit that referenced this pull request May 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Content: Foundations Involves the Foundations content
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants