DEV Community

oyinade olawoyin
oyinade olawoyin

Posted on

Learning Programming Alone: From Panic Loops to Mental Pictures 💻

Learning programming alone can feel like trying to assemble a machine without a manual. It requires resilience and persistence to push through.

Understanding concepts is often the hardest part of learning any language. How does this work? How does that work? Everything looks important, but nothing makes sense at first. If you’ve ever ended up in an infinite while loop, panicking that your precious laptop might blow up, then yes—you’re someone like me.

The Struggle with Fundamentals

I struggled a lot to understand concepts like:

  • While and For loops
  • Functions (and what return actually does)
  • Break and Continue keywords
  • If-else blocks and logic
  • Global and Local scope

These concepts can be difficult to grasp, yet they are the essential fundamentals every programmer needs to make decisions and execute tasks.

Making the Abstract Concrete

When I finally began to understand these concepts, I promised myself I would write articles for beginners in a clear and concrete way. To make sense of these ideas, I started creating simple mental pictures:

  • 📦 Variables: I think of a variable as a box or a label.
  • 🌪️ Functions: A function is like a blender. It takes in your ingredients (peppers/onions), processes them, and gives you the desired output (sauce!).
  • 🏠 Scope: Your room might be your local scope, while your entire house is your global scope.
  • 🔄 Loops: It’s like sending someone on an errand a certain number of times, sometimes with specific conditions.

The Journey is Worth It

I spent five months learning Python. It might seem like a long time just to learn the basics, but it helped me greatly when I started learning JavaScript. Once you grasp the core concepts of programming, it becomes much easier to explore other languages.

The beginning is always the hardest part. But don’t be afraid. If you believe you can do it, you will.

What's Coming Next

I will be writing posts about the concepts I personally found most difficult. I’ll be breaking down the ideas that kept me up at night, starting next week:

  • 📦 Variables (The Labels)
  • 🔄 For & While Loops (The Errands)
  • 🚦 Break & Continue (The Traffic Lights)
  • 🛤️ Conditional Statements (The Decision Makers)
  • 🏠 Scope (Local vs. Global)
  • 🌪️ Functions (The Blenders)

Are you currently in the "nothing makes sense" phase of learning? Drop a 💻 in the comments if you are! I'll be posting about Variables next week—see you then.

Top comments (2)

Collapse
 
fcyber profile image
fcyber

Great job! Respect

Collapse
 
oyinade_olawoyin_aaaa6272 profile image
oyinade olawoyin

Thank you so much! I really appreciate the support. It was really a wild 5 months, but finding these mental pictures has changed everything for me. Glad you enjoyed the read!