I'm new to coding and feeling a bit overwhelmed. Initially, I was advised to read a lot of code, but now I've been told to write my own code first and then review it for errors. I'm currently working on a mod for Stardew Valley and I'm uncertain about how to practice coding effectively. I've found that reading tutorials and taking a beginner's course in C# has been helpful, but I still have questions. Is practicing coding about finding a balance between reading, writing, and thinking? And is it okay to look up things I've forgotten?
5 Answers
Both reading and writing code are crucial but serve different purposes. Reading code helps you discover new techniques and tools, while writing your own code is vital for developing your skills and building muscle memory. Start by reading a solid textbook or guide, but once you grasp the basics, focus more on practicing by writing your own code. And yes, always review your code for errors afterwards!
It's great to create a project, even if it's small and simple. I built a Boggle solver as practice, and it helped me experiment with libraries I wouldn't have explored otherwise. Find a project that interests you and dive in!
It's interesting that the advice changed from just reading to focusing on writing and checking errors. Aren't those basics critical too? It's all about finding the right balance as you advance!
The best way to learn is by building real projects and gaining experience. Whenever you're stuck, check the documentation or watch courses to learn new things. And don't hesitate to look things up! Everyone forgets stuff, and that's totally normal.
To improve in any craft, like writing, you need to read a lot to learn from others and then write frequently. Reviewing your work helps you understand what could be better. It's a similar process in coding.

Thank you for the clarity!