r/learnprogramming • • May 16 '21

Why learning to code is so hard

My friend who's a software engineer made a video on why exactly learning to code feels so difficult and stressful, and I related to it so much that I had to share with y'all.

It reminded me that coding is hard, but it's just like any other skill, and it takes time and hard work to master. Just because I can't figure something out, doesn't mean that I'm dumb. It means that I just need more time to learn more and get more experience.

Dropping this here in case any of you feel intense impostor syndrome/are struggling. I can't recommend the video enough, and I wish someone had told me this stuff years ago. My own learning process for programming has been a rollercoaster, but it's an incredible skill and I'm so glad I have stuck with it over time (getting my CS degree in 3 weeks wooo!)

edit post: obligatory thanks for the awards I'm blown away by how many people relate to this and I can't wait to tell my friend! I guess there's so much hype around learning to code that we forget the simple fact that it's just a skill to learn and patience and time are 100% necessary.

2.2k Upvotes

194 comments sorted by

View all comments

286

u/nutrecht May 16 '21

I think the person in the video shows something that a lot of beginners get wrong:

"I tried installing a C++ learning via the command line, and I didnt' know the command line at all".

So basically she was learning 3 completely new things at the same time. C++ (which is not an easy language to learn), installng a C++ library (also not easy) and learning the commandline (which has a steep learning curve too).

A lot of people get stuck on this. And then get confused. Because there's 10 year olds learning programming too right? Does that mean you're dumb? No; you're just going WAY too fast.

I started programming at 10. Did I start with installing C++ libraries? Of course not. I started with making tiny modifications to existing basic programs. Am I naturally talented? Not at all; I'm a totally average person. But I always do one thing at the time. I don't try changing 10 things at the same time because then you're just going to create a mess. You don't start learning programming by creating an MMO; your first game will be something like a text-based hangman. And the next game will be only slightly more complex.

So learning programming isn't hard, it just takes a lot of time. Like most skills do.

2

u/iaowp May 17 '21

The main problem I have at work isn't the programming. It's that unix and Linux are shit.

Me: "my program refuses to run"

Coworker: "it won't compile?"

Me: "no, like I'm trying to run the compiled program and it just says 'error: unable to run'"

Coworker: "are you in the correct environment?"

Me: "you mean like test? I did a su test"

"No, you have to do su - test"

"I did that"

"With the dash?"

"The what?"

"su - test"

"No... Last time you said to just type su test, so that's how I've been doing it"

"Last time you didn't need the environmental"

"Ok... Well, it still isn't running"

"Did you follow the steps in the guide?"

"Yup, line by line"

"Maybe it's a permission error."

"I typed chmod 777, doesn't that fix errors?"

"Yeah, so it's something else. Did you symbolic link?"

"What."

"Did you ln -s?"

"No... The guide didn't say to do anything like that"

"Well of course it's not going to run if you didn't symbolic link it"

Meanwhile if you want to run a program on windows:

  • compile

  • run

(Admittedly some shitty programs require you to mess with "path", but that's a weakness of the programs being shitty, not windows)

1

u/nutrecht May 17 '21

It's that unix and Linux are shit.

Yeah gonna disagree with you there :D I find Windows way more annoying to use as a developer; it constantly gets in your way.

2

u/iaowp May 17 '21

Aside for path issues (which Linux has, too), I have found Windows to be super easy.

Actually, for the sake of honesty - having to download VB6 runtime and dotnet has also been annoying.