zlacker

What do you visualize while programming?

submitted by dillon+(OP) on 2024-10-17 12:56:20 | 116 points 167 comments
[view article] [source] [go to bottom]

NOTE: showing posts with links only show all posts
◧◩
17. smalle+x73[view] [source] [discussion] 2024-10-18 16:55:57
>>dekhn+p63
> I can't easily visualize anything ever.

You possibly have aphantasia (https://aphantasia.com/study/vviq/). I certainly do, and visualize nothing while programming. I often have to sketch block diagrams on paper to give me a foundation.

◧◩◪
33. jampek+Yb3[view] [source] [discussion] 2024-10-18 17:21:38
>>hackin+6b3
You can experience this easily yourself: https://en.m.wikipedia.org/wiki/Motion_aftereffect

Motion is separated from shapes and structure and objects changing place very early in visual processing, and it's kind of a sense of its own.

◧◩◪
40. sibit+fd3[view] [source] [discussion] 2024-10-18 17:28:42
>>ljdtt+l83
If you have not seen it I'd recommend watching Rich Hickey's talk on Hammock Driven Development: https://www.youtube.com/watch?v=f84n5oFoZBc
◧◩
42. jumpin+Id3[view] [source] [discussion] 2024-10-18 17:31:04
>>audidu+x33
Imagine not having a voice in your head. How are you gonna do rubber duck debugging within your head?

https://www.youtube.com/watch?v=u69YSh-cFXY

◧◩
43. meta-m+Qd3[view] [source] [discussion] 2024-10-18 17:31:38
>>RaftPe+cb3
If months are circular for you, in which direction do they progress? A few years ago I realized my mental model of calendar months goes counter-clockwise. No idea why. I'm also aphantasic, so it's a sense of space and movement but I'm not actually seeing a circle. NYE is at 12 o'clock, but January is oddly at 11.

edit: here's the article that prompted me to reflect on this https://nrkbeta.no/2018/01/01/this-is-what-the-year-actually...

◧◩◪
54. wormlo+Wj3[view] [source] [discussion] 2024-10-18 18:15:59
>>ljdtt+l83
Julian Jaynes[1] makes a pretty compelling argument that our unconscious mind does pretty much all of the heavy lifting with regards to problem-solving. The conscious mind just steers us and lets us remember what we are doing.

If I recall correctly an example he gives is looking at a math problem. Looking at 2+2 as an adult you instinctively know it to be 4. As a child you may have had to count on your fingers or write out the problem until the abstraction of numbers was solidified for you, and now it is just a black box that your unconscious has added to a "tool belt" of sorts.

For me I would describe the process of learning/problem solving as my conscious mind navigating some solution/problem space and figuring out the general shape of it. Once I have figured out the shape of the problem, the answer either:

1. Immediately looks like the shape of another, solved problem. In which case I just use that solution.

2. Is not immediately apparent.

In the case of #2 I just play around with different strategies that mostly don't work, but it helps me build a mental model of the problem. Then I wake up in the middle of the night with a solution, or figure it out while I am showering/eating/driving/etc.

[1] https://en.wikipedia.org/wiki/The_Origin_of_Consciousness_in...

67. f7b5+xv3[view] [source] 2024-10-18 19:35:36
>>dillon+(OP)
When I was first introduced to mental visualization, I thought I couldn't do it because I struggled to clearly picture something as simple as an apple - or any other familiar object - in my mind. But with practice, the images slowly became clearer and more stable. Through continued practice, I was able to visualize more complex things, like text and even music sheets - which is kind of a cheat code, because you can memorize what you can visualize.

Something else I learned is that mental imagery[1] isn’t limited to just visual experiences. As a musician, I use it to hear intervals, hear the strong beat, hear chords, different timber / sound textures etc. You can also "visualize" smells, physical sensations, and more. I clearly see it as a skill that improves with time and effort.

One nice trick is being able to visualize conversations, dialogues, interviews etc. I believe it dramatically helped me overcome stress in those situations, as well as in performance.

[1] https://plato.stanford.edu/entries/mental-imagery/

◧◩◪
104. deadly+uK3[view] [source] [discussion] 2024-10-18 21:28:16
>>ljdtt+l83
There is a free coursera course I am doing, where exactly this phenomenon is explained as diffuse vs focused thinking by neuroscientists.

Here is the link: https://www.coursera.org/learn/learning-how-to-learn/

◧◩◪
108. iman45+GL3[view] [source] [discussion] 2024-10-18 21:36:17
>>alfons+nw3
I haven't spent enough time on it but a good Youtube video I'd found was https://www.youtube.com/watch?v=p4xFVJTyJZg
111. mcfunl+pM3[view] [source] 2024-10-18 21:43:22
>>dillon+(OP)
In an extended chapter of Mythical Man Month, Fred Brooks described his practice of screening candidates for number-form synesthesia by asking “where is November?”

I have number form so when I was young and originally read this I thought it was pretty neat. But as evidenced in the rest of this thread, it’s an absolutely crazy practice since the majority of great programmers don’t have it. And I assume it’d be illegal these days anyway.

https://www.mattsencenbaugh.com/where-is-next-november/

131. m463+fW3[view] [source] 2024-10-18 23:24:42
>>dillon+(OP)
This reminds me of Temple Grandin's paper:

https://www.grandin.com/references/thinking.animals.html

[go to top]