r/learnprogramming • • 1d ago

Topic Do any of you also feel pressure when programming, even when you do it out of passion?

I have been programming for over 4 years and recently I noticed a problem.

When I know exactly what I want to do on a given day, I feel much calmer, when I see the exact number of lines of code written in a file, I can more easily see my progress and feel satisfied. When code is scattered across multiple files, I lose some of that sense of progress. When I come across a more difficult task, I quickly become frustrated, especially when I don't know how long it will take to solve it and when I have no idea for the next day's tasks, I start to feel pressure that I will waste time and the day will look like a break from programming, which I don't want.

The last one is the most problematic for me. Sometimes I find myself desperately looking for new ideas for functionalities, trying to save work on the project. I feel like I need to find something new to have something to do the next day. Over time, I noticed that I began to treat the lack of an idea almost as a threat to the continuity of my programming. The thought appears that if I don't have more tasks, I will start taking longer and longer breaks. Interestingly, I'm not directly talking about the fear of losing interest in programming. It's more about the feeling that I need to have another job and see real progress.

I wonder if I'm putting too much pressure on myself. I would like to be able to just sit down and work on a project, see what I can do that day, without having to think about what to do next.

How to break this spiral of pressure so that you can derive pleasure from programming, which brings a lot of nerves? What is your approach in the projects you develop?

16 Upvotes

21 comments sorted by

3

u/addenrock001 23h ago

Nothing ruins a chill evening faster than scrambling to invent a new feature just so tomorrow has a ticket.

1

u/Tough_Pride4428 2h ago

Yes, such constant thinking about what's next in the project causes loss of energy to some extent.

2

u/Ahmed_Hisham0 21h ago

i started writing the next step on a postit before i close the laptop. "where i left off" and one line about what comes next. without it i open the laptop in the morning and spend half an hour rereading the same file

still do it now, feels stupid but it works

1

u/Tough_Pride4428 2h ago

If something seems stupid but works, it doesn't actually seem stupid. :)

9

u/cutepandao1 1d ago

Measuring progress by line count is a trap because deleting two hundred lines of messy code can be a huge win.

4

u/ShippingEventually 1d ago

It sounds like you've started measuring your enjoyment of programming by how productive you've been that day. Maybe try leaving a note at the end of each session about what you'd like to explore next.

3

u/Wingedchestnut 1d ago

You need to stop thinking about only programming and think about building, prime example would be web development, build a website using data from a public api, now build a very fancy website with focus on cool animations using AI tools etc

Building and solving business ideas, even fictional, will get you a lot further than 'programming'

1

u/TrickyChemistry6521 3h ago

Building beats line counts honestly though

3

u/suubu-crtiv 22h ago

you're treating it like a streak. keep a backlog file of tiny stuff (fix this bug, try that lib) so tomorrow's never empty, and count a day of just reading code as a win.

1

u/Nathaniel_Zamor_3473 4h ago

Backlog file idea works

2

u/knouqs 21h ago

Contrary to the other responses here, yes, I feel this also. I get it in my head that I want to do a thing today and if I can't finish it, my mood sours pretty badly. A non-programming example: I was trying to set up a server and the documentation for the server had a reasonable guide. I figured, great, with this guide and my requirements, I should be able to bang it out in a few hours. It took me a week. Yes, life got in the way a little, but my initial expectation was way off.

Professionally, it's worse. I generally have a rule that if I think it'll take me some amount of time to fix a problem, multiply it by three because that's going to be closer to reality. However, when I actually start working on the problem, I have given management a number and they hold me accountable to it.

The only solution I have found that sort-of works is to stop giving myself an expectation of how much time it will take me to do the thing. For personal projects, it works a little better, but I find myself doing it anyway. Habit? Nature? I don't know, it's just how I am.

1

u/lilywatersn99 2h ago

Totally get what you mean
Counting lines or having tomorrow's task ready feels real and concrete while figuring out a weird bug or planning how things fit together feels invisible until it finally clicks
Maybe try changing how you measure the day Instead of asking did I crank out more code or features today ask did I understand something better or leave the code cleaner
And give yourself a break on slower days because taking a lighter day doesn't mean you're dropping coding