77
How exactly does one get better at programming?
(lemmy.world)
Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!
Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.
Hope you enjoy the instance!
Rules
Follow the wormhole through a path of communities !webdev@programming.dev
Dedicate yourself with a more long term project (1+ months). I think the best way to learn is through the pain that comes with larger code bases.
Start small. Add more and more features. If there’s something you don’t know how to make, find a tutorial or a guide and make it work with your project.
Eventually you’ll discover pain points in your project. The feature you want to make doesn’t fit well with your current code. This is good time to learn from your previous mistakes and adapt your old code for the better (refactoring).
Over time you’ll learn more and more techniques to write code that can grow. You’ll see for yourself why some coding styles are considered bad and why some are better. This is difficult to see just by working with short term weekend scripts.
Don’t worry about failing. No one writes ”perfect” code. You’ll learn from your mistakes.