Treehouse was helpful for me.
I second this. Team Treehouse is great! They usually have 50% off promos floating around on the web for your first year. That's how I started using it, and I haven't looked back.
There is also Code School, which is great also.
Second. I also like Framerjs for what i need to do, and my level. Taking mostly from studying examples on their website.
It really depends on what you're trying to do, but this should provide some reading material for a little while :)
HTML & CSS
VARIETY OF DEV LANGUAGES
MASSIVE RESOURCE LISTS
TEMPLATES AND BEAUTIFUL DEMOS
Learning how to code what?
I'm actually working on a course now that covers more than just learning how to code as just learning how to code in a silo doesn't get you far. I decided to take the holistic approach and cover everything from beginning to end so you can see the big picture.
Just pre-ordered, looks like crazy value for money!
Pre-ordered too. Thanks for doing this. Exactly what I wanted.
maybe you can try our little tool to begin http://silentteacher.toxicode.fr !
I wished the tool told me why I did mistakes. For example 00 and 0 is logically is same but why do they differ.
Learning how to code what? 
I like the Khan Academy method, and its free.
Code4Startup (https://code4startup.com/) is also a good one - it provides pretty hands-on coding with practical real-world problems
Surprised it hasn't been mentioned, but Youtube is a great resource for learning how to write code.
Unlike Treehouse or Code Academy, which teach basic principles, there are Youtube channels which focus on full fledged implementations of a feature.
My favorite channels right now are:
It's true that you have to be specific about what do you want to learn code for.
But still, Meng To's Design + Code is a really nice first step on designing and programming Swift applications on Sketch + Xcode
It might help if you shared what your learning goals are (i.e. build an iPhone app, websites, web apps, etc.) /r/learnprogramming is one place you might want to check out, and codenewbie.org
For front-end stuff: I used Codecademy to get started, but things didn't quite sink-in until I started playing around with a text editor and some frameworks. To be honest, I learned more in 2 days just by playing around with the Skeleton framework than in the weeks I spent following tutorials. I'm no expert, though. I just err on the side of understanding how code works and what's possible (or could be) on the web in terms of design.
Also, browser dev tools are invaluable when you want to understand how things actually function in real-time. I always open 'em up when I find something cool.
You might also check out FreeCodeCamp. It gives a structured way of working through JS and has a nice supportive community of learners behind it. http://www.freecodecamp.com/
I'm an experienced coder, but I've recently been watching Joshua Davis' skillshare class on programming graphics.
For some it could be a much more interesting way of learning the basics of programming while coming out of it with some new techniques for creating artwork. It really starts out with basic stuff. Eg. Setting up your dev environment and simple number operations. However instead of printing 'hello world' on the page you're painting images on the screen.
edit: Use this referral link http://skl.sh/1NLx1aa to sign up and we'll both get a free month.
Hi, here is the list of websites that will assist you in the learning process: http://www.hongkiat.com/blog/sites-to-learn-coding-online/
I found Code School to be quite helpful.
The first thing that really stuck with me is
You can go to http://codecademy.com if you want free Or try CodeSchool or Treehouse if you want to paid
If your interested in android development, give https://www.udacity.com/ a gander.
I would actually propose you go with Lynda.com as I think the quality of their videos are really high quality IMO.
What i did when I wanted to learn was watch the videos without doing any coding and then after that go through the videos again while doing the exercises.