r/learnprogramming • u/iprocrastina • Feb 25 '21
Stop trying to memorize stuff
Professional engineer here who started out self-studying years ago for a career change. I just want to share a tip about something I see beginners do a lot that's actually counterproductive. And that's trying to memorize programming.
Stop it. Stop doing it. You're wasting your time.
Programming isn't that time sensitive. It doesn't matter if you need to look up syntax. It doesn't matter if you need to look up how to write a loop or use some API method. As long as you know what to look up, that's all that matters.
It's also a much better way to learn. When you memorize, everything is devoid of context. You learn facts, not skills. It's also devoid of motivation. You don't know why you need to know something, so by design your brain doesn't much effort into remembering it.
But when you have to look something up you have all the context. You know why you need to know it. You know what details are particularly important. And the harder it is to figure out, the better you learn it. You better believe you're never going to forget the lessons you learned during a 5 hour rage binge on a stubborn bug. And for the easier stuff, like syntax, don't worry. You may have to look it up more than once, but after enough times you'll have memorized it just from repetition.
You don't even need to know everything to get a good job. If you want to become a software engineer, you're going to be hired to figure out problems, not code from memory. I work at FAANG and I look things up constantly. Sometimes I even come across syntax I've never seen before. I'm hardly alone. The trick to being a good engineer is knowing how to research effectively.
EDIT: I'm seeing a lot of "that's not true for interview" posts. Yes it is. You learn by doing. I never studied the syntax for my interview languages, I just picked one to do all my interview prep in and in the course of grinding out hundreds of leetcode problems I knew all the library methods I needed. Same for algorithms, data structures, and the fancy little tricks those problems often require.
This post isn't saying "don't learn", it's saying "you'll learn everything faster by just doing it".
13
u/Prof_Adam_Moore Feb 25 '21
Hey there everyone.
I'm a professor and I want to chime in on this advice. (TL;DR it's really good advice but memorizing some facts plays a role in education so don't avoid all of it)
In education, we use this tool called Bloom's taxonomy to plan our curriculum. The taxonomy is a hierarchy of different kinds of learning that build on top of one another. Memorization does have a place in this taxonomy, but it's at the lowest level of the hierarchy.
You're going to begin by memorizing some facts and definitions, but you want to quickly move beyond memorization into the higher levels of the taxonomy. If you stop at the memorization level of the taxonomy, then you're going to have trouble retaining and using the information you've learned. I can tell you that the mitochondria is the powerhouse of the cell, but I can't *DO* anything useful with that information.
Here's a practical programming example:
When you're just getting started out as a computer science student, you'll probably get introduced to the concepts of coupling and cohesion. At first, you might only be able to regurgitate the definitions of those two concepts because you're not sure how to apply them yet. You could write the definition out on a test, but if some code were placed in front of you, you couldn't use that definition to refactor the code. Not terribly useful yet, but it's a start.
As you progress in that degree, you'll learn how to evaluate code and recognize when two classes have tight or loose coupling, and you'll eventually learn ways to decouple classes and gain an understanding of when the code you're working on needs to be refactored to improve maintainability. At this point, you understand the concept of coupling well enough to write your own definition for it without having to memorize the info in a textbook. You could explain the concept to someone who has never written code before.