TL;DR: find out your motivation and start by building small things
Since everyone today wants to learn how to code and the internet is full of those tutorials, adding yet another tutorial is pretty much useless at this point. But since I also have an opinion on this (TM), I thought of sharing my story in the hope of aspiring someone trying to learn how to code.
For me, the most important part of learning how to code was perseverance, because I liked to build things and kept trying even though I didn’t know much. So when things got hard or when I got stuck, I kept trying different things and googling my way out (btw this is still the case, it’s just that I got much better at what to google.)
This is why I think you need to understand your motivation first. It could be anything. Getting a job as a software developer. Building that cool app you always talk about. Building a business. Being able to understand your programmer friends. Whatever it’s, you need to sit down, do some self-introspection and find out the real reason and it’s worth it for you.
For me, programming is one of the most rewarding activities ever. Both intellectually and financially. If you decide it’s for you and something worth pursuing, make sure to always have fun while learning it and keep shipping and sharing cool projects.
stackoverflow.com : nice place to ask a question related to programming
github.com: nice place to search for code and post your code
learncodethehardway.org: if you’re into courses, this is quite good