Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

299 pipi pronoun consistency #314

Merged
merged 6 commits into from
Oct 23, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 9 additions & 7 deletions src/pages/Exercise1.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ const Exercise1: FC = () => {
<h1>Memory Addresses</h1>
<p>
Pipi has forgotten the address of the boxes in the warehouse! Help
his find the correct addresses by answering the following questions.
them find the correct addresses by answering the following
questions.
</p>
<h2>Instructions</h2>
<p>Use the diagram below to answer the following questions.</p>
Expand All @@ -30,7 +31,7 @@ const Exercise1: FC = () => {
</h2>
<div className="questions">
<Question
correct="Correct! This is the first address for box b, which is what pointers use to find variables in memory. Now Pipi needs to calculate how much he needs to move to get there."
correct="Correct! This is the first address for box b, which is what pointers use to find variables in memory. Now Pipi needs to calculate how much they need to move to get there."
incorrect="Not Quite. Remember that pointers start with the first address of a variable, so we want to start with the first adress of box b. Please try again."
correct_answer={correctAnswer}
index={0}
Expand All @@ -52,7 +53,7 @@ const Exercise1: FC = () => {
</p>
</Question>
<Question
correct="Correct! Pipi needs to move from address 2 to address 11. Now Pipi needs to go to a different box."
correct="Correct! Pipi needs to move from address 2 to address 11. Now they need to go to a different box."
incorrect="Not Quite. Pipi needs to move from address 2 to address 11. Please try again."
correct_answer={correctAnswer}
index={1}
Expand All @@ -72,17 +73,18 @@ const Exercise1: FC = () => {
/>
</span>
</span>{' '}
addresses from his current position to get to Box b.
addresses from their current position to get to Box b.
</p>
</Question>
</div>
<h2>
What if Pipi now wants to go to{' '}
<span className="highlight">Box e</span> from his current position?
<span className="highlight">Box e</span> from their current
position?
</h2>
<div className="questions">
<Question
correct="Correct! This is the first address for box e, which is what pointers use to find variables in memory. Now Pipi needs to calculate how much he needs to move to get there."
correct="Correct! This is the first address for box e, which is what pointers use to find variables in memory. Now Pipi needs to calculate how much they need to move to get there."
incorrect="Not Quite. Remember that pointers start with the first address of a variable, so we want to start with the first adress of box b. Please try again."
correct_answer={correctAnswer}
index={2}
Expand Down Expand Up @@ -124,7 +126,7 @@ const Exercise1: FC = () => {
/>
</span>
</span>{' '}
addresses from his current position to get to Box e.
addresses from their current position to get to Box e.
</p>
</Question>
</div>
Expand Down
16 changes: 8 additions & 8 deletions src/pages/Lesson1.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ const Lesson1: FC = () => {
As you can see from the example, our warehouse had a bunch of
labeled shelves, and there were some boxes on each of the shelves.
Our helpful little robot friend was tasked with finding a particular
box to visit. But how did he know where to find the box he needed?
Well luckily for him, he has you to count on! You could see the box
he needed to go to, and you told him the address he needed to visit
if he wanted to find his box. That&apos;s why it was really
important to label our shelves with addresses - it made it much
easier for PiPi to know where to go. It&apos;s the same reason why
houses have addresses - an address gives you an easy way of
describing where something is located, so you can find it more
box to visit. But how did they know where to find the box they
needed? Well luckily for them, they have you to count on! You could
see the box they needed to go to, and you told them the address they
needed to visit if they wanted to find their box. That&apos;s why it
was really important to label our shelves with addresses - it made
it much easier for PiPi to know where to go. It&apos;s the same
reason why houses have addresses - an address gives you an easy way
of describing where something is located, so you can find it more
easily. It would be much harder to find your friend&apos;s house if
you didn&apos;t know what their address was! For the same reasons,
the memory in your computer is also labeled with addresses.
Expand Down
4 changes: 2 additions & 2 deletions src/pages/Lesson2_1.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ const Lesson2_1: FC = () => {
<div className="page-wrapper">
<h1>Introducing Pointers</h1>
<p>
In our example, Pipi wanted to go to a box but he didn&apos;t know
In our example, Pipi wanted to go to a box but they didn&apos;t know
where to find it. You passed along a piece of paper with a helpful
little note on it, telling Pipi the address of the box he was
little note on it, telling Pipi the address of the box they were
looking for. This is basically what a pointer does! A pointer is a
variable that stores a memory address.
</p>
Expand Down
2 changes: 1 addition & 1 deletion src/pages/Lesson3.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ const Lesson3: FC = () => {
<p>
The <span className="code">&</span> operator gives you the address
of any variable you&apos;ve created. In our warehouse, it&apos;s
like Pipi asking you for the address of the box he wants to go to.
like Pipi asking you for the address of the box they want to go to.
Or it&apos;s like searching on Google for the address of a
restaurant you want to go to.
</p>
Expand Down
2 changes: 1 addition & 1 deletion src/pages/Lesson4.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ const Lesson4: FC = () => {
memory address, our computer will go to that address in memory and
return to us the value stored there. This is known as{' '}
<u>dereferencing</u>. In our example, this is like giving Pipi an
address, him going to the box at that address, and telling us
address, going to the box at that address, and telling us
what&apos;s inside the box.
</p>
<div className="diagram">
Expand Down
Loading