Note for devs already in the industry: hopefully this article will be helpful to you when you are inevitably asked how to get into programming as a link you can send to the interested person
So when starting to train, it is important to be using the correct resources. Luckily in the software development industry there are loads!
Make sure you understand object oriented programming (OOP).
Get your head into databases by learning SQL - SQLZOO is a great resource I found useful when learning. Sequel Pro is my favourite GUI to visualise the databases you are working with and will make your life easier. If you do learn PHP use PDO to link it to your database.
Also try and learn a version control system such as Git (this video course is a good starting point), get comfortable using the command line and try and do some research on an agile working methodology such as Scrum (potential employer will be impressed).
Go to meetup and find tech meetups to do with coding in your area - this is a good way to find a mentor. Maintain an active Github (For storing/sharing your code), Stack Overflow (for requesting/giving help) and codepen (like a doodle pad but for code) accounts.
After all that you should be well placed to have a crack at getting your first gig.
Good luck! Remember to enjoy yourself while your learning otherwise you might find yourself giving up, It’s not going to be easy but it’s an awesome job if you can get it.
A note about procrastination:
Start right now! There is no time like the present. As someone who has experienced learning to code from scratch I became very aware of the negative impact of procrastination. I used to look at forums for hours, posting questions about what to do and how to do it. The truth is that time could have been spent learning. It’s the difference between loving software development or loving the idea of being a software developer - you must make a choice about which one you want to be and get cracking!
...That being said, if you are going to procrastinate then you should do it right. Here is my current favourite place to procrastinate on the internet