question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

DRY up the codebase

See original GitHub issue

Welcome new contributors!

In this experience, you are a doer. You take action first, and learn about the action afterwards. This design helps you get comfortable in the unknown, an entity that is omnipresent in the coding world. If you’re feeling confused, that’s ok. Read the instructions carefully, trust the process, and have fun!

To help guide you through the experience, there will be comment blocks (like the one your reading now) that explains just enough context before your next action.

Open Source and GitHub

An open source project is any code that can be freely used, changed, and shared by anyone. An open source project usually contains a license that declares specific terms of use. Open source projects are important because they help develop and spread great ideas and push technology forward.

GitHub is a website that hosts open source projects. A project on GitHub is called a repository (or repo), a folder that holds code. GitHub allows people to collaborate on a repo through features like issues and pull requests. By the end of this experience, you’ll understand how to use these features to contribute your ideas to other projects.

Issues

Issues (like this one) allow people to track and discuss any task related to the project. Issues are not always problems with the code. They can also be feature requests or questions about how to use the code.

To help organize the project, issues can be tagged with one or more label. When you graduate from this project and are looking for more ways to contribute, look for projects with issues tagged with labels help wanted, good first issue, up-for-grabs, first-timers-only, or something similarly inviting.

Your turn

Now that you have a bit of context about the experience, continue reading the body of the issue to learn how to fix it.


We’re off to an amazing start disrupting the calculator industry. Our beautiful contributors burned all of last week’s midnight oil to release our first version and the initial reception has been unprecedented!

After a code review from some experts, we’ve learned that there’s some unnecessary repetition in the codebase. Removing this repetition will make our codebase easier to maintain as we continue to grow into the world’s best calculator company.

The team is burnt out from last week’s push and needs your help! Before blowing half of our capital investment on a vacation in the Swiss Alps, the team managed to write some tests for this refactor, and left behind a roadmap to the next big release:


This experience can be completed my multiple people. Below, you’ll see references to this issue from various other contributors. You can ignore them.

Issue Analytics

  • State:open
  • Created 6 years ago
  • Reactions:79
  • Comments:60 (17 by maintainers)

github_iconTop GitHub Comments

5reactions
jpkim921commented, Jun 23, 2020

Hi,

I’m new to open source and would like to contribute.

2reactions
chincholikarsalilcommented, Apr 28, 2021

Thanks for helping us beginners to take our first steps. Appreciate your efforts 😄

Read more comments on GitHub >

github_iconTop Results From Across the Web

DRY Programming Practices
One way to have a cleaner codebase is to use the DRY (Don't Repeat Yourself) programming principle. It is aimed at reducing repetition...
Read more >
DRY'ing up your WET codebase - hyperreactive.io
In this book, they present a list of tips, that all developer should seek. The tips by themselves aren't all easy to decode,...
Read more >
What Is Dry Code, and Is It Always a Good Thing? | Boot.dev
“Don't repeat yourself”, or “DRY” for short, is a somewhat controversial principle of software development. It aims to make code cleaner, ...
Read more >
Is your code DRY or WET? - SoftwareYoga
Don't Repeat Yourself(DRY) is a software development principle, the aim of which is to reduce repetition of information. We explore further.
Read more >
Is Your Code DRY or WET?
DRY code is a software principle that stands for Don't Repeat Yourself (DRY), where the goal is to reduce the repetition of code....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found