Skip to content

Conversation

@Baba05206
Copy link

Learners, PR Template

Self checklist

  • I have titled my PR with Region | Cohort | FirstName LastName | Sprint | Assignment Title
  • My changes meet the requirements of the task
  • I have tested my changes
  • My changes follow the style guide

Changelist

Completed all the tasks as per the readme for exercises 1 - 3 of Sprint 1.
Tested all changes

Questions

@Baba05206 Baba05206 added 📅 Sprint 1 Assigned during Sprint 1 of this module Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. Module-Data-Flows The name of the module. labels Dec 15, 2025
@LonMcGregor LonMcGregor added the Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. label Dec 16, 2025
Copy link

@LonMcGregor LonMcGregor left a comment

Choose a reason for hiding this comment

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

This looks good overall, but I've left some small comments to make it even better

},
];
// Task 1: Gryffindor members
for (let person of hogwarts) {

Choose a reason for hiding this comment

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

This works well but you could maybe improve it by trying to use some higher order functions instead of an if inside a for loop. Can you see how you might use these?

Copy link
Author

Choose a reason for hiding this comment

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

I have now refactored using higher‑order functions (filter + forEach) to remove manual loops and if‑conditions. This makes the logic clearer, more declarative, and easier to extend.

Choose a reason for hiding this comment

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

Are you sure you needed to commit this file? Is the change made directly relevant to the sprint task?

Copy link
Author

Choose a reason for hiding this comment

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

there was an error that i missed, but I believe this is a relevant task

@LonMcGregor LonMcGregor added Reviewed Volunteer to add when completing a review with trainee action still to take. and removed Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. labels Dec 16, 2025
@Baba05206 Baba05206 added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Dec 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Module-Data-Flows The name of the module. Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. Reviewed Volunteer to add when completing a review with trainee action still to take. 📅 Sprint 1 Assigned during Sprint 1 of this module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants