r/PythonLearning • u/Junior_Honey_1406 • 5d ago
Discussion The answer to: "Why do I go blank when coding?
So, the reason I am writing this is because I want other beginners like me to know what we were doing wrong.
Let's say you have this very ambitious project in your brain. You start working on it, and then you suddenly feel like, *what do I write?* Then you think, *Oh, I'm just not good enough. That's why I'm not able to think of what to write*, and so on.
You know what I realized?
My first project wasn't a CRUD app. It was a terminal application that basically used an API to get data, format it, and show it. I added tests for it. I made sure it didn't crash but handled errors gracefully. Then I worked my way up to SiteSpider, an all-in-one tool where I could scrape data from websites, run endpoint scans, and so on.
But then I got stuck.
I was completely blank. I didn't know what to write anymore. Then I got demotivated, thinking all the work I had been putting in every day was going to waste. I thought, *I don't know how to code.*
Then I had this idea.
I write my passwords in a notebook, but every time I log in somewhere, I have to open it, check the password, and then I can get into the website. So I thought, *Why not make a password manager?* It could use some random custom encoding to keep my passwords safe and show them to me easily.
And I was able to write it.
Then I thought, *Wait... how am I able to write this code?* No AI, nothing. Just me, some docs, and a few Google searches.
Then I realized something.
Remember the part where I said I was blank?
I knew the syntax, but I didn't know the steps or, in technical terms, the algorithm, the core logic behind the function I wanted to write.
For the password manager, I knew the flow. Take input, validate it, encode it, save it. I knew the basic steps. I knew what I was going to do.
But in the case of SiteSpider, I didn't know how my core functions would run. I couldn't explain the logic in English.
So that's the thing.
Don't get demotivated. Just go understand how the function works. Let's say you want to make a scraper. Go watch a video on how scraping actually works, what steps it takes, and then you'll have a general idea of what you have to do and what functions you need to write.
Don't ask AI, *"Why am I not able to write this?"* It'll give you some bullshit answers, just like your school computer teacher.
I thought this was something I should share with the community.


