Back to Freecodecamp

Task 28

curriculum/challenges/english/blocks/learn-how-to-clarify-misunderstandings/67e7efa216eb1b53fc957bcd.md

latest2.0 KB
Original Source
<!-- (Audio) Sophie: Think of it as wrapping code to limit what other parts can see. -->

--instructions--

Listen to the audio and answer the question below.

--questions--

--text--

What does Sophie mean?

--answers--

She means organizing code into separate files for better readability.

--feedback--

Sophie is not talking about organizing code into files.


She means hiding certain details in the code to make it easier to use and manage.


She means making the code more complex so other parts can't interact with it.

--feedback--

Sophie emphasizes making the code simpler and easier to manage, not more complex.


She means exposing all the details of the code to other parts of the program.

--feedback--

This contradicts what Sophie is saying. She mentions limiting access to code details, not exposing them.

--video-solution--

2

--explanation--

Wrapping code in this context refers to the practice of hiding the internal details of the code and only exposing what is necessary.

This helps make the code easier to manage and reduces complexity for the user of the code, allowing them to focus on what's important without worrying about internal workings.

--scene--

json
{
  "setup": {
    "background": "company2-center.png",
    "characters": [
      {
        "character": "Sophie",
        "position": {
          "x": 50,
          "y": 0,
          "z": 1.4
        },
        "opacity": 0
      }
    ],
    "audio": {
      "filename": "B1_16-1.mp3",
      "startTime": 1,
      "startTimestamp": 43.7,
      "finishTimestamp": 46.86
    }
  },
  "commands": [
    {
      "character": "Sophie",
      "opacity": 1,
      "startTime": 0
    },
    {
      "character": "Sophie",
      "startTime": 1,
      "finishTime": 4.16,
      "dialogue": {
        "text": "Think of it as wrapping code to limit what other parts can see.",
        "align": "center"
      }
    },
    {
      "character": "Sophie",
      "opacity": 0,
      "startTime": 4.66
    }
  ]
}