Many people claim that learning a programming language is hard and complicated. However, I find it easy, fun and challenging. Computer programming is nothing but converting the logic we use to solve the problems in to computer understandable language.
Positive and logical mindset is the key to make it easy to learn a programming language. Always think that learning a programming language is simple, easy, and fun. Even if your friends claim that, it is hard and complicated, do not believe it.
Imagine we want to write a program to get something done by computer. First, we understand the requirements then figure out how we can achieve it (Requirement and Designing part). Then we write it in a programming language where both computer and you will understand (Write a Computer program in a programming language). Finally we convert it to machine code that only the computer can understand (Compile). Every time when we want the computer to perform the same task we run that program and provide information it required (Run the Program).
In simple example, we will try to write a program to add two numbers. Our brain works fast so we do not notice many small steps we take to complete a task. If we break that task in to smallest steps just like the way, computers understand.
- Input one is going to be a number
- Input two is going to be a number
- Output is a number as well
- Get Input one
- Get Input two
- Add Input one with Input two and get the result
- The result is considered as the Output
- Display the output.
In Summary, try to understand the situation and what you exactly want the computer to do. Then break it in to smallest step you can think. This is the first step to do before start coding.
What is next? Start learning a programming language.You can find many hacks and tricks to learn a computer language here.