You are on page 1of 7

Describe the application and

limits of procedural, object


orientated and event driven
programming.


The applications of procedural
programming.
Procedural programming is
Procedural programming languages breaks specific to calculating
up the programming task into a number of scientific and engineering
procedures (also sub-routines or uses. It is used for
functions). Each procedure carries out a calculations. It consists of
specific task and is called from the main
a fluid movement
program.
throughout the program as
it runs.
The procedural approach is relatively easy
to understand and is therefore often used This is great for
when first learning programming. It is also straightforward systems
suitable for systems that are fairly which don’t involve many
straightforward and don’t involve many different interacting sub-
different interacting sub-systems.
systems.

An example of a procedural programming language is C, Pascal and PHP.


The limitations of procedural
programming
There are limitations to what you can do with procedural
programming. When you are using procedural programming you do
not have much flexibility with it. It has to be one straight
programming with calculations done precisely.

Procedural
Another limitation is that
programming is tightly
procedural programming
packed. What I mean
will eventually become lots
is without one line of
of lines of code that can be
code the program will
confusing to go through. If
not work. If you are
there is a bug in the
to change part of the
program it will take awhile
program you will need
to go through the lines of
to change other parts
code to find the problem.
in order for it to work
correctly.
Object-orientated programming.
Object-orientated An example of object-
programming takes a different orientated
approach to the structure of a programming is Ruby,
complex program. This type of smalltalk and python.
programming was created in
response to the difficulties to
creating highly complex What object-
systems. orientated is mainly
In object-orientated used for is user
programming, the interface design, real
programmer uses time systems and
objects rather than object orientated
procedures. database.

This helps to make


complex programs more
easy to program.
Limitations to object-orientated
programming.
With object-orientated
programming, it has a steep
Object-orientated learning curve. It can take time to
programming get use to. It is also complex to
limits the create programs based on
programs you can interaction of objects.
write , this is be
cause not all Object orientated
programs can be programming
modelled typically involves
accurately by the more lines of code
objects model. than procedural.

As well as this , it
makes the program
become slower , as
they require more
instructions to be
executed
Applications of event-driven
programming.
Another application of
event-driven
One key upside of using programming is that
event-driven programming is
it is useful for GUI
that it can be written in
almost any programming programs
language as it is a style of The flow of
programming which splits the event-driven
program into handles which Event- driven is
programming also used in
are triggered when an input
is made. can be seen as operating systems
random. What I and internet
Event driven
mean by this is browser software.
programming is
widely used in
that it is This is because
usually less event driven works
almost all
logical with inputs and
windows
objects , using
programs. This is
event driven for
because windows
these will be the
programs will wait
best type of
for your input in
programming to
order to do
use.
something.
Disadvantages of event-driven
programming.
A disadvantage of using event Event-driven programming is
driven can also be seen as an a hard to understand and
advantage. Using event- master how it works. Unlike
driven for GUI programs. The procedural programming
reason this could be a where calculations are used
disadvantage is because it is to make it work, event driven
only useful for GUI is less obvious in how it
programming. If a company works.
trained their employees in
event driven but they are not
using GUI programs, This
would not allow the
employees to work as the Event driven is not
programming type they are useful for
using is not compatible with commercial
the programs they are making programs as they
require data
processing which
event driven
programming isn't
used for.

You might also like