Replies: 6 comments 1 reply
-
So in our discussion on this issue we're leaning towards trying to just replace the metaphor with a suitable external resource. |
Beta Was this translation helpful? Give feedback.
-
Hey, I want to propose a metaphor for this one. How about representing a website (eg. https://www.theodinproject.com or a locally hosted one) as a house/home. Then, each house will have individual rooms such as the kitchen, the master's bedroom, and so on. Linking to another house will use an absolute link, however linking to any room inside my house will use a relative link. I live in my own home - let's say it's TOP's website (https://www.theodinproject.com/).
It's not a complete metaphor, but it's just a proposal of some sorts. |
Beta Was this translation helpful? Give feedback.
-
Hmmm yeah, a reframing of the metaphor like that might clear up some of the confusion here. @xandora WDYT? |
Beta Was this translation helpful? Give feedback.
-
It's pretty close to the original version of the metaphor. I may be a little biased lol but I'd like to go back to something like that too. The intention was always to have a simple metaphor to help learners build a mental model of the differences between absolute vs relative. |
Beta Was this translation helpful? Give feedback.
-
Hi all! I have a couple thoughts about this as well. I also think extending the analogy just a bit to protocol and domain would help, like this. So, we drive down the road to my friend's house (protocol), arrive at their house (their domain), and set foot on their property (root directory), and enter the living room. The address from anywhere in the world, then, is: highway123.friend's-house.com/living-room. Chances are good I'll run greet.exe and imbibe.beer from the living room, before possibly changing rooms to ./kitchen, where we'll run the program dinner.party. You can see that once we are in the house, we no longer need to know how to get there (the protocol), or what the address is (the domain). We just need to know what room we are in, and what we are doing in each room. I.e., absolute vs. relative links. Idk, what do you all think? |
Beta Was this translation helpful? Give feedback.
-
This issue is stale because it has had no activity for the last 30 days. |
Beta Was this translation helpful? Give feedback.
-
Describe your suggestion
This was brought up in #25059, but probably needs to be an issue with some discussion put into it before being ready for a pull request. The metaphor (town, movies, shops) is a bit confusing and may need overhauling.
From the comments:
Possible visual aid to better understand the issue:
Path
Foundations
Lesson Url
https://www.theodinproject.com/lessons/foundations-links-and-images#absolute-and-relative-links
Checks
(Optional) Discord Name
No response
(Optional) Additional Comments
No response
Beta Was this translation helpful? Give feedback.
All reactions