Refactoring Dead Code

Open
#903 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
Under an hour
Newbie friendliness
55/100
Issue type
Refactor
Clarity
Mostly clear
Activity status
Stale
Tech stack
javascript

Research direction

Read the linked Sprint-3/3-dead-code coursework and inspect only that directory in the coursework repository. Identify the unused code described by the exercise, follow the repository’s demonstrated approach for handling dead code, and confirm the directory remains clean after the refactor.

Written by the indexing model from the issue text.

Description

🏝️ Priority Stretch 🐇 Size Small 📅 Sprint 3 Module-Structuring-And-Testing-Data Submit:PR
Link to the coursework

https://github.com/CodeYourFuture/Module-Structuring-and-Testing-Data/tree/main/Sprint-3/3-dead-code

Learning Objectives
  • Identify 'dead code' in an existing code base
  • Demonstrate how we handle 'dead code' in our codebases
Why are we doing this?

The presence of "dead code" can impact the efficiency and developer experience of a code repository. Learning to refactor code to be clean and efficient will help you be a better developer and future-proof your code.

Maximum time in hours

1

How to get help

Share your blockers in your class channel
https://curriculum.codeyourfuture.io/guides/getting-help/asking-questions/

How to submit
  1. In your fork of the coursework repo, checkout the main branch
  2. Make a new branch from main called coursework/sprint-3-dead-code
  3. Make regular small commits in this branch with clear messages.
  4. When you are ready, open a PR to the CYF repo, following the instructions in the PR template.

There are several directories in this repo. Make a new branch for each issue in each sprint. Only change files in the Sprint-3/3-dead-code directory.

Anything else?

No response

Dominant language
JavaScript
Stars
0
Forks
397
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from CodeYourFuture/Module-Structuring-and-Testing-Data

All issues in CodeYourFuture/Module-Structuring-and-Testing-Data

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.