In this post, I will be analyzing the limits and applications of of 3 different computer languages or paradigms. These are
1) Procedural Languages
2) Event Driven Languages
3) Object Orientated Languages
But first I will inform my readers about what a computer language or a programming language really is. A programming language is not like normal languages such as french, English, Punjabi or Arabic. It is a special language that is designed for programmers that has some words of English. Not everyone can understand programming languages. It is used to interact with the computer hardware or machines. The primary function of computer languages is to create useful programs. These programs are used to control the PC. Common languages are Java, C++, Basic and PHP.
I will now explain the three paradigms of computer languages, starting with Procedural Language.
Procedural Languages:
Procedural Languages are meant to be typed in a number of steps. The compiler executes these commands in a series of steps. In procedural languages, the solution is often written by the programmer inside the code. Some examples of procedural languages are Java and C++.
There are many applications for procedural languages. One of the application is that procedural languages are good for making calculations. Also, it uses procedures. Procedures can be reused in the code which helps the programmer save time and energy.
However procedural languages has it's own limits. If something goes wrong with the program. for example, any bugs, then the programmer would have to go through the whole program to find a specific problem. Hence we can say that it is very difficult to modify
Event Driven Languages:
Event driven languages are used to ask users for specific inputs. After the inputs are entered, the program processes them and uses them to generate a specific output. This is only if the inputs are recognised by the program. The basic concept behind Event Driven Languages is "if statements" , "else if statements" and "else statements" For example, if the user inputs this, then then give the user that else if the user inputs then give the user that else give the user this.
The application of event driven languages are, commonly, sensors. Heat sensors can be one use to be specific. For example, they can sense a specific range of temperatures. If Heat Sensor increases more than 100 degrees then alarm goes off. If not then alarm remains silent. This is just one example.
The main limitation for event driven language is that it requires a lot of processing power.
Object Orientated Languages:
These languages create objects. Within these objects they fit data about them. For example, Object can be a human being and the data could be eye colour, hair colour, skin colour, heigh, weight and so on. An application for these languages can be that they use functions or classes which makes them easy to maintain. A team can work on a project and can divide different classes amongst them to make their task easier. Also, bugs are easy to fix. However there is a limitation as well that is that these files are huge in size. This means that it will take much longer for them to completely load. This is because of the code that is within them.
No comments:
Post a Comment