Good stuff and solid analogies.
I do think it's funny that we ended up with names like "server", "request", and "port" because they were analogies to the real world. Now we've come full circle and are coming up with real-world analogies.
A server, like a server (or a waiter) at a restaurant, handles your requests.
A port is like a shipping port, a place for requests to come in or be sent out.
Totally agreed, Valentin, I was actually thinking about this the other day. A lot of people use a tree to represent the Document Object Model (DOM) as well, another metaphor.
I was thinking about it cuz I was wondering, if these metaphors are built in, why are my analogy-focused explanations still needed?
I think a lot of it comes from the fact that the developers who wrote these languages have incredibly complex mental models after years of programming. So, they might represent a concept one way, but it is still tough for a beginner to understand that representation.
We’re a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.