Introduction to Coding
Hi there. Welcome to the world of computer. First of all why coding? Why not 'introduction to programming' or 'introduction to some language'? Let me explain something about this. Beginners to computer programming have to learn coding first then programming or more appropriately coding is fundamental part in making a program. Now you might ask what is difference between coding and programming?? Both looks like same terms right...?
So here is what we mean by coding, it's the 'Logic' or 'Pattern' that you make in your mind by which you solve some problem. For example if you need to solve some equation like
[ (x + 3) * z ] = 4
you will defiantly think of some pattern that you will apply to this to find values of variables. So, this pattern is the code. You practice this all time for doing various stuff in routine life. Like for going out for shopping you make pattern that you will prepare then take some money then go to shopping mall and so on. So in computer coding you will need to 'Practice' for solving same problems in according to computer functionality.
Similarly programming is referred to some language that will help you to implement this code into making a program that will in turn solve your problem in computer. Let's try this example:
Problem: Make a simple calculator
Problem: Make a simple calculator
Solve:
- First you will think over it that what is a simple calculator? How does it work? What does it do? So it is a device which solves arithmetic operations on numbers like addition, subtraction, multiplication and division.
- Second you will make a pattern according to which a calculator may work. It will be something like this:
- ask for first input
- ask for operation ( + , - , * , / )
- ask for second input
- perform operation
- tell answer
- Third you need to specify computer functionality to convert this pattern in computer code. That for now let it be something like this:
- function 1: take user input via keyboard in numbers as first value
- tell user to enter specified value
- let user to enter value
- function 2: take user input via keyboard for function that is required to perform
- tell user to enter specified value
- let user to enter value
- function 3: take user input via keyboard in numbers as second value
- tell user to enter specified value
- let user to enter value
- function 4: solve both values according to function specified by user
- function 5: tell user answer
That's it....!!!! This is "THE" code and it is easy to convert it to program via a language.
So that's it for coding. Just remember these 3 steps and build your base according to these. I promise you will understand computer coding in best way there is... We will continue this to next topic in which I'll tell you some basic functionality of computer and then we'll jump to coding. Good luck
This comment has been removed by the author.
ReplyDelete