Quest

Quest 3 - Code Refactoring, Integrating Software Tests and Error Handling

STATUS Past
TOTAL REWARDS
$1,200
REWARD AMOUNT
$3
STARTS (GMT +08:00)
ENDS (GMT +08:00)

Learning Outcomes

By the end of this quest, you will be able to:

  • Understand the importance of software testing
  • Apply better error handling through match patterns and error propagation
  • Find ways to write better idiomatic Rust code

Quest Details

Introduction

NOTE: Getting rewards from this quest is over as it was only applicable on the Earn app when it was part of a campaign. Therefore, submissions are not reviewed or are disabled. However, you are highly encouraged to still complete the quest to practice your understanding.

Let’s now focus on improving the existing code to fully use the features that Rust allows 👀

In this tutorial, you will learn how to refactor, propagate your errors and add tests on your code by solving code challenges.

ℹ️ Code challenges are what you should do as part of the quest requirements. They might include problems, puzzles, and bug fixing as challenges. Now that this is a tutorial and not part of the Earn app any more, please take your time to solve the code challenges.

💡 Keep in mind that code challenges are indicated with red AND bolded text and requirements are indicated as bullet points.

⚠️ Please read carefully the challenge requirements as missing one can lead to a rejected submission.

For technical help on the StackUp platform & quest-related questions, join our Discord, head to the 🆘 | quest-help-forum channel and look for the correct thread to ask your question.

Deliverables

This quest has 1 deliverable.

  1. One image file

This quest is part of a campaign so do check out other quests!


Help Center Need help?

Find articles to support you through your journey or chat with our support team.

Help Center