Tuesday, September 27, 2016

Describe the application and limits of procedural, object orientated and event drive programming


Describe the application and limits of procedural, object orientated and event drive programming

High Level programming languages
High level languages are able to be understood by the user with ease these are also powerful and allows the user to create a range of different programs. They are highly related to the English language such as they are able to be read for example the work “print” will tell the computer to print the specific value to the screen.

Imperative Programs
This is used in most programming languages, old ones and newer ones. Each line of code allows the program to handle the inputs, processing and outputs of the whole program.

Procedural Programs
Procedural programming languages have significant starting and ending points this type of programming was very popular before the use of graphical user interface operating systems, they tend to have a starting point then follow a specific sequence. Newer programming languages can respond to a specific event, this means the program can have many start points within the code.

Event Drive Programs
These types of programs respond to specific events from the user this could range from a mouse click to an input of a number or even scroll down the page, this will they trigger the piece of code to run. This is used in modern programming a lot due to the fact of graphical user interfaces this then means the program responds the events in which the user triggers.

Object Orientated Programs
This type of programming looks at programs as a group of objects; this could be for example database records and not a chain of tasks.  Each object is viewed as a separate independent object and will have its own responsibility; it could be in charge of receiving and sending messages and processing information.
These tend to be for the more experienced programmers and take a little longer and more understanding to learn.

The Procedural Paradigm
This type of programming uses step of procedures, this allows a program to perform a specific set of tasks, This is a fast process due to how simple it is, it uses simple logic and tends to be here beginners should be starting.
Complex software should not really be written using this type of programming this means, it would require many lines of code to be used thus making a lot more work for the programmer and would be very time consuming, it also may be very confusing sue to the fact there is too much code to read.

This paradigm can be used in the following languages:
·         C
·         C++
·         Fortran
·         Pascal
·         Basic


The Object Orientated Programming
This type of programming focuses on individual objects, rather than using logical procedures. This means that all of the objects can respond to the same instructions differently. This also allows the programming to narrow down and change specific objects rather than having to change the whole piece of code.

This type of programming can be very difficult to learn and has a steep learning curve; it requires a lot of planning to ensure the programming runs smoother. A programmer will also have to consider the relationships between the two objects and this can be difficult to get familiar with. OO programs, tend to have larger file size this could cause some issues when having to compile the program.
The languages that are used in this type are:

·         C++
·         Smalltalk
·         Java
·         C#
·         VB

The Event Driven Paradigm  
This type of programming is designed to react to user responses for example it will be able to detect specific button clicks or key presses, this allows for more interactive programs to be created, this is increasingly beneficial when creating graphical user interfaces. This allows easier communication between both hardware and software.
This tends to only be used when GUI’s are involved sue to the programming style being extremely interactive, this means that the programming is not very flexible.
Lists of languages which event driven programming can be used are:

·         FOCUS
·         Lisp
·         Perl
·         Ruby
·         SAS
·         COBOL

Advantages and disadvantages of different programming languages

Visual Basic
Positives
Negatives
Easy to learn
Only work in Windows operating systems
Integrated IDE as well as a language
A lot of memory used due to using a GUI
Obtained for free
Slower than other languages
A lot of help through the use of online tools
Unable to program complex programs
Has a toolbox, assists programmer, when creating a program
Not able to be used for web  development due to be used only for Windows

C++
Positives
Negatives
Very similar to other programming languages
Very difficult to learn as it is very complex
Can be used for multiple paradigms OOP etc.
Has difficulties when trying to create web applications
Obtained for free
Mostly used for platform specific programs
Fast language compared to others  languages
Unable to program complex programs
A very popular programming language a lot of online help from other people
Certain compilers, can cost money to compile the program

DarkBASIC
Positives
Negatives
Very easy to learn
DarkBASIC costs money to use without advertisements
Short amount of code needed to be able to create programs in comparison with other languages
Not multipurpose due to it being created solely for games not very flexible.
Obtained for free
Can be fairly slow to both program and run
Specifically for creating 2D and 3D games


JavaScript
Positives
Negatives
The language itself is very secure and con protect the user
Slow to develop and run
It is cross platform this means it can be used and ran on many different operating systems
Slow compiler
Obtained for free
Difficult to frame based applications
Very easy to learn compare to more complex programming languages
Needs C++within the program to allow it to create an .exe file extension
Multithreaded, this means that multi-tasking and performing different tasks at the same time
Can be difficult to grasp if not much experience

HTML
Positives
Negatives
Used plain text so is very easy to learn and understand
Limited security features
Easy to edit and read other developers programs
Can be classed as a static language
Obtained for free
Pages most be edited separately
Supported by most if not all browsers
Structuring can be very difficult to learn when using this language
Can use search engine optimizations within the code




No comments:

Post a Comment