What is the best possible way to enhance one’s command in programming?

Practice is the best way to enhance programming skills. First clear all the fundamentals of particular language you are learning the start from basic algorithms and move towards more complex implementations.

The data structure is really important for command in the programming language.

After clearning fundamentals explore the library of the language and use in the code to see how it works, try to make the same by your own and again practice is the key to success.