Just to add to all of these discussion
Well id say,
Procedural Programming(imparetive programming)
Advantage:
-Uses up less storage space
Disadvantage:
-since the programming is low level, that is more codes written it is less productive. Note high level envolves less code need be written.
Logic Programming language (Declerative language)
Advantages
- It is easy to reason about the program, using logic that is facts and rules.
- Less lines of codes need be written, uses recursion ( function directly/indirectly calls upon itself). Is better than loops ( involves more lines of codes).
- In the approach to testing, logic uses less lines of codes (means
less testing and maintaining).
Disadvantage
- Slowness of execution, the INFERENCE ENGINE (Section of the
program that contains all the logic function) does all the processing. It is known that the computer is a "dumb piece of s.."
sorry about the language just want to state a point, and therefore without specified instruction from programmer slow exection happens.
OOP
Advantage
-Well suited to development of GUI and Event driven programming( a type of programming that does not a linear/sequencial structure, but more like what happens as a result of an action eg
ressing a button).
- Well suited for RAD, fast development by using libraries of code.
- In the approach to testing OOP by nature are modular, easy testing and maintaing of individual module rather than a complete
program..... Oh man brain getting tired need rest...
Disadvantage
- Difficulty in using and understanding the libraries.
Function Programming
Advantage:
-Function can be reused.
- this type of programming good to develop and maintain large program consist of thousands of function, function dont have side effects ( returns one value/variables, these value/variables do not get altered or ...change).....need rest ...got to finish answer..
...and therefore is straightforward to fully sick... i mean test.
Disadvantage
- takes up more memory.
And i think that about it, or maybe theres more.
Candiates will be very lucky if they ask to state the adv/disadv
of these paradigms, if they do ask im thinking as well as hope
6 marks for a response.