r/learnprogramming • • 10h 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?

13 Upvotes

11 comments sorted by

8

u/cutepandao1 9h ago

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

3

u/ShippingEventually 9h 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/addenrock001 8h ago

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

3

u/suubu-crtiv 6h 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.

2

u/Wingedchestnut 10h 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'

2

u/Scared_Okra_3083 6h ago

tbh the days i get forced to stop are usually the better ones. i've got three kids so i can't just sit there inventing busywork at midnight, and a lot of the time the thing that was stuck is obvious after breakfast. taking a break isn't the same as quitting the project.

1

u/knouqs 5h 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/Ahmed_Hisham0 5h 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/Embarrassed-Fennel78 2h ago

While you all are here, I built my personal website with not one but 3 different agents while testing them all. You wouldn't know if I didn't tell you https://www.lilyslab.xyz/
I stopped caring and just started building fun things that make me happy and keep me from doomscrolling tiktok or instagram.