There are many great ways to learn to code. Websites like CodeAcademy allow you to work through exercises in a browser to learn a language. This is a great way to learn the syntax and structure of a language without having to install a development environment. Not everyone learns this way and many people believe project-based work is better for long term learning.