Ask HN: Concepts that clicked only years after you first encountered them?
601–610 of 946 posts
Re: Ask HN: Concepts that clicked only years after you first encountered them?
#602Earlier quoted context omitted.
This was in django, where a good such test would set up the database, call the function, then check that the new state in the database is as expected. (Which IIRC is what I changed it to)
I've seen tests like that ("has the mock been called")... and in general I've felt that they were kinda useless. Thinking about the original TDD approach -- red, green, repeat maybe it's not that bad? I prefer your approach, where you actually verify the state change. But in the absence of that, I wouldn't mind the "call the mock" approach. At least it does change some of the contract?
Re: Ask HN: Concepts that clicked only years after you first encountered them?
#603Earlier quoted context omitted.
I often see Harari and Graeber's being discussed at the same time, and I am always surprised. Harari write pop sci, a grand narrative with many liberties with both history and science. Graeber's books are heavily referenced pieces of work. Debt: The first 5000 years ends at 73% on my Kindle, because the remaining 27% of the book (144/534 pages) is references and footnotes. Their books are not in the same intellectual…
The number of references are not an indication of the quality of a work. Adam Smith wrote a whole book on The Theory of Moral Sentiments but in Debt , Graeber invents Adam Smith's morality whole cloth. I have no intention of reading Dawn of Everything but reviewers have noticed references that say the opposite of what the authors claim they say.
In the language of this essay [1], Graeber's work is legible, Harari's not at all.
[1] https://acesounderglass.com/2022/02/07/epistemic-legibility/
Re: Ask HN: Concepts that clicked only years after you first encountered them?
#604Earlier quoted context omitted.
This is what made it click for me, can recommend it: 3Blue1Brown -- But what is the Fourier Transform? A visual introduction. https://www.youtube.com/watch?v=spUNpyF58BY
That video did the same for me. I also like the reducible video for Fast Fourier Transforms as well as the Veratasium piece that shares some fun history. Reducible - FFTs the most ingenious algorithm ever https://youtu.be/h7apO7q16V0 Veritasium - The Most Important Algorithm of All Time https://youtu.be/nmgFG7PUHfo
Re: Ask HN: Concepts that clicked only years after you first encountered them?
#605The fourier transform. Encountered it first in my undergrad engineering degree, it was presented as dry mathematics, with no real explanation, just threw complex exponentials at us, and pages of derivations. Years later I actually use it in my job, and through that and other material can see its beauty, and how its actually not that complicated. Some great resources like this helped a lot: [0] https://betterexplained…
In case you didn't already know; Who Is Fourier?: A Mathematical Adventure is an excellent illustrated book on this.
Re: Ask HN: Concepts that clicked only years after you first encountered them?
#606Earlier quoted context omitted.
If I lived in a majority-Cholita area, I would not give it a second thought. If I lived in an area with not many Cholitas, I would wonder if there was a reason the group had only Cholitas.
Really? I live in Japan but am not Japanese. I speak Japanese and have many Japanese friends. I’d feel quite different about joining a hiking group that was 100% Japanese as opposed to one that had a mix of Japanese and non-Japanese people.
Re: Ask HN: Concepts that clicked only years after you first encountered them?
#607Narcissism. My grandmother was a terrible narcissist. I loved her dearly and she had a lot of wonderful qualities, but The quality that stood out the most, sadly, was narcissism. My mother was also a narcissist to a somewhat lesser degree. It didn't occur to me that I too was a narcissist until I was about 35 years old. It took waking up in the corner of the living room in my friends one bedroom apartment Early one m…
I find it interesting when people come from a long family line of narcissists (not uncommon) that they often attribute it to a cycle of being raised by a narcissist making you into a narcissist. it seems more likely that there is a genetic/biological basis for this personality trait
Importantly, the skills can be learned as an adult it’s just hard to do. I come from a long lineage of family members who did not know how to swim, but I don’t think that there’s a genetic basis for this.
Re: Ask HN: Concepts that clicked only years after you first encountered them?
#608Man, that took me a while. The solution: A and B have different notions of simultaneity and won't agree on which events occur at the same time. In particular, they won't agree on time measurements.
Re: Ask HN: Concepts that clicked only years after you first encountered them?
#609Earlier quoted context omitted.
I've always had a hard time because I was thinking.. why would I carry the performance hit of instantiating objects for a bunch of stuff?
Could be wrong but, at least in C++, there's realistically no overhead to creating a trivial object that you wouldn't have by manually instantiating the variables anyway. (Ignoring virtual stuff, lengthy constructors -- code run is code run but a raw object I think is by itself relatively harmless.)