Lurker News
I'm reading Petzold's Code [1], and it dawned on me that I didn't understand logic gates intuitively until now. I took a Computer Architecture course back in college, and I understood what logic gates meant in boolean algebra but not empirically. Petzold clarified this for me by going from the empirical to the theoretical using a lightbulb, a battery, wires, and relays (which he introduces when he talks about the telegraph as a way to amplify a signal).

Another concept is the relationship between current, voltage, and resistance. For example, I always failed to understand why longer wires mean more resistance while thicker wires mean less resistance.
[1]: https://www.codehiddenlanguage.com/

Comments (913) 203 threads

Show all comments

Showing thread 25 of 203

samhuk2 replies#
Computer networks. For years I was dumbfounded how IP addresses, VPN, ports, etc, all worked and tied together. Then, when I was interning as a software developer a fair while ago, a colleague drew the analogy of "IP address" = house on street, "port" = something you ask for when you knock on the door of a house.

Then it all just clicked. I still remember that day all these years later.
Other notable mentions, in no particular order:
* Perfect is the enemy of good enough. Did n't really appreciate this idea until around 2 years into my career.
* How to be professionally displeased at something. Early on my career I would get way too angry at incompetent colleagues peeing in the pool, e.g. bad code, design, management, etc. I would complain quite a bit! It only clicked ~2-3 years later into my career when I figured that one's displeasure at a situation should be a function of both how bad the situation is and how able you are to improve it. When you offer constructive solutions to incompetence (suggest alternative algo, management style, library, tool, etc) whilst not actually mentioning what is wrong, instead of just fruitlessly reminding people of what they did wrong, people become far more cooperative and receptive, etc.
My tin-foil-hat pet-theory is that the relatively recent tyranny of low expectations and "participation award" society has on average made younger people much more sensitive to negative comments about their work. The extension of that is that people end up robbed of more detailed reasoning about what they did that was wrong.
People are interesting!

wellthisisgreat3 replies#
> Then, when I was interning as a software developer a fair while ago, a colleague drew the analogy of "IP address" = house on street, "port" = something you ask for when you knock on the door of a house.

Hey thanks for sharing! Can you maybe expand on this in any form? I'd love to get that kind of analogy. Maybe you have a blog post about it? That'd be amazing!

samhuk#
Network: Street

IP address: House
Port: What kind of thing from inside the house you want
Gateway: House #1, start of street.
DNS: Tells you which house number corresponds to a family name. "Oh why yes, 'samhuk' lives at house # xxx.xxx.xxx.xxx
The analogy goes on and on. It's how I have always thought about networks since.

sn9#
One of the canonical computer networking texts, Kurose and Ross's Computer Networking: A Top-Down Approach, is chock-full of these sorts of analogies and metaphors.

It's very readable.

ruune1 reply#
I've heard it with a door for every port, but one door where you ask for that specific port works too!
layer81 reply#
I think “door” works better because any function can be behind any port, and it is a matter of convention, not of asking for a specific thing. I.e. when you connect to port 80 you don’t ask for HTTP, you just hope that’s what’s available at that port.
mixmastamyk1 reply#
The word port is another for door in Latin based languages.

Continue this thread — 1 reply