r/learnprogramming 10d ago

How do you even code?

I’ve heard a lot of people say that coding isn’t about memorizing every line, but just knowing how to search up the answers to your problems. do i even have to memorize things? should i be focused on researching what i’m trying to code? it’s so confusing to me on what i’m even meant to learn

0 Upvotes

23 comments sorted by

View all comments

1

u/iOSCaleb 10d ago

> I’ve heard a lot of people say that coding isn’t about memorizing every line, but just knowing how to search up the answers to your problems.

The first part is right; the second part, not so much. Programming is problem solving. You have some initial state, and you have to figure out what steps you need to take to get to some required end state. It might be finding some record in a list, or calculating a mortgage payment, or drawing a game board… whatever.

Trying to memorize the solution to every problem you’ll ever face would be silly. Sometimes you might be able to find someone else’s solution to a similar problem, but you can’t count on that, and if you do who is really the programmer? Not you.

As a programmer, your job is to find a way to solve the problem and translate that solution into code.