-
-
Notifications
You must be signed in to change notification settings - Fork 159
West Midlands | 25-ITP-Sep | Baba Yusuf | Sprint 3 | Refactoring-dead-code #359
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
base: main
Are you sure you want to change the base?
Conversation
|
Your PR couldn't be matched to an assignment in this module. Please check its title is in the correct format, and that you only have one PR per assignment. If this PR is not coursework, please add the NotCoursework label (and message on Slack in #cyf-curriculum or it will probably not be noticed). If this PR needs reviewed, please add the 'Needs Review' label to this PR after you have resolved the issues listed above. |
eliza-an
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well done, this looks good. Just remember that deleting and commenting out is not the same thing and would cause issues in a real codebase. As for the rest of the assignment. It looks great! well done!
|
|
||
| function sayHello(greeting, name) { | ||
| const greetingStr = greeting + ", " + name + "!"; | ||
| // const greetingStr = greeting + ", " + name + "!"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well done for doing this correctly! But the instructions said to remove the code and you commented it out! This is important, because comments taks up space in your codebase, so commenting out and deleting are not the same thing! Make sure to delete them next time :)
| // Find the instances of unreachable and redundant code - remove them! | ||
|
|
||
| let testName = "Jerry"; | ||
| const greeting = "hello"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This initial Jerry name is also never used is it?
| //console.log(greetingStr); | ||
| } | ||
|
|
||
| testName = "Aman"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that comment at the bottom on line 16 is also redundant!
Learners, PR Template
Self checklist
Changelist
Commented out the dead codes in exercises 1 & 2
Questions