I'm currently in an IT apprenticeship, specifically in a programming role, and I've had little programming experience before this. We've started learning Visual Basic and will move to C# later on, but I'm struggling to write functioning code on my own. I can read and understand code well, but when I'm faced with a task, I find myself unable to create something that works without looking at examples from others. I've asked my instructor for clarification on our assignments, but they tend to be a bit vague on purpose, simulating the real-world work environment. My initial attempts often feel wrong, and I realize only after checking others' code that my approach needs to be structured differently. How can I stop making the same mistakes in my coding process? Is there a way for me to change my thought process or something important that I'm missing?
5 Answers
I've faced similar issues where the bigger picture overwhelmed me. My advice is to simplify tasks into smaller, manageable parts. Start with the most basic functionality you want to achieve and build from there. Tackle one small problem at a time, and it’ll help you not feel as lost.
It's totally normal to seek examples when you're starting out. The key is to ensure you're not just copying without understanding. Try to analyze why the code works as it does—that’s how you’ll really learn and improve.
Instead of viewing your coding tasks as one big challenge, break them down. Start by writing something that just compiles, and then add functionalities step by step. It's all about linking tasks together. Also, remember, everyone starts somewhere; making mistakes is part of the journey. Just keep at it and learn as you go!
Learning programming can be a non-linear journey. Don't get discouraged if you don’t grasp everything immediately. Just focus on foundational concepts like loops and conditionals. Over time, as you keep practicing and coding, those fundamentals will turn into a solid understanding of program structure.
Getting good at programming means going through a learning curve where you might feel like a novice for a while. The more you code and practice, the better you’ll become. Think of each task as a small puzzle—deconstruct it, solve each piece, and build your skills over time by writing your own code.

Related Questions
How To: Running Codex CLI on Windows with Azure OpenAI
Set Wordpress Featured Image Using Javascript
How To Fix PHP Random Being The Same
Why no WebP Support with Wordpress
Replace Wordpress Cron With Linux Cron
Customize Yoast Canonical URL Programmatically