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 49 of 203

jeffreyrogers2 replies#
Dynamic programming made very little sense to me when I first encountered it, then a few years later I read the DP section of Algorithms by Dasgupta, Papadimitriou, and Vazirani and it somehow clicked for me. Now I enjoy dynamic programming problems when I get them in interviews because they are usually pretty easy once you understand the trick.
sethammons#
This one is always interesting to me. People mention "dynamic programming" and my gut says "code that writes code" and every single time I remind myself it is just caching earlier calculations. DP is just caching.