What is general programming?
General programming is one of the popular types of computer programming written to create the most effective code while allowing the code to use as many situations as possible without required any changes in the original code itself. Once the code is written, it can only perform the exact features for which it has been written. By using general programming to create codes that work in a number of different situations, programmers still perform the same basic, overall function, can use one piece of code in different programs without changing the original. Soon afterwards, other programming languages, such as Java and C ++, began to use general programming to simplify the programming code while allowing the use of the same code in multiple scenarios. Each programming language has a special way to use this code and different terms. "Generics," "templates" and "parameterized types" were all used at a certain point in to refer to general programming cases.
for understandingThis type of programming is important to know the basic concepts of how the programming language works. should also be a number.
While the program works until Paul adds two numbers, it will collapse if he tries to add something else together. If Paul decided to combine sentences together and create a paragraph, the program would collapse because he would find letters and not numbers. However, Paul could solve this problem using general programming to tell the original program to come a variety of varies - both numbers and letters - so the program could create sentences or add.
Not all programming languages require the concept of general programming to be effective. Those who use it are statically written languages. This simply means that the code is set to stone and cannot be changed when the program is running. For this reason, if the programmer stated that input fromThe user should be in the form of letters and the user entered the number, the program could not use the input. Programmers are therefore trying to predict all logical types of data that the user could enter, whether numbers, letters or symbols, and create a program that can be adjusted accordingly.