Originally posted by Paul Hoffman:
Now...C++...I'm assuming that's a derivitive of C? But it's object-oriented, correct?
She will remember your heart when men are fairy tales in books written by rabbits.<br /> As long as there is duct tape... there is also hope.
Originally posted by Jim Tovar:
There are a lot of procedural languages in use, and i think they are still in use because there are tasks that are easier to approach when you use a procedural languaje.
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
Originally posted by Gerardo Tasistro:
Ilja in Java you can't strictly write procedural code. No method can exist outside a class {} declaration. Sure methods look like functions, but that does make it procedural.
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
Originally posted by Stan James:
Good procedural designs value data hiding, low coupling, high cohesion and many of the same things that make good OO designs.
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
Originally posted by Ilja Preuss:
Of course you can - use only public static methods and fields, for example. Then classes are not more than namespaces - you have namespaces in other procedural languages, too.
Originally posted by Gerardo Tasistro:
They're still classes and surely more than just namespaces.
Stan: Good procedural designs value data hiding, low coupling, high cohesion and many of the same things that make good OO designs.
Ilja: Well yes - that's of course how OO came into being: by developers valueing code management tools and therefore adding some additional tools to procedural languages.
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
She will remember your heart when men are fairy tales in books written by rabbits.<br /> As long as there is duct tape... there is also hope.
Originally posted by Ernest Friedman-Hill:
And if I crack an egg into a bowl, pour a cup of flour on it, and a cup of sugar, and some baking powder, and some milk, and put the bowl in the microwave for 20 minutes on "HI", that's still a cake, right?
Originally posted by Gerardo Tasistro:
Sorry I don't get your point.
Originally posted by Gerardo Tasistro:
They're still classes and surely more than just namespaces.
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
Originally posted by Ilja Preuss:
Are they? In which way are they more?
Tony Morris
Java Q&A (FAQ, Trivia)
Originally posted by Ernest Friedman-Hill:
So if I go dig up some of the FORTRAN code I wrote in college, and translate it line-for-line into a set of static methods in a single Java class, and make all the global variables into static members of that class, then it will magically, by the grace of Jim Gosling, become object-oriented code. I better go get started!
Originally posted by Gerardo Tasistro:
Call me up when you get to the point in which you have to compare two strings.
There is no emoticon for what I am feeling!
Originally posted by Gerardo Tasistro:
Call me up when you get to the point in which you have to compare two strings.
Piscis Babelis est parvus, flavus, et hiridicus, et est probabiliter insolitissima raritas in toto mundo.
Originally posted by Gerardo Tasistro:
Well first of all you can't do away with that "namespace" tag. You can create as many static methods as you want and make them look like "procedures and functions", but they'll always be parts of a class.
Your "nametag" will automatically have a lot of "procedures" that you never defined, wrote or declared.
Your "nametag" comes with a mirror you can never do without. Called reflection.
You can make your properties look as "local variables" all you want, but they'll be accessible by this.%property name%
So you can make it look like a procedural language, but it is forever an OO and you can't escape OO rules with it.
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
Originally posted by Gerardo Tasistro:
You can call encapsulation "namespace", but it is still encapsulation.
Piscis Babelis est parvus, flavus, et hiridicus, et est probabiliter insolitissima raritas in toto mundo.
Originally posted by Ernest Friedman-Hill:
How about if I make all my variables public? Do you still call it encapsulation?
Originally posted by Gerardo Tasistro:
The simple proof is you can still define others as private (as close as one line below).
Piscis Babelis est parvus, flavus, et hiridicus, et est probabiliter insolitissima raritas in toto mundo.
Tony Morris
Java Q&A (FAQ, Trivia)
Originally posted by Joel McNary:
Ah -- but then they're not all coderanch, now are they? Ernest stipulated that all of his variables were coderanch.
Piscis Babelis est parvus, flavus, et hiridicus, et est probabiliter insolitissima raritas in toto mundo.
Originally posted by Ernest Friedman-Hill:
And if I crack an egg into a bowl, pour a cup of flour on it, and a cup of sugar, and some baking powder, and some milk, and put the bowl in the microwave for 20 minutes on "HI", that's still a cake, right?
[OCP 21 Professional Study Guide] [OCP 17 Complete Study Guide] [OCP 17 Practice Tests] [OCP 11 Complete Study Guide] [OCP 11 Programmer I] [OCP 11 Programmer II] [OCP 11 Practice Tests] [OCA 8] [OCP 8] [OCP 8 Practice Tests Book] [Blog]
Originally posted by Joel McNary:
I'm just going to say that just because you use objects does not mean that your program is oriented around them.
I contend that Object-Orientedness is a semantic, not syntatic, attribute. Reference the BASIC and simple Java HelloWorld apps. Semantically they are identical. Syntatically, one uses Objects and one does not.
[OCP 21 Professional Study Guide] [OCP 17 Complete Study Guide] [OCP 17 Practice Tests] [OCP 11 Complete Study Guide] [OCP 11 Programmer I] [OCP 11 Programmer II] [OCP 11 Practice Tests] [OCA 8] [OCP 8] [OCP 8 Practice Tests Book] [Blog]
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
Don't get me started about those stupid light bulbs. |