programming Fundamentals Concepts~

why we need to learn to programming ๐ค??
We all remember when used our website when we installed our first app on phone we always use to wonder ...how things must be working under the hood and how these cool features are working which making our life easy .... back then we did not know the answer but now we have. By learning to the program we can build an awesome web app, android app... programming require to have a special skill in order to make awesome projects... but for that, we need to start programming.. And from where the answer is # fundamentals ~~...
Learning fundamentals of anything is always important has it play a crucial role when you have to level up ahead. And in programming, it is vital to have a good hold of fundamentals before moving towards advanced topics. Fundamental play a significant role as its act has a-pillars of programming no matter which programming language you learn you will notice there will be changes in syntax and its way of writing but fundamentals remain the same and it also acts as the backbone of any programmer. Every successful developer has learned the fundamentals first and then the other concepts. All other concepts will come and go but your fundamentals will always be there.
we will see fundamentals one by one: ๐
* . Variables : variable is used to hold the data which we can use throughout the programs. we can also give a specific name to a variable so the program can be understood by the reader. it can we bethink like how in our kitchen we store dal, rice, sugar and how labels them exactly in programming we store data in a variable we name them and use them throughout the program. There are different types of variables like int, float, char. Int use to store the number, float used for storing decimal value, and char use for alphabet.
a = 6 a is assigned โ6โ b = 4.5 b is assigned โ4.5โ c = 'p' c is assigned โpโ
*: Conditional statement: we can understand it has a in our life there are lots of conditions we get suppose when we have money we travel by car to our destination and when we have less money we prefer public transport. we always have conditions that we encounter in our day to day life. In programming also there will be situations where we have to use [if else statement]. On websites you must have also noticed when we put the incorrect password its show an error message and if it's correct its show success. we do exactly this we tell our program if it's true to perform this action and false show this output.
*. Loops: Sometimes we want our program to execute a few sets of instructions multiple times like eg: printing 1 to 100, natural numbers, even numbers. loops solve our problem when we want to do so sets of instruction repeatedly. There are different types of loops for loop, while loop,do-while loop, their syntax may be different but do the same job. But loops should be executed according to conditions we want to meet and the requirement of the program.
*. switch-case : Switch-case is used when we have to choose between the number of alternatives for a given variable. switch case gives multiple options to the programmer so users can select according to their needs. we use a lot of options while using the website for example we get options from which transport you want to travel it gives options via car, auto, bike, if user press one car will get booked, if the user press 2 auto will get booked ..... . switch case plays a vital role for providing an alternative.
*. Functions: A function is a block of code that performs a particular task. A function can be reused by the programmer in a given program any number of times. the function helps us to reuse the many numbers of time. It also helps to Increases program readability. Divide a complex problem into simpler ones. Reduces chances of error. When code gets big its get messy and become difficult to make changes thus functions helps us a lot. With function, we can extract any program and use it repetitively. Example of function in real life if I explain suppose I own a computers class I also need accountant and repairman but if I keep them I will have to give them wages and they will require extra space. Instead of that, I will call them whenever i require it this will help me to get work done also without acquiring space. i can call them whenever i require.
- #Arrays: Array is a collection of similar data types you heard right it cannot store multiple data types we access the array by index it is important to know that array index always start from zero. the array also helps smooth debugging code effectively. the array also helps to write a modular program and provide. if we want to store more data like student marks with another data type we have to initialize variables for every student. which hamper the readability of code.
now let us understand why this fundamental where created :
**## we all know the important thing of programming is to solve problems .when at starting when fundamentals were created one of them had some disadvantages .. coz of which more concepts came tackle problem example: array function, loop, switch case. this fundamental helped to solve problems and to write errorless programs and clean code, lots of programs have bugs to eliminate them we need to have a good problem-solving approach. But to solve the complex problem we need to have a good grasp of # fundamentals....~.
I will share my experience of learning fundamentals: # ๐ถ
while learning to code for the first time. I wanted to learn faster so I use to jump to learn another concept before getting good at basics coz I wanted to learn faster but then I was struggling to learn those concepts then I realised I need to focus on fundamentals stronger to get a # good hold of other concepts all other concepts depend on it. As I said earlier fundamentals are building blocks of life ......
...Thanks for reading...
