Live data from Hacker News

Ask HN: How does programming affect your emotional state?

news.ycombinator.com

1–10 of 15 posts

Ask HN: How does programming affect your emotional state?

#1
When I am coding for a long time, my emotional state tends to reflect the code. If it's not compiling when I think it should, I get frustrated. If everything is acting predictably, like I expect it to, I feel great.

After a day of programming, it takes me a while to get used to talking to a human being. During the day, my feelings reflect those of a computer - it is dry and unemotional, so I am too.

Does anyone else experience similar things? How do you deal?

Re: Ask HN: How does programming affect your emotional state?

#3
Yeah, I tend to get to feeling a similar way. I deal with it in a few ways:

- Listen to calming music, not anything aggressive or angry. This makes a huge difference for me.

- Take time to prepare so that I expect speed bumps, not an easy ride. This can be in the form of just taking a beat to think about a problem right before starting or general, preparatory journaling in the morning.

- Take breaks when I’m stuck. Getting away from the problem or talking to someone else (rubber ducky style) really does help.

- Learn and reflect on what went wrong. Sometimes it’s easy to blast by and solve a problem without thinking about it. For me, at least, that’s a recipe for getting myself into the same problem again in the future and not remembering how I solved it. Sometimes, this is something I can proactively take time to fix so myself or others don’t encounter it again.

- Scheduling my day. I try to schedule my day so that I have meetings as early as possible in the morning and then I do programming in blocks in the late morning and afternoon. Being able to avoid distractions removes some compounding frustration.

Re: Ask HN: How does programming affect your emotional state?

#4
Whenever I finish a software project and return to electrical engineering, where I have to worry about parasitic capacitance, inductance, thermal noise, propagation delays, and pages of datasheets for something as simple as a single transistor, I realize how much easier and more satisfying electrical engineering is than programming, where I have to deal with truly unpredictable phenomena like libraries, APIs, and development environments so bloated they make Quartus and Vivado seem fast.

It turns out quantum mechanics and pages of empirical analysis are a plus, because they are well documented and everything behaves as expected. When I program, I spend more time reverse engineering other software, to try and make sense of the lacking, outdated, and often outright incorrect documentation than I spend writing my own software. I can't spend any extended period of time doing that and still keep my sanity.

Re: Ask HN: How does programming affect your emotional state?

#5
I noticed this frustration gets worse with a long feedback loop.

I recently reworked a CI pipeline over two weeks, and it was a nightmare to make tiny changes, push it, and wait 5-10 minutes to see another error because of a YAML typo.

If possible, I try to shorten this feedback loop early.

Another option is picking something radically different to work on for a while, if possible.

Re: Ask HN: How does programming affect your emotional state?

#7

Whenever I finish a software project and return to electrical engineering, where I have to worry about parasitic capacitance, inductance, thermal noise, propagation delays, and pages of datasheets for something as simple as a single transistor, I realize how much easier and more satisfying electrical engineering is than programming, where I have to deal with truly unpredictable phenomena like libraries, APIs, and dev…

Fascinating perspective, one that I never considered prior to reading this comment. Thank you.

Re: Ask HN: How does programming affect your emotional state?

#8
I think of programming as literally speaking a foreign language. My job is to translate ideas between two realms without loosing the essence in the translation. A for loop is like a rambling sentence, with purpose. The work of software allows me to start and restart this translation until it ends up exactly as it needs to be. The medium is changeable, dynamic, and ultimately meaningful. There is no other feeling like it… factorio gets close but doesn’t cut the mustard when it comes to the essence of code. It is poetry, imprecise yet stunningly beautiful. What a rush.

Re: Ask HN: How does programming affect your emotional state?

#9

Whenever I finish a software project and return to electrical engineering, where I have to worry about parasitic capacitance, inductance, thermal noise, propagation delays, and pages of datasheets for something as simple as a single transistor, I realize how much easier and more satisfying electrical engineering is than programming, where I have to deal with truly unpredictable phenomena like libraries, APIs, and dev…

> It turns out quantum mechanics and pages of empirical analysis are a plus

I think that also has to do with the fact that if you do something wrong in electrical engineering, things can literally go boom.

A majority of software only does that in a figurative sense, but in return we get very lazy docs, practices, etc. Somewhat of a double edged sword.

Re: Ask HN: How does programming affect your emotional state?

#10
Clear signs of unconscious deep flow state. It takes time to get back from it. It also makes you a good programmer. There are ways to avoid/exit it (e.g. shower) if you want, but ymmw with timings and quality.

I’d suggest pushing work further in the day if possible. So that you live your life, then code, then go to sleep.

Post reply on HN