Skip to content

London | 26-ITP-May | Gideon Defar | sprint 1 | Coursework - #1437

Open
gideondefar wants to merge 7 commits into
CodeYourFuture:mainfrom
gideondefar:feature/sprint-1-coursework
Open

London | 26-ITP-May | Gideon Defar | sprint 1 | Coursework#1437
gideondefar wants to merge 7 commits into
CodeYourFuture:mainfrom
gideondefar:feature/sprint-1-coursework

Conversation

@gideondefar

Copy link
Copy Markdown

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 mandatory Sprint 1 exercises. The optional Stretch exercise was not completed due to time constraints.

@gideondefar gideondefar added 📅 Sprint 1 Assigned during Sprint 1 of this module Core This is a core task and should be completed by all trainees Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. Module-Data-Groups The name of the module. labels Aug 15, 2026
@gideondefar gideondefar changed the title London | 26-ITP-May | Gideon Defar | sprint 1 | course work London | 26-ITP-May | Gideon Defar | sprint 1 | Coursework Aug 15, 2026
@hackertainment hackertainment added Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. and removed Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. labels Aug 20, 2026
@hackertainment

Copy link
Copy Markdown

I think your code is well organised and test cases are also clearly written. Keep it up. :-)

@hackertainment hackertainment added Reviewed Volunteer to add when completing a review with trainee action still to take. and removed Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. labels Aug 20, 2026
@gideondefar

gideondefar commented Aug 20, 2026

Copy link
Copy Markdown
Author

I think your code is well organised and test cases are also clearly written. Keep it up. :-)

Thanks for the positive feedback but the label was changed to "reviewed" is it intensional or its made by accident?

@abdishakoor-dev

abdishakoor-dev commented Aug 21, 2026

Copy link
Copy Markdown

Two things to sort before this can be marked complete:

1. The refactor exercise hasn't been started

Sprint-1/refactor/includes.js line 1 says:

// Refactor the implementation of includes to use a for...of loop

The function still uses the original indexed for (let index = 0; index < list.length; index++) loop, so there's no refactoring done in this file yet. The only change in the diff is the trailing newline.

2. The fix exercise: work in median.js, not median.test.js

median.test.js line 5 says:

// Fix the implementation of calculateMedian so it passes all tests

The test file is what needs to pass for this exercise, so leave it exactly as it was and change only median.js until the tests it already contains pass. At the moment the original tests have been replaced with a new set of tests, so the ones you were asked to pass aren't being run, so restore the original median.test.js please.

Hint: your first line in median.js is list = list.filter((item) => typeof item === "number" && !isNaN(item)); which assumes list is an array. What if it's NOT an array? What if a string or object or nothing is passed in? filter can only work with array? What do you need to do in those cases?

Everything in the implement folder (sum, max, dedupe) looks good, nice clean handling of the edge cases there.

@hackertainment

hackertainment commented Aug 21, 2026

Copy link
Copy Markdown
image

I think your code is well organised and test cases are also clearly written. Keep it up. :-)

Thanks for the positive feedback but the label was changed to "reviewed" is it intensional or its made by accident?

There are two fixes (the second and third one) required as you scroll up a bit. I made comments directly with the corresponding lines of code. Thank you.

@gideondefar

Copy link
Copy Markdown
Author

median.test.js line 5 says:

// Fix the implementation of calculateMedian so it passes all tests

@hackertainment I hope fixed and completed sprint 1 exercises.

@hackertainment

Copy link
Copy Markdown

@gideondefar gideondefar added Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. and removed Reviewed Volunteer to add when completing a review with trainee action still to take. labels Aug 21, 2026
@gideondefar

Copy link
Copy Markdown
Author

https://github.com/CodeYourFuture/Module-Data-Groups/pull/1437/changes/BASE..99b017e656a5d1061c2dcf1bb81cc69aba5cd031#r3820288450 Please add test case for this one as well. thank you.

@hackertainment added test cases and tested on the terminal thanks for the review.

@hackertainment hackertainment added Complete Volunteer to add when work is complete and all review comments have been addressed. and removed Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. labels Aug 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Complete Volunteer to add when work is complete and all review comments have been addressed. Core This is a core task and should be completed by all trainees Module-Data-Groups The name of the module. 📅 Sprint 1 Assigned during Sprint 1 of this module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants