the best way to learn to programming from scratch

Don’t just read the books. The best way to learn how to program is by doing it. It’s easy to spend hours reading about syntax, but computer languages like human languages require you to use them in order to understand them. Try starting with simple projects. If you’re going the C/ C++/ Java, play with JavaScript and get a simple div to move around on the page when you click on something. Then work your way up to more complex ones. You have to learn DOM manipulation to properly handle when the user interacts with the page. A new company called codeverb http://www.codeverb.com just released an all C++ Java references and codeverb provides Interactive Tests is Quite Good.