Hello everyone, I am new to this forum. I want to know about the best way to learn something new on programming.

What should one do for learning? Should one read more and more books, take some online courses, make his own notes or code as much as possible? And what is the proper order to do these.

Thanks in advance.