Ask HN: Concepts that clicked only years after you first encountered them?
579 pointsI'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
Earlier commentsThat's the way to understand electricity without analogies. :)
The current (E) is the Voltage divided by the Resistance.Anyway, voltage is always measured between two points (one is typically called "ground" but that's not important here.) It's a difference. (A difference of what? No one knows. That's just the way it is.)
Current is always measured through a single point. It's a count of the charge flowing past a point per time unit. (What is charge? No one knows. "Charge" is just a name for the mysterious something that "voltage" is a difference of...)
When electricity moves it obeys a (very simple) Law called (Ohm's Law) e.g.:
E.g. is I have a 5 Volt power supply and I put a 100 Ohm resistor across it (remember that voltage is always between two points) then 5/100 Amperes of current will flow through it.
Also, If I take just the resistor and drive 0.05 Amps through it, it will develop a voltage of 5 volts, as measured from one end of the resistor to the other end.
Now if that doesn't help you, remember the advice of John Von Neumann to Felix Smith: "Young man, in mathematics you don't understand things. You just get used to them."
I think you're being overly mysterious here. It's the number of electrons passing through the wire per second. And charge isn't the thing that voltage is a difference of; it's potential difference, as in electric potential energy. The "water in a pipe" analogy really isn't that bad; it's gravitational potential instead of electrical potential, and amount of water instead of amount of electrons.
Continue this thread — 1 reply
- Expression as in someone expressing themselves, a tentative gesture.
- Evaluation as in scrutinizing something to learn what it's really about.
- Value as in "valuable".
We don't know if an expression is valuable until we subject it to evaluation, or we get an interpreter to interpret it for us.
So many useful groundings in various super important comp sci concepts.
The biggest a-ha! moment I've experienced was in my Comptuer Architecture course when it finally clicked how you could build up a bunch of logic gates into a real modern computer.
All comments shown.
Couldn't load more comments. Check your connection and try again.