Page 2 of 4

Re: OOP vs procedural

Posted: Tue Oct 27, 2009 5:01 pm
by thefool
Let me quote some things from my professor in the object oriented programming course.
We make the following observations about structured programming:



- Structured programming is narrowly oriented towards solving one particular problem

--- It would be nice if our programming efforts could be oriented more broadly

- Structured programming is carried out by gradual decomposition of the functionality

--- The structures formed by functionality/actions/control are not the most stable parts of a program

- -- Focusing on data structures instead of control structure is an alternative approach

- Real systems have no single top - Real systems may have multiple tops [Bertrand Meyer]

- --- It may therefore be natural to consider alternatives to the top-down approach
We are now turning our interests towards 'the object-oriented way'. Below we list some of the most important ideas that we must care about when we make the transition from structured programming to object-oriented programming. This discussion is, in several ways, continued in Chapter 2.



- The gap between the problem and the level of the machine:

- --- Fill the gap bottom up

-Use the data as the basic building blocks

- --- Data, and relations between data, are more stable than the actions on data

- Bundle data with their natural operations

- --- Build on the ideas of abstract datatypes

- --- Consolidate the programming constructs that encapsulate data (structs/records)

- Concentrate on the concepts and phenomena which should be handled by the program

- --- Make use of existing theories of phenomena and concepts

- --- Form new concepts from existing concepts

- Make use of a programming style that allows us to collapse the programming of objects
I'm personally favoriting (and using) the object oriented style for many tasks both at the university and at work. I like the ideas of abstraction, specialization etc. Of course i could get much more in to the different points above (this is from our first lecture, which was several months ago), but its your report :D
But ask if you get stuck and need to get explained a specifc topic, though i might not be able to check here a lot tonight (got a deadline tomorrow on some parts of our report. Designing class diagrams, actually :))

We're using C#. I'm not that fond of java, the whole idea of making all functions virtual by nature is not something i favour. C# is IMHO one of the only really well-designed object oriented languages (of course, C++ and Java is important steps in the history of OOP. But no doubt C# is a fantastic language to work with). And the .net framework is great to have in the back.

This doesn't mean i'm against structured programming. It has its good sides, too. And purebasic is a good choice for that (sometimes structured programming is just what you need). Structured and object oriented programming languages aren't competitors, though people often seem to make them that.

Re: OOP vs procedural

Posted: Tue Oct 27, 2009 6:39 pm
by srod
This doesn't mean i'm against structured programming. It has its good sides, too. And purebasic is a good choice for that (sometimes structured programming is just what you need). Structured and object oriented programming languages aren't competitors, though people often seem to make them that.
I agree; use whichever you are most comfortable with for the particular task in hand. These days I find myself switching between the two 'styles' and am very comfortable doing so.

Re: OOP vs procedural

Posted: Tue Oct 27, 2009 8:31 pm
by Kale
thefool wrote:C# is IMHO one of the only really well-designed object oriented languages (of course, C++ and Java is important steps in the history of OOP. But no doubt C# is a fantastic language to work with
IMHO, C# is the only thing microsoft has ever got right. And yes, you're right, it really is one of the best OOP languages out there. Python is the other one! :P

Re: OOP vs procedural

Posted: Tue Oct 27, 2009 8:44 pm
by the.weavster
Kale wrote:Python is the other one! :P
Agreed - and if you really don't like objects Python can do that too.

Re: OOP vs procedural

Posted: Tue Oct 27, 2009 8:50 pm
by Psychophanta
Ehhh! [nested offtopic]:
Taking advantage we are in offtopic terrain, ¿why talisman has so similar avatar than thefool? brothers or someting?

Re: OOP vs procedural

Posted: Tue Oct 27, 2009 9:41 pm
by the.weavster
Psychophanta wrote:¿why talisman has so similar avatar than thefool? brothers or someting?
They were fawning over each other in the iPhone thread :wink:
Could be the start of something beautiful :D

Re: OOP vs procedural

Posted: Tue Oct 27, 2009 10:39 pm
by thefool
haha :lol:
No, not brothers. He just liked my avatar :D
Kale wrote:Python is the other one! :P
Yeah i know a lot of people saying that. Never really learned python, but plan to read up on it in my christmas holiday :)

Re: OOP vs procedural

Posted: Tue Oct 27, 2009 11:43 pm
by Fluid Byte
What's all that fuss about the avatar? It sux ....

Re: OOP vs procedural

Posted: Tue Oct 27, 2009 11:47 pm
by thefool
f*** off :lol:

Copycats

Re: OOP vs procedural

Posted: Tue Oct 27, 2009 11:53 pm
by Fluid Byte
har har :P

Re: OOP vs procedural

Posted: Wed Oct 28, 2009 12:28 am
by nco2k
now only thing left, is an avatar for fred. :)

Image

c ya,
nco2k

Re: OOP vs procedural

Posted: Wed Oct 28, 2009 12:39 am
by Demivec
Things seem to have gotten a little out-of-hand. Will the real thefool raise your hand. :D

Re: OOP vs procedural

Posted: Wed Oct 28, 2009 7:57 am
by talisman
Aahhhaahahahahahhahahahahh :lol:
Damn you made me spill my coffee :mrgreen:

Re: OOP vs procedural

Posted: Wed Oct 28, 2009 8:56 am
by thefool
haha :lol:
Seriously :P

Re: OOP vs procedural

Posted: Wed Oct 28, 2009 8:59 am
by Mistrel
What a bunch of fools. :wink: