সোমবার, ২৬ মার্চ, ২০১৮

Why do you learn programming?

Let's start with a problem. Suppose you were told to find out the sum of the number of 1 to 10 which can be divided into three numbers. The job is very simple, because 1 to 10 divided by 3 would be 3, 6 and 9. Their sum is 18. To make sure it does not take you more than a minute, it's sure. But if it is said to divide the numbers from 1 to 1000 which can divide by 3 or 5, then you will be a little confused. Because now you have to verify with a number but it will take a lot of time. 
Right here you need a magnifying glass or computer. If you tell the computer that the number between 1 and 1000 is divided by 3, keep them separate and finally add all and say the answer, then in a second you will get the answer.
For this instruction, the computer can not be interpreted as a Bengali. In that case you have to write a program using special language. That is to use the programming language. Here's the importance of the computer, the importance of programming languages ​​here. With these we can speed up a lot of big calculations. 
Now let's move on with the problem above. By typing the program, you can now divide the numbers between 1 and 1000 that divide by 3. In that case, you have to run a loop, which will turn around and perform the same instructions. The value of a variable inside this loop is going from 1 to 1000 and every time the clock rotates the circle will be divided by 3. If the fraction is empty then you add the number to another variable. In that case, the type of code will be as follows - 
x = 0
For i in range (0,1000): 
if i% 3 == 0: 
x = x + i 
print (x) 
Now if you understand that, then by writing it in any programming language you can solve the problem. Here the first x = 0 is actually assumed to be a variable (declared) and its value is zero. Now a for loop has been executed, where there is another variable named 'i', which can go from 0 to 1000 inside the loop and it will have the value of i that is going to change it to 3, it will see if the remainder is 0. If the (if) fraction is 0, then the value of i will be added to x. And at the end of the program, x will print the value of your screen (show on screen). 
The problem is solved here, is it? But there is another interesting thing here. See, if you can solve the problem without running a loop from 0 to 1000!
First we will see our sum from 1 to 10-- 
18 = 3 + 6 + 9 is also 
written like this - 
18 = 3 (1 + 2 + 3) In 
this case you get a series of n and a number of algebraic series. In the case of 100, this series is like this: 
3 (1 + 2 + 3 + 4 + ... + 33) 
The sum of these series but you can easily find out through this formula-
If you do not do this in the loop, then you can put this form in your program and do it. It has a benefit. Each time it takes a certain time to run the loop. So if the loop rotation is more than the amount of time it will take longer. You will not see this in case of small shorter work. But if this problem range from 0 to 100,000,000? When you solve your home computer with a loop, it will be a matter of time. Here the mathematical formula implies that we reduced this timeframe to say it's Optimization. This is also the goal of a skilled programmer.
At the beginning of programming, many people do not understand what language they start with. Java, C ++ or Python? Again those who start with C continue to feel like they are worn again - "C ++ is more advanced or upgraded, would not it be good to start with?" The real thing is, you can start with any one. But to become a proficient programmer, you first need to know how to deal with a problem first. Before solving a problem, it needs to be sorted out in our thinking world. If you can not think of that, you can not be a very skilled programmer even after learning four or five programming. 
Basically the basics of programming that need to be learned are variables, conditional programs, loops, data structures and libraries. If you catch these five ideas, you can get acquainted with any programming language.
If you have a programming language, you will need to understand the basics of any other, for just two days. There is no lack of programming tools on the Internet. A lot of information is being added in Bangla language But before that you have to learn how to think. In that case you can learn a language and solve some programming problems online. In this case, Hackerrank, UVa, URI is good for starting these three websites. 
Some questions 
1. How many problems will be solved for being proficient in programming? 
Many people have been annoyed at the first part of the writing, hearing the consolidation of the problem. You might want to create a great application for desktop or smartphones by a creative person who quickly learns the programming. That's why the problem needs to be taken positively.
You can learn C ++ or Python if you want to create a desktop application. The advantage of learning Python is, it is easy to learn and is very popular at the present time. If you want to create a mobile app, you have to learn Java. But in this case, if you want to write a program efficiently, it is better to experience some problems beforehand. This will increase your programming skills, as well as the patience to deal with different problems. But the competition programmer will not work. The problem solving of programming is actually like a game to programmers. 
2. What is the need to learn mathematics in order to learn programming?
It is better to know at least the level of school level math. Actually mathematics is a tool that we can use to make things easier for us. As we have seen above, how we make a program easier or simpler by using a formula. You do not need to know all the time for this how the formula came exactly. You must know basically how and where to use mathematics. Mathematics is not usually taught in our field at the school-college level. So it is seen that many people are afraid of mathematics. 
3. Where to learn Bangla programming?
Now many people in this country write blogs in bangla Those who do programming also write too. So programming resources in Bangla are very fast. Google will get a lot of information. You can see Subin's blog to start with C. Besides, there are many books in Bengali that are available on programming. There are also tutorials on YouTube. 
4. What should be brilliant for being a proficient programmer?
What is the definition of merit before that? Well, tell me from my own experience. At our university, at the beginning of the programming course, I saw a friend who was getting computer for the first time in life. It would have been easier to find out what the programming would do, where the keyboard had a letter. But he was able to raise his skills so much that he studied in the waking hours of his life and so much that the students who had already studied had fallen behind him. You do not have to be talented to become a proficient programmer, but if you learn to do programming efficiently then people will call you meritorious.

0টি মন্তব্য:

একটি মন্তব্য পোস্ট করুন

এতে সদস্যতা মন্তব্যগুলি পোস্ট করুন [Atom]

<< হোম