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.

77

u/[deleted] May 16 '21 edited May 16 '21

I agree with your general point but programming is also pretty hard to not necessarily learn but to keep improving at. The issue with programming is to get started you pretty much have to use tools that you don't understand. And you're learning something that really smart people with a lot of experience built and developed. As a beginner, you are simply incapable of understanding the "larger picture", and so much of your experience as a programmer goes to slowly revealing parts of that larger picture one pixel at a time. Sometimes, the "pixels" you reveal begin to look like something recognizable to you, and at those times the progress you make feels meaningful, but often, it's very overwhelming trying to make something out of how little you understand

6

u/iaowp May 17 '21

My first few weeks with perforce were a nightmare.

Coworker: "do you have experience with version control?"

Me: "I use GitHub, so kind of? I don't know about forks and branches though. Just regular reverts"

"We use perforce. Same idea though"

"Ok"

"So make a workspace"

"In my IDE?"

"No. Perforce"

"Oh, whoops. Ok,"

"Did you save it to the programming environment?"

"Oh... No. In My Documents"

"No, you have to save it to the unix computer. The one we ssh into"

"Oh. Lemme redo it then... Ok, done"

"Now check out the code"

"What code? The one I wrote?"

"No, the original. You made changes to code without using perforce?"

"Well, I mean, no one told me about perforce until today... I was given a clone of the repository and I worked on that."

"Sigh... This is going to probably mess with the shelved files and ruin the swarm, you'll have to reset your changelist"

"The swarm shelf? I didn't make a changelist yet, I write those after I finish my code"

"Not that changelist, the swarm changelist"

"What's a swarm?"

"For the code review, when you shelf the files and code review, you work on the swarm."

"I... Don't follow... What's a swarm? Is it a program?"

"Don't worry about it, we'll get to that after you're done. Add the files to your repo"

"I'm trying, but it's grey."

"What do you mean grey?"

"The files show up grey, like I can't click them"

"Are you in your work space?"

"Yeah. The unix drive. It's open on the right"

"And it's under workspace?"

"Huh? No, it's projects"

"Switch to workspace tab"

"Oh. Yeah, still grey"

"You switched to work space?"

"Yeah, it lists three workspaces"

"Did you click on the workspace and choose switch to workspace?"

"No, I didn't know I had to do that... I thought opening it is all I needed. Ok, I'm switched. Alright, the files are no longer grey. Add them?"

"Yes"

(Drag and drop the code folder from the repo into my workspace)

"Erm... It's not doing anything"

"What do you mean"

"I'm trying to drop the folders into my workspace, and nothing"

"No. Don't do that click on it then add"

"It's asking what I want to add to the repo"

"What?"

"I clicked the repo then add files, then it asks what I want to add"

"No, cancel that. Pick check out"

"Check out? Oh. Ok, it's done"

"Good, now click get newest revision"

"It's grey"

"Damn it, let me see .. it's because you have shelved files"

"I don't know what that is"

"When you made your changes earlier, it must have shelved them"

"Yeah....... I dunno what shelves are"

Meanwhile, me: ("I thought C programming was going to be memcpy and malloc and maybe even linked lists on a bad day. Why am I dealing with unix permissions and shelves? :(")

4

u/[deleted] May 17 '21

Hahaha as someone who doesn't know what perforce is this is scary to read

5

u/iaowp May 17 '21

You'll probably never have to use it. My company admits that we're way behind the times. You're likely going to use git, which is far easier to use.

We use "isam" instead of sql. I think they said it was invented in 1965.

The program I maintain? A warehouse control system written in C, which was ported over from old school DEC systems. Made in 1975 I think.

Now, perforce is much newer, admittedly, but git/GitHub is most likely what you'll be using. That's far easier to use and better documented.

1

u/[deleted] May 17 '21

Yeah it's always a pain to work with outdated stuff especially because of how scarce documentation is. My friend is maintaining legacy software at his job and it hasn't been pleasant at all for him