A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
Originally posted by Stan James:
That's easily a book length topic
The guys who invented Simula (the precursor to Smalltalk which was the origin of "object oriented" stuff) said they just moved data from the stack to the heap. They didn't think it was that profound. If you know just the right amount of computer architecture, it's a very cute remark.
In my head (not necessarily anybody else's) structured programming's signature technique is functional decomposition. Take a big problem, break it down to small, manageable parts. Measures of goodness include high cohesion, low coupling, isolating sites of change, information hiding.
OO's signature techniques might be identifying responsibilities and managing dependencies. Put the code with related responsibilities together in a class. Measures of goodness include high cohesion, low coupling, isolating sites of change, information hiding. (Whoa! Deja vu all over again!) OO introduces a lot of new ideas that I find improve my chances of achieving goodness, and some new words for old ideas that just make us sound more hip.
Ed Yourdon was one of the leading thinkers in what he called "structured stuff" and he called OO "structured structured programming." All the same goals with some new techniques to enable and enforce good things.
Kishore
SCJP, blog
Originally posted by J Borderi:
Functional programming is code acting on data; OOP is objects controlling code.
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
Attractive, successful people love this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
|