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

shrimpx1 reply#
I studied functional programming and I took terms like "expression", "evaluation", and "value" for granted until it clicked that these terms have intuitive meaning when interpreted in colloquial/human terms.

- 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.

dehrmann1 reply#
Have you ever studied compilers? You'll gets a good idea of these concepts from a toy compiler for an imperative language.
shrimpx#
Yeah I've built a compiler and several interpreters in an academic context. I'd appreciate any concrete suggestions for further playing/learning.