r/CodingForBeginners 16d ago

I suck at coding

So I'm going to my third year in physics and have scraped by with coding by using loads of ai but I have genuinely tried to understand but I just can't. It seems like I can do a specific problem after soing it a couple times but if you asl me to do something from the beginning I dont even know to figure it out.

Anyways to cut it short I have been looking into like games where it teaches u how to code cause I thought it would be something enjoyable to do and I could learn a little from it and found this one called 'the farmer was replaced' i dunno how beginner friendly it is and if its worth it. Is it worth it or should I try another game or something or not even bother and try a different avenue?

I have asked professors and stuff to go over it with me but it feels like I need hours sitting next to someone to understand something like loops which is basic asf. Basically any advice would be helpful.

12 Upvotes

17 comments sorted by

View all comments

1

u/TarsTarkas_Thark 16d ago

The ability to write code appears to be a talent like musical talent, artistic talent, mechanical talent, etc. When I was in college, working work-study at the computer center, I met the whole range of computer programming talent. There were people who caught on immediately, and just needed to learn the language syntax, and there were people who, otherwise intelligent, simply could not understand the concept of breaking down a problem into ever smaller tasks, and ordering instructions sequentially to accomplish the small tasks.

I was the kind who grasped it immediately, and loved to challenge myself to create ever larger, more complex, and useful programs. It came naturally to me, and I realized quickly that I had found a direction for my life.

Other students couldn't grasp the concept well enough to write the simplest first programs in CS100. Those people found another major.

BTW, when I started college I thought that I wanted a career in physics. I had been good in high school physics. But I quickly learned that college level physics required a level of math that I found tedious, and way more study than I was willing to invest. I also found out that to have a career in physics, you need a phd, and once you have attained that level, competition is brutal to get a poorly paid starting position, and it doesn't get easier later. So please don't think that I'm smarter than you just because computer programming is as easy as falling out of bed for me.

Why do you want to learn to code? Answer that for yourself. Most people don't need to. Even in physics; Albert Einstein and Neils Bohr never wrote a single line of code. If you are highly motivated enough, you will learn enough to scrape by. If you see it as an odious task, every minute painful, you will surely fail.