In this series, we are going to learn the fundamentals of computer programming. Language-specific features will be provided in a different series. A programming language is one of the possible ways to instruct a computer. We try to solve a real-life problem. Every programming language might not be suitable for the current problem at hand. In other words, we can say that programming is the skill of implementing an algorithm in a programming language. An algorithm is a step-by-step solution for a problem. So, we can not solve a moderate-size problem in one step. We need to break down a problem into problems of a manageable size. The person who does programming is known as a programmer. Some programmers deal with computer hardware and they are known as system programmers. Others are known as web programmers and write web applications. So, the different types of developers(programmers) use different programming languages to handle thei...
In Rust Hello World Program , I have introduced Rust programming. We will learn about the basics of Rust programming in this article. The first line starts with //, depicting this line as a comment. A comment is documentation for another developer. We can also start a comment after the code. But all comments end at the end of the line. println ! ( "Hello, world!" ) // This line prints Hello, world! In every programming language, a program is a sequence of instructions for the processor to execute. We also need a starting point where the instruction starts executing. In Rust programming, there is a special function named the main where the execution of instructions starts. When all instructions in this function including the calls to other functions end, the program ends. After reading Programming Concepts Part III and this article together with the YouTube video , You might be willing to learn more about programming. Last but not least, every program...
Continuing from Programming Concepts Part I , now we talk about real programming tasks. As we need containers to put items in a kitchen. Then we use these items to prepare food for ourselves. The preparation of food involves some activity. In the same manner, in programming, we need variables to store values and we do some activity to complete a task. We use instructions to complete a task. For example, we need two variables to store values and addition instruction (+) to find the sum of the two variables. In a high-level programming language, we say instructions as operators . a = 5 b = 8 a + b is 13 The first time when we introduce a variable in a program it is called the declaration of the variable. And the first-time value assigned to the variable is called initialization of the variable. Each programming language has its own way of variable declaration and initialization. In this series, we are going to learn the fundamentals of computer programming. Langua...
Comments
Post a Comment