• Best of luck to the class of 2024 for their HSC exams. You got this!
    Let us know your thoughts on the HSC exams here
  • YOU can help the next generation of students in the community!
    Share your trial papers and notes on our Notes & Resources page
MedVision ad

the 4 paradigms (1 Viewer)

-[Kakashi]-

Member
Joined
Sep 10, 2003
Messages
51
Gender
Male
HSC
2003
heyz...
can someone b kind enough and tell me the positives and negatives of the FOUR paradigms....??

and a brief description of imperative paradigm... coz all i knw is that it uses control structures (repetition, selection, sequence) and variables....

greatly appreciated.. thx thx :)
 

Ragerunner

Your friendly HSC guide
Joined
Apr 12, 2003
Messages
5,472
Location
UNSW
Gender
Male
HSC
2003
Logic - facts and rules

Positive - Used for AI systems, reaches conclusions
Negative - A hefty task just to solve some simple questions.

OO - self contained objects

Positive - Allows re-usability of code, encapsulation/polymorphism etcc...
Negative - I don't know.....

Functional - functions

Positive - Significantly less work to do when programming in functional, easier to debug problems.
Negative - Not widely used, based on mathematics.....
 

CraZiEeE

New Member
Joined
Dec 19, 2002
Messages
19
Sorry, if im taking over another persons thread but may i ask why functional paradigm is not widely used?
 

-[Kakashi]-

Member
Joined
Sep 10, 2003
Messages
51
Gender
Male
HSC
2003
its not that widely used bcoz it consist of using mathematic functions to solve a problem.... and most problems can b solve with other paradigms bcoz its less complicated....

hope im right...:D
 

Freedom_Dragon

The 36th Dragon
Joined
Oct 11, 2003
Messages
154
Location
Behind a door that will never open.
Gender
Undisclosed
HSC
N/A
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:pressing 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.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Top