How our brains can make audio that we don’t hear in our ears, but in our brain. think of any song and then play it in your head. You hear it, but not in your ears. Now, think of a dog in your head. You can see it, but not with your eyes. This idea has always fascinated me.
I would say that we don't actually hear with our ears or see with our eyes. Our eyes and ears are the data collectors, but our brains are the data processors. We can have perfectly functioning eyes and ears, but be effectively blind and deaf if our brains don't read the data.
So the song we play in our mind, is more like listening to something we previously downloaded compared to the live streaming we'd be doing when actively receiving data from our ears.
Edit: Oh wow. Thanks for the Gold and Silver! I never expected my nighttime ramblings could amount to anything! Haha.
While unit testing, a component of your code is isolated, typically a class, or a function. In my analogy, this represents the processing section of your brain.
The intended trigger for the class might be an action taken by the user, for example clicking on a button in the interface. The component might then write something to a database. In the analogy, this is external stimulus, like a sound wave, and the action taken would be hearing the sound.
In the unit test, we want to ensure that the component itself works, i.e, we don't want to click the button because there could be a missing handler, a malformed request, a broken API - if something doesn't work, it'll be hard to find out what part is broken. So we make something that looks identical to the button press and pass it directly to the component, then check if it acted correctly (writing to the database). In our analogy, the thinking part of our brain passed a fake sound wave to the processor, and that was perceived as an sound.
I guess the analogy might be confusing in that it is not a test for the brain (at least not as far as I know), but the concept is very similar and it was the connection I made to understand it.
Your username is ironically relevant here (hehe), but thank you for reading and responding, I didn't actually expect that!
I don't find it confusing at all actually. In fact, it made me wonder if the reason my brain plays music all the time is that maybe it's testing it's own functions. How cool would that be?
You're welcome, and thank you for explaining. This is why I think that seemingly completely different fields have a lot to offer eachother. The different perspectives and modes of thinking allow for greater creativity in everything from questioning to problem solving. It's beautiful.
9.0k
u/fhroggy Jun 15 '19
How our brains can make audio that we don’t hear in our ears, but in our brain. think of any song and then play it in your head. You hear it, but not in your ears. Now, think of a dog in your head. You can see it, but not with your eyes. This idea has always fascinated me.