r/learnprogramming • u/CupCool1802 • Oct 27 '26
At what point did programming stop feeling like memorizing random rules and start making sense?
Something I've been thinking about while learning programming is how different it feels to understand a concept in a tutorial versus actually being able to use it on your own.
You can watch someone explain loops, functions, data structures, or algorithms, and everything seems to make sense at the time. Then you open a blank editor, try to build something without following a tutorial, and suddenly you don't even know where to start.
I wonder if this is just a normal stage of learning or if there's a better way to approach it.
For those of you who have been programming for a while, was there a particular point when things started to click? Was it building your first project, solving problems on platforms like LeetCode, reading other people's code, or struggling through bugs until you finally understood what was happening?
I'm also curious how you balance learning new concepts with actually building things. Sometimes it feels like there's an endless amount of material to study, and it's difficult to tell when you know enough to move on to the next thing.
I'd appreciate hearing what genuinely helped you improve, especially things you wish you'd done differently when you were starting out.
99
u/mc_pm Oct 27 '26 •
Programming should *never* feel like memorization. if that's how you're learning it, then that's your problem. Sure, there's always lots to learn, but you learn by doing, not by memorizing things.
10
u/useruuu2 Oct 27 '26
You've got to build something that has meaning to you. Loops, functions and data structures are the building blocks. Once you're forced to use them to make something come to life, it starts clicking, and after a while it becomes natural to you. Put the tutorials aside, pick something simple to build, and you'll learn all the things that are required to make it work in that context. If you don't know where to start, pick something even simpler.
My first project was building a very basic text-based roulette game on my dad's computer before the Internet existed. There was no guidance, just syntax rules and experimentation. Going to the library to find a book about it was the next best option.
Other experienced folks will have their own viewpoints, but unless you're consciously upskilling yourself, like learning a specific new language, I would say the balance should be 100% building things and 0% studying things. Building is best teacher, and you look up the things you need to build it, when you need it.
Finally, once you get the basics and want to build something more ambitious, like an end-to-end project, having an experienced dev explain to you how all the pieces fit together is key so you understand the big picture, and can then start building it piece by piece. AI can play that role today. Back in the day we didn't have it.
9
u/shrodikan Oct 27 '26
The syntax does not matter. Whiteboard the structures of what you want the system to accomplish. Boxes and arrows require a lot less overthinking. The syntax then becomes implementation details of the boxes and arrows. When you start to think abstractly it starts to click.
5
u/onions_can_be_sweet Oct 27 '26
It was when I understood what conditional branching was.
My platform at the time was a TI-57 calculator. I was in high school and my nerd friends and I all thought calculators were pretty cool. We got different ones... I got the cheaper TI-57 (the junior version of the TI-59) and it was programmable in a way other calculators were not. It could do conditional branching. I didn't know this at the time I bought it, but I dove into the accompanying manual (which I still have) "Making Tracks into Programming" (what a fantastic book, BTW). A day or two later I was writing my own programs, games. I realized how powerful, how universal, this thing was.
So conditional branching along with understanding sequential execution, memory and addressing, as well as boolean logic and algebra (which I was learning in school at the time), were all the pieces I needed.
The fundamentals I learned with that device and that book became the core of my programming capability, and I applied what I learned to every language I encountered from learning Basic and later 6502 assembly, assembly in 16 and 32 bit chips, C, html, digital electronics and everything else.
3
u/BranchLatter4294 Oct 27 '26
The rules aren't random. Once you figure that out, it's easy.
3
u/pigeon768 Oct 27 '26
Basically zero learning happens by having someone tell you stuff. The only way to learn how to program is to start writing code.
There's a tiny sliver of stuff where you need to have someone explain to you enough syntax to write hello world, but after that, it is like 99% on you to teach yourself.
3
u/WormsDelicious286 29d ago
Everything I've learned, I learned by screwing up and then having to fix the mess. You can watch all the tutorials you want, you haven't learned anything until you've done it wrong, figured out what you did wrong, fixed it and it worked.
The good thing about programming vs, say, social interaction is that the computer really doesn't hold it against you for the rest of your life if you tell it the wrong thing. Go and make lots of mistakes, don't be afraid.
3
u/Feline_Sleepwear 29d ago
Honestly, during most of my CS degree I could program well enough for the assignments, but didn’t really know how to use it for anything meaningful outside of coding exercises.
What made it click for me was getting into web dev, it’s a very visual way of learning and you get immediate feedback on what you’re building. Once you get past HTML and CSS, and start doing JavaScript (and eventually using frameworks like React) then you can easily start seeing how you can apply concepts like data structures, functions, loops to build the features you want.
Building your own projects (start simple), getting ideas for features you’d like to implement, and then going through which skills you’ve learned that you can piece together to create that feature. That’s when it starts to click.
Web Dev was just the initial path I took, so that’s just my personal perspective, choose whatever area interests and excites you, and play around creating things of your own.
2
u/First-time-fixer 29d ago
Came at this from the IT side rather than dev, and what flipped it for me was never picking a project. It was having to create 200 mailboxes by hand and deciding I’d rather spend three hours learning PowerShell than four hours clicking. The syntax stopped feeling arbitrary the second it was the only thing between me and going home.
Tutorials never did that because nothing was at stake. Find the most tedious thing you already have to do and automate it badly.
4
u/Dazzling_Music_2411 Oct 27 '26
What are you talking about? Programming NEVER felt like memorizing random rules.
You must have been taught very badly.
1
u/0dev0100 Oct 27 '26
About the same time I started thinking of it as logic expression instead of writing
I think the first thing I wrote was in applescript in 2010
I was wondering what the things do more than how they do it.
1
u/Relevant-Register-69 Oct 27 '26
Two things:
All of this basically just comes back to the SOLID principles, coupling and cohesion you learned in school
1
u/pete_68 Oct 27 '26
I can't explain it, but it just immediately clicked for me. I was 10 years old and my dad was the entertainment editor for the paper and that included book reviews, so he was always bringing books home. One day he left a programming book in my bedroom and I read it and it just made sense. It was another year before I finally got my own computer. To me it was just simple logic. It's always been that.
1
u/_Dingaloo Oct 27 '26
it was just kind of random. I want x to happen, I look up how to make it happen. Then I want it to happen in a different way, I try to do it myself and then when it doesn't work, I look up how to make it happen again.
Trying myself first as far as I can get before looking it up is what made it make sense the quickest. Your brain is pushing to make sense of it without copying someone's work, training that skill. If you always copy it or always refer documentation etc every time, you're training yourself to look it up better, which is a good skill but is not the intended final skill
1
u/Accomplished_Key5104 Oct 27 '26
I don't think I ever thought about it as memorizing rules. You have different concepts that you learn, and you apply those concepts in different scenarios. If I don't know how to write a loop in a particular language, I look it up and move on.
In college I only took 2 classes that were focused on learning a programming language: Intro to programming in Java, and C++ for Java programmer. The Java course's goal was more to teach programming concepts, and in hindsight the C++ course was a bit of a waste of time. Since then I've never really spent time memorizing aspects of a language. While you're writing code you'll remember the things you do frequently. If you don't, you can look it up.
The one area where this falls apart is when interviewing. You should have at least one language that you're very comfortable writing code in, but even then I would say to build that confidence by writing a lot of code.
1
u/iSnapThere4iAm Oct 27 '26
When I learned the foundations (of…. Tech? Web services? Computer science? However you want to put it). When I understood the landing places the output necessary was clear and the methods to get to the output were intuitive.
1
u/scruffalubadubdub Oct 27 '26
Every programming language concept is a tool to solve some low level problem in computing. Programming is all about learning how to use those tools to solve high level problems. Do not copy paste stuff and expect to learn in the beginning. I recommend typing the stuff out and really trying to understand what's going on. It's also very helpful to run through your code on paper, writing down the state of your program after each line is ran, following it through loops, function calls, etc.
1
u/RainbowGoddamnDash Oct 27 '26
When you start making stuff. You realize how everything fits in together.
1
u/ReddyKiloWit Oct 27 '26
My first experience with programming had nothing to do with a programming language. I've always suspected that's why I don't really care what language I use. We learned flow charting as an introduction to programming, along with other generic topics before actually programming.
Maybe it would help to examine some of those tutorial programs and get used to seeing them as logical flows instead of getting lost in the syntax of the language? Either diagram them or write down the series of steps and connections, whatever lets you see what's happening rather than how it was made to happen. Then when it comes to creating your own programs, do like many programmers do to start: write it out in steps with little or no reference to a particular syntax.
1
u/cheezballs Oct 27 '26
I dunno that it ever felt like that. There's not many rules. Do you mean syntax?
1
u/eldudovic Oct 27 '26
Depends on what you mean by programming. From Leetcode I've learned smart solutions to very specific problems. Otherwise, for actual real world problem solving, doing projects and realizing that it's rarely the code that's the issue, but the overall design. There is a lot of things to study, and it will never stop, but treat it as learning a language. In the beginning you struggle with even pronouncing words, but before you know it, the grammar is second nature and you string sentences together without thinking. I still look things up daily, but I know what I need to do to reach my desired end-product.
1
u/darkmemory 29d ago
If I don't know how to generate the syntax of what I want to do, I look it up. Programming should be logical steps towards achieving a solution. Efficiency as a default initial step comes from practicing with reducing steps to achieve results. One should avoid clever steps that are not obvious until the underlying steps are already clear and shorthand expressions save time while remaining logical (unless you are working with others, then they must be accounted for if they will ever potentially need to engage with the code).
So it should never be memorization, it should be translating logical segments into syntax to achieve those steps. Eventually those translations will become known, but it should come out of use, not out of flash cards.
1
u/StephenRoylance 29d ago
it was never like that for me. starting from 10 print edgy teen bullshit 20 goto 10, it's been a nonstop rollercoaster of discovery and wonder the whole time. Stop for a minute and consider how deeply awesome it is that people figured out how to make sand think. Or that Godel and Turing figured out that almost any process you can imagine, you can tell a machine to do. Or that Torvalds could have a new shiny 386 and think, "fuck this, I want my terminal emulator to have a filesystem".
1
u/Stopher 29d ago
When you’re trying to get your job done. I’m just looking for things I can use to accomplish solving a problem I have.
1
u/justking1414 29d ago
First time I realized I could use a class to simplify my code and basically cut it in half
1
u/rokomotto 29d ago edited 29d ago
Start with steps in the real world and translate that to code. That's pretty much it to get started as a beginner. It'll test whether you actually understand the concepts. And if you don't know how you go about translating it to code, then google it and make sure you understand why its done that way.
1
u/DanKegel 29d ago
Right from the beginning, or at least, right after you've learned the language's model of the world. That should be very, very early.
1
u/nextammy 29d ago
For me it clicked when I stopped trying to finish a whole course before building anything. I picked one small tool I actually wanted, a simple expense tracker, and built it badly on purpose. Each time I got stuck, I only learned the one concept that unblocked me, like how a list holds the entries or how a function saves a new one. That made the ideas stick because they were tied to a problem I cared about. I also kept a one page note of errors I had already fixed, so the second time something broke I was debugging from my own notes instead of starting from scratch. It felt slower at first, but after a few small projects I stopped asking what the syntax was and started asking what the program should do first.
1
u/edwbuck 29d ago
It's a language. Nobody ever memorizes a language. They might memorize vocabulary and a few key phrases, but eventually to use a language, you have to abandon memorization. There's just too many possible things that could be said in the language to memorize all possible things you'll say.
1
u/LangyMD 29d ago
Uh, before I started programming. It honestly never felt like memorizing random rules; more like an extension of how I already interacted with computers, which I'd been doing since I was 6 when we were still using Windows 3.1 and DOS. Learning new concepts just... happens as you build things. Need to do a new thing? Learn how to do that thing. Implement.
1
u/Temporary_Pie2733 29d ago
From the beginning, if you never approach it as a list of rules to memorize in the first place.
The first thing you should do after learning any new concept is make changes to your first examples and see what happens, rather than just saying “oh, that makes sense” and moving on. If you can’t do something on your own, you don’t understand the concept; you just accepted someone else’s explanation as true.
1
u/EdwardElric69 29d ago
When the assignments in college started spanning multiple files and I realised that they each have individual responsibilities that work together to accomplish a larger task
1
u/OmiSC 29d ago
It never felt like memorization to me. I used to make a lot of dumb shit.
Your whole goal needs to be to understand before making. You have to allow yourself to freely invent terrible solutions to problems.
When you do get to a sudden switch, it should be a transition from trying dumb shit to researching ahead. At that point, you need to have mastery of your chosen language because by then your focus should move to application and not how you make basic things work.
About balancing new concepts with actually building things, the best time to learn a concept is when you need to apply it because the lesson is self-evident. This is actually just a problem-solution approach to research. In the working world, you'll need to learn continuously when problems come up that you don't have an immediate solution to.
1
u/BoredTech127001 29d ago
Programming literally made complete sense to me on day 1 when I started, at age 8. Having known programmers over the years and others who want to be programmers but never could... my honest opinion is that if it doesn't click from day 1, if you don't like making puzzles for yourself and solving them, your not going to become a programmer. That said, we now have AI for Programming, and you might be able to be a builder instead.
1
u/Express-Scallion-534 28d ago
ig we gotta keep on learning
1
u/mkfs_xfs 28d ago
It's taken me several years and a compsci bachelor's degree to feel like I have a good idea of what I'm doing. I've been programming for longer than it took me to "get it", though. I feel like understanding the fundamentals of how CPU's, process memory etc work is what made me feel like I understand things, instead of just memorizing rules.
1
u/Alaska-Kid 28d ago
Discover the magic of writing cheat sheets and the wonder of having a second (or third) connected monitor for documentation and google.
1
u/One-Trips 27d ago
For me it shifted when I stopped trying to memorize syntax and started breaking a small problem into steps first. The blank editor still feels rough sometimes, but I don't freeze the same way anymore
1
u/gm310509 26d ago
That is fairly normal
I think the problem is that you are watching a random tutorial and opening a blank editor. That is too big of a step when starting out
Rather than doing that, recreate the tutorial. When it isn't working (either because the tutorial is crap or more likely you made a typing error - i.e. don't copy and paste what you see/read, actually rekey it and expect typos) try to fix it and get it working.
Once you have done that, try getting it to do something else. For example, let's say you saw a tutorial about for loops. Chances are it will count from 1 to 10 in increments of 1. Ask yourself is that it? Can I make it count to 20? What about in increments of 2? Can I make it count down from 10 (or whatever) to 1? Can I count down in increments of 2?
Perhaps you have learned functions before the for loop. If so, can you put the body of the loop into a function and pass the loop counter as a parameter?
By doing those "little steps", it will make more sense more quickly. You will begin to understand the concepts and be able to do more.
I always suggest follow along with the tutorial as it progresses. If you fall into the common trap of watching a tutorial from beginning to end and thinking "yep, totally got that", you are kidding yourself.
To properly learn the material, you need to practice it and it is easier to practice it as you go rather than trying to take it all in and attempt to replicate it at the end.
All the best with it.
1
u/gbsiklmn 26d ago
Exactly the problem that I have right now
1
u/Vizeroth1 23d ago
Some people have a really hard time starting from a blank file. I usually recommend either starting from a file used for a previous project with the details removed or starting by writing comments to describe what you want to do, then writing the code around that.
If you choose to reuse old code, make sure you understand the parts you’re reusing, or at least that you’re not reusing code that does something you’re trying to learn about.
If you’re using tutorials, try going through the tutorial, then think of things you want to modify from that tutorial and see if you can figure out how to do that. Most people don’t learn programming by writing a million programs. They learn by extending, modifying, and growing a hundred programs. Reading code and tracking down code that isn’t working is a bigger part of most developers’ work than writing code in a new file.
A lot of my early work was in Visual Studio using built-in project templates with dozens or hundreds of lines of code generated before I typed more than the project name. It allowed me to do things I didn’t know how to do and concentrate on the problems I really needed to solve.
1
u/Own_Unit_6170 23d ago
Everything clicked from the beginning. Tutorials just showed me how to use the tools. I already knew what I wanted to do, so once I saw how to use the tools, the rest was straightforward.