Hey everyone! I'm currently doing an IT apprenticeship, specifically in application development, but I'm struggling a bit. I didn't have much programming experience before this, and we started with Visual Basic, soon transitioning to C#. My problem is that I can't seem to write a functioning program without looking at someone else's code. I can read and understand code just fine, but when I'm on my own, I often find myself lost. I tend to ask my instructor a lot of questions, but he gives tasks in a somewhat vague way, which makes things frustrating. I want to know if there are any strategies I can use to break this pattern. Can I train my thinking to improve, or is there something specific I might be missing?
4 Answers
You're definitely not alone in this! Building your programming skills really comes down to practice. The more you code, the better you'll get. Try tackling smaller projects and gradually increase their complexity. You'll start to develop a toolkit of patterns you can use, which will help you solve problems more independently.
It's totally normal to rely on examples when you're just starting out! The key is to avoid just copying and pasting without understanding what you're doing. Make sure to grasp the concepts behind the code you look at, that way you can start to write your own functions with more confidence. It's a learning curve, so don’t be too hard on yourself!
One tip I can give you is to simplify your tasks. When faced with coding challenges, break them down into smaller, manageable parts. For example, if you need to write a program, start with just getting something to compile, then build from there. Tackle each piece one at a time; it'll ease the overwhelming feeling of coding a big project.
As a casual coder, I've found that learning programming is more like learning a language. You start by modifying existing pieces of code, and before you know it, you'll be implementing your own ideas. Focus on understanding key concepts like loops and conditionals, and remember that it’s okay if things don’t make sense right away!

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