1 / 10
INTRO

Reusing Information

A magical copying machine replicating a box labeled 'score' with the value '10', showing the original box staying completely untouched while a new duplicate box is created.

Imagine you are building a game dashboard. The player's score is referenced in multiple places:

  • It is shown in the top-right corner.
  • It is used to calculate if they unlocked an achievement.
  • It is saved in the high-score database.

If the score updates, do we have to recreate the score box from scratch every time we want to show it in a different place?