Live data from Hacker News

What do you visualize while programming?

dillonshook.com

61–70 of 176 posts

Re: What do you visualize while programming?

#61

I visualize the tent my family will live in if I get layed off.

back in school the best basketball player in our conference was a quirky, affable guy who had little skill, athleticism, and never really exercised or exceeded the bare minimum at practice. he said what made him win was he pretended his entire family was going to be murdered by the opposing team if they won. then hed go out and outcompete everyone

Re: What do you visualize while programming?

#62
post #7

Nothing, I have aphantasia.

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

These are two common things I ask new friends so that I can communicate better with them (aphantasia and inner monologue).

Re: What do you visualize while programming?

#65

I see semi-amorphous/semi-geometrical/semi-colored stuff that represent different aspects and components of system. I think it's similar to people I've talked to about what they see when they think of the year+months+seasons, many friends described similar-ish types of representations that seemed visual (e.g. a circular view of months, or a long ribbon, etc.)

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-t…

I've never thought about it before but mine is definitely counter clock-wise as well, though NYE can be either at 12 o'clock or 6 o'clock. Brains are weird things.

Re: What do you visualize while programming?

#66

I think the title by itself suggests a different question than the article raises. The idea of the article is that certain visualizations can help think through certain problems. Maybe you can hold these visualizations in your head, or maybe you can't (because your aphantasic, they're too complex, you're tired, whatever), but they're just as available to you on paper or in diagramming tools if you need them. It's try…

I can't really picture things in my head in a visual way, but i can keep diagrams in my head as well as draw them to solve problems. What I often find weird is that some colleages cannot cooperate with me on such diagrams and others can. I guess the former hold structures in their head in a different (more textual or holding more in memory at once, i am not sure) way than I do.

Re: What do you visualize while programming?

#67
post #54

Nothing. For complex algorithms, I prefer to think in invariants: "this condition should hold here, so this variable must be that". I guess, for me the only exception is the dynamic programming algorithms. I re-discovered the wave algorithm (aka Dijkstra's algorithm) for solving mazes while writing in BASIC at school, and since then, I tend to reformulate any dynamic programming task as a path search in a maze.

[deleted]

Re: What do you visualize while programming?

#68
post #22

When working on a hard problem, I often had to visualize how the algorithm works, data moving there, changing this, replacing that. When I debug a tricky problem and I still have not figured it out yet, I have two options: either systematically note down what the code is going through, or keep the problem in the back of my head and sleep over it. More often than not, the solution will present itself after a while if…

That really resonates with me! I’ve found that when I’m up against a tricky problem, the solution often pops into my head when I’m not actively thinking about it—whether I’m sleeping, going for a walk, or just doing something completely different. It’s like the answer appears out of nowhere after I’ve stepped away. I’ve always wondered why this happens. Is it just how our brains work in problem-solving mode? Does any…

I have that a lot. It seems my mind needs to try a lot of combinations and suddenly stumbles upon one that makes sense and a light lits up. Browsing through the code or reading the docs only tends to get in the way for that process.

There's the need for some noisy creativity to be able to try to match a lot of combinations including the non obvious ones, where the solution space is.

Re: What do you visualize while programming?

#70
I picture clusters of information as they move through the computer. Sometimes they look like ships or motorcycles. :-)

Usually, I don't visualize anything in particular. I use tools for visualization, but I prefer to think algebraically. If I work on a complicated system, programming to me feels like like moving through a landscape, with points of interest that I memorize or lay out spatially in a tool, and going through the motions like patching things together, flicking switches, plugging things in and out etc.

Post reply on HN