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
Show all comments
Showing thread 84 of 203
Maybe someone can direct me to a video to help me develop a deeper insight?
It's a lot of memorization and "getting used to" the math, punctuated by a few "aha moments" of insight when you realize the 100 examples can be compressed into say only 50 examples. In retrospect its tempting to think the insights led to understanding, but really they were just the dopamine hits on top of the real stuff of understanding: tedious acclimation to a new abstract realm.
We know that triangles may be displaced, rotated, flipped and scaled while still looking the same. We have a word for this: we say two triangles are congruent when they are the same up to these operations.
This means that there is something intrinsically invariant about triangles. Can we find it? Actually yes! If the sides of a triangle have lengths A, B, C, then the ratios A/B, B/C, etc. are invariant. That is, if you make a triangle twice as big, all sides will multiply by 2, so A/B becomes (2A/2B)=A/B -- it's the same!
So, we can come up with names for these invariant ratios. They're most useful for right triangles. To give names, we need to pick any of the two smaller angles as a reference, call it "a". Now, let C be the largest side, A be the side opposite to the angle and B the adjacent side. Then, the ratio A/C can be called sin(a), B/C can be called cos(a) and A/B can be called tan(a).
Since sin(a), cos(a) and tan(a) are ratios, they only depend on the angle, not how big your triangle is. But if you know some side of the triangle, then you can know all of the other using these values. So sin, cos and than really capture the uniqueness I was talking about!
---
Now the applications. I memorized these as the "divide by C" rule.
The Pythagorean theorem says thar A^2 + B^2 = C^2.
Divide by C^2, and you get sin(a)^2 + cos(a)^2 = 1.
Divide by cos(a)^2, and you get tan(a)^2 + 1 = sec(a)^2.
These are all the Pythagorean theorem on disguise.
Precomputed values in a book made things an order of magnitude easier at the job site or battlefield before computers.
Depends what you do for a living. Artists won’t. Civil engineers and artillery software programmers will every day.