Bored of Studies  

Go Back   Bored of Studies > Secondary Education > New South Wales (HSC) > Technology > Software Design & Development > Option: Evolution of Programming Languages

Reply
 
LinkBack Thread Tools Rate Thread
Old 6 Oct 2004, 2:58 PM   #1 (permalink)
Exalted Member
 
HSC: 2004
Gender: Male
Location: Australia
 
Join Date: Mar 2004
Posts: 936
 
Last Activity:
7 Apr 2009, 9:00 PM
 
Scanorama will become famous soon enoughScanorama will become famous soon enough

Send a message via ICQ to Scanorama Send a message via MSN to Scanorama
Question Paradigms questions. Very confused.

You can hide this advertisement by registering.
G'day all, Im revising this option topic at the moment. With all different kind of paradigms, I'm very confused. Although I have a variety of texts but still I cannot understand what they mean. All 3 paradigms namely are: Logic, functional and object-oriented. Does imperative include as well?

I am so confused with their characteristics, and the use of each of them. Can someone please explain them to me? Thank heaps!
Scanorama 当前离线   Reply With Quote
Old 6 Oct 2004, 10:42 PM   #2 (permalink)
<insert title>
 
dark`secrets's Avatar
 
HSC: N/A
Gender: Undisclosed
 
Join Date: Dec 2003
Posts: 2,841
 
Last Activity:
9 May 2009, 4:54 PM
 
dark`secrets is a glorious beacon of lightdark`secrets is a glorious beacon of lightdark`secrets is a glorious beacon of lightdark`secrets is a glorious beacon of lightdark`secrets is a glorious beacon of lightdark`secrets is a glorious beacon of light
OOP- encapsulation, inheritance, classes, methods and polymorphism
logic- based on facts and rules, inference engine and backward/forward chaining.
functional- im not all that clear abt it, but it deals with mathematical problems or something.

hmm (random suggestion) imperative is like the normal algorithms...isnt it? As it is sequential.

do you have the excel sdd book or the sdd one by samD (they are useful). one by sam D is lengthy as it is a textbook, while the excel one is a revision type.

Last edited by dark`secrets; 6 Oct 2004 at 10:44 PM.
dark`secrets 当前离线   Reply With Quote
Old 7 Oct 2004, 12:55 AM   #3 (permalink)
meh.
 
sunny's Avatar
 
HSC: 2002
Gender: Male
 
Join Date: Jul 2002
Posts: 5,230
 
Last Activity:
16 Nov 2009, 11:30 PM
 
sunny is a name known to allsunny is a name known to allsunny is a name known to allsunny is a name known to allsunny is a name known to allsunny is a name known to allsunny is a name known to all
Functional - program is made of functions and is based on recursion, values of variables do not change.
__________________
Sunny

* No trees were harmed in the making or sending of this message. However a great number of electrons were terribly inconvenienced.

HSC Class of 2002
2008 UNSW BSc Computer Science Honours Class 1
sunny 当前离线   Reply With Quote
Old 7 Oct 2004, 1:09 AM   #4 (permalink)
:o>---<
 
MedNez's Avatar
 
HSC: 2005
Gender: Male
 
Join Date: Aug 2004
Posts: 3,027
 
Last Activity:
5 Oct 2009, 9:49 PM
 
MedNez is a name known to allMedNez is a name known to allMedNez is a name known to allMedNez is a name known to allMedNez is a name known to allMedNez is a name known to allMedNez is a name known to all
Quote:
Originally Posted by Gough Whitlam
Does imperative include as well?
Nah, you have your 3 paradigms (Logic, OOP, Functional) described above.

The two categories of languages are Imperative (Procedural) or Declarative.

Imperative:

# Use decisions (branching) & repetition
# Separate input, output, data, control and processing into distinct components
# Use programs that have a definite beginning and definite termination
# Are based on variables and control structures

(Control structures are your sequence, decision, repetition).

from Wikipedia:

Whereas imperative programming gives the computer a list of instructions to execute in a particular order, declarative programming describes to the computer a set of conditions and lets the computer figure out how to satisfy them.

Declarative programming includes both functional programming and logic programming.

--

Hope that's cleared some stuff up. Declarative & Imperative aren't paradigms as such, they are ways of computing, through the three paradigms.

~ Med
MedNez 当前离线   Reply With Quote
Old 7 Oct 2004, 2:25 AM   #5 (permalink)
The 36th Dragon
 
Freedom_Dragon's Avatar
 
HSC: N/A
Gender: Undisclosed
Location: Behind a door that will never open.
 
Join Date: Oct 2003
Posts: 154
 
Last Activity:
9 Jun 2005, 8:02 PM
 
Freedom_Dragon is on a distinguished road
Maybe understanding the advantages & disadvantages of these paradigms will
help u with ur understanding of its characteristics.

http://www.boredofstudies.org/commun...t=27852&page=1

Hope that Helps.
__________________
B-Tech (Optoelectronics) @ Macquaire University
Freedom_Dragon 当前离线   Reply With Quote
Old 7 Oct 2004, 1:57 PM   #6 (permalink)
Exalted Member
 
HSC: 2004
Gender: Male
Location: Australia
 
Join Date: Mar 2004
Posts: 936
 
Last Activity:
7 Apr 2009, 9:00 PM
 
Scanorama will become famous soon enoughScanorama will become famous soon enough

Send a message via ICQ to Scanorama Send a message via MSN to Scanorama
Thanks heaps for the replies, they are very helpful. One more quesiton, can you please tell me an example for each of the paradigms? Thanks in advance
Scanorama 当前离线   Reply With Quote
Old 7 Oct 2004, 2:46 PM   #7 (permalink)
Exalted Member
 
HSC: 2004
Gender: Male
Location: Australia
 
Join Date: Mar 2004
Posts: 936
 
Last Activity:
7 Apr 2009, 9:00 PM
 
Scanorama will become famous soon enoughScanorama will become famous soon enough

Send a message via ICQ to Scanorama Send a message via MSN to Scanorama
Can someone please also tell me a definition of 'functions'? Thanks
Scanorama 当前离线   Reply With Quote
Old 7 Oct 2004, 3:11 PM   #8 (permalink)
meh.
 
sunny's Avatar
 
HSC: 2002
Gender: Male
 
Join Date: Jul 2002
Posts: 5,230
 
Last Activity:
16 Nov 2009, 11:30 PM
 
sunny is a name known to allsunny is a name known to allsunny is a name known to allsunny is a name known to allsunny is a name known to allsunny is a name known to allsunny is a name known to all
Here is a short program written using a functional language - Haskell.

Code:
fibonacci :: Int -> Int
fibonacci x
  | x == 1 = 1
  | x == 2 = 1
  | (otherwise) = fibonacci (x-1) + fibonacci (x-2)
Notice 1) recursive nature, 2) variables never change their values in the same instance of the function. You can read this function just like normally how you would find fibonacci numbers - the x'th fibonacci number is the x-1'th fibonnacci number plus the x-2'nd fibonacci number. Eventually you'll get all the way back to 1 and 2, for which there are "base cases" in the program.
__________________
Sunny

* No trees were harmed in the making or sending of this message. However a great number of electrons were terribly inconvenienced.

HSC Class of 2002
2008 UNSW BSc Computer Science Honours Class 1
sunny 当前离线   Reply With Quote
Old 8 Oct 2004, 12:08 PM   #9 (permalink)
Exalted Member
 
HSC: 2004
Gender: Male
Location: Australia
 
Join Date: Mar 2004
Posts: 936
 
Last Activity:
7 Apr 2009, 9:00 PM
 
Scanorama will become famous soon enoughScanorama will become famous soon enough

Send a message via ICQ to Scanorama Send a message via MSN to Scanorama
Thanks Sunny. I've read through the past papers and found in Question 24 (The Option question), it gives a scenario and asks which will be the most appropriate paradigms. I'm kinda understand all of the paradigms, but still not 100% able to answer questions like that. Can someone please tell me an example/charateristic/use of each of the paradigms? It will be very appreciated.
Scanorama 当前离线   Reply With Quote
Old 8 Oct 2004, 12:19 PM   #10 (permalink)
teh sex0r
 
Wild Dan Hibiki's Avatar
 
HSC: 2004
Gender: Undisclosed
 
Join Date: Feb 2004
Posts: 654
 
Last Activity:
25 Mar 2009, 1:20 AM
 
Wild Dan Hibiki is on a distinguished road
im lost with this topic as well, i went over both the excel and davis booklets but when i tried to do some past q's i still dunno wat to do
LOL
Wild Dan Hibiki 当前离线   Reply With Quote
Old 8 Oct 2004, 12:24 PM   #11 (permalink)
meh.
 
sunny's Avatar
 
HSC: 2002
Gender: Male
 
Join Date: Jul 2002
Posts: 5,230
 
Last Activity:
16 Nov 2009, 11:30 PM
 
sunny is a name known to allsunny is a name known to allsunny is a name known to allsunny is a name known to allsunny is a name known to allsunny is a name known to allsunny is a name known to all
There are a few general pointers I believe can get out most paradigm questions:

Functional
- problem is of a recursive nature
- eg, finding fibonacci numbers: its definition is recursive

Object Oriented
- Suited for real world problems
- When things in the problem can be represented by objects communicating with each other to solve the problem

Logic
- When AI is required
- Expert systems
- This paradigm is obvious when to use

Imperative
- Pretty much anything that doesn't fit into those categories
- The problem can be solved with a series of sequential steps
__________________
Sunny

* No trees were harmed in the making or sending of this message. However a great number of electrons were terribly inconvenienced.

HSC Class of 2002
2008 UNSW BSc Computer Science Honours Class 1
sunny 当前离线   Reply With Quote
Old 9 Oct 2004, 1:16 PM   #12 (permalink)
Exalted Member
 
HSC: 2004
Gender: Male
Location: Australia
 
Join Date: Mar 2004
Posts: 936
 
Last Activity:
7 Apr 2009, 9:00 PM
 
Scanorama will become famous soon enoughScanorama will become famous soon enough

Send a message via ICQ to Scanorama Send a message via MSN to Scanorama
Thanks for your help, sunny
Scanorama 当前离线   Reply With Quote
Old 22 Oct 2004, 6:47 PM   #13 (permalink)
New Member
 
Ditfos's Avatar
 
HSC: N/A
Gender: Male
Location: Dubbo
 
Join Date: Sep 2004
Posts: 7
 
Last Activity:
21 Dec 2004, 1:51 PM
 
Ditfos is on a distinguished road

Send a message via AIM to Ditfos
This is an excellent summary sunny.
Ditfos 当前离线   Reply With Quote
Old 26 Oct 2004, 10:32 AM   #14 (permalink)
Advanced Member
 
JayWalker's Avatar
 
HSC: 2004
Gender: Male
Location: Eastern Suburbs Position: Bored Bad Boyz Status: Studying
 
Join Date: Mar 2004
Posts: 406
 
Last Activity:
29 Jun 2009, 3:19 PM
 
JayWalker is on a distinguished road
Paradigms scare me i have nightmares about them :P
__________________
*Bad Boys, Bad Boys, What ya gonna do? What ya gonna do when they come for you?*

"You wanna come down to the underground old school? Here's a shovel, can you dig it fool? --- Whoomp There it is"
JayWalker 当前离线   Reply With Quote
Sponsored Links
Old 28 Sep 2005, 11:24 AM   #15 (permalink)
New Member
 
 
Join Date: Sep 2005
Posts: 1
 
Last Activity:
28 Sep 2005, 1:08 PM
 
tubby2877 is on a distinguished road
Lightbulb languages for the paradigms

hey, just in case

these are just some of the languages used for the 3 main paradigm. there are many more but these are usually the ones looked at cause they are free and can be taught pretty well.

Logic - Prolog (great for AI, just type in all the rules in a notepad and then the comp just figures it out, also creates expert systems which is one big database and the comp decides which is most correct from the inputs)

Functional - Lisp (works on lists and brackets, a whole lotta brackets, lots of specialised syntax such as nil and T. used a whole lot for math function, domain and range)

Object Oriented - VB.Net, C++ (use classes and objects to create instances and works on events rather then sequential)

Imperative - Pascal (uses more of a step by step version to figure out how to execute)

although they don't ask for any specifics in the exams it is always handy to know some of the language as you can then picture it and since these languages are pretty common for there own paradigms it's handy to know them.

see ya

Last edited by tubby2877; 28 Sep 2005 at 11:33 AM.
tubby2877 当前离线   Reply With Quote
Reply

Bookmarks

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
RFTG Paradigms Help and Questions glitterfairy Module B: Texts and Ways of Thinking 41 22 Oct 2008 1:26 PM
Confused over UMAT type questions kooltrainer Medicine and Medical/Health Studies 6 6 May 2008 12:40 PM
I&S, paradigms minalata Module B: Texts and Ways of Thinking 4 20 Feb 2005 5:45 PM
paradigms Janey_1986 Module B: Texts and Ways of Thinking 6 14 Aug 2004 9:00 AM


All times are GMT +11. The time now is 11:07 AM.


Powered by vBulletin Version 3.8.1
Copyright © 2002 - 2009, iStudy Australia Pty Ltd. All rights reserved.

Search Engine Optimization by vBSEO 3.2.0