Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / April 2008

Tip: Looking for answers? Try searching our database.

Is implementing a Java class procedural programming?

Thread view: 
tenxian - 25 Apr 2008 00:59 GMT
Is implementing a Java class a process of procedural programming?
Stefan Ram - 25 Apr 2008 01:17 GMT
>Is implementing a Java class a process of procedural programming?

 There is no single globally accepted definition of »procedural
 programming«. So you should give the terminology you refer to.

 One might say that Java programming is procedural, because
 Java methods could be interpreted to be »procedures«. We do
 not have to push arguments onto the stack or load them into
 registers and then jump to some subroutine anymore. But one
 rarely does say this, because there rarely is need to point
 this out.
tenxian - 25 Apr 2008 01:22 GMT
> >Is implementing a Java class a process of procedural programming?
>
[quoted text clipped - 7 lines]
>   rarely does say this, because there rarely is need to point
>   this out.

So when we are designing and defining classes, Java is an object-
oriented programming language, it is a procedural programming
language while we are implementing methods.
tenxian - 25 Apr 2008 01:23 GMT
> >Is implementing a Java class a process of procedural programming?
>
[quoted text clipped - 7 lines]
>   rarely does say this, because there rarely is need to point
>   this out.

So Java is a programming language that combines object-oriented
programming and procedural programming, right?
Lew - 25 Apr 2008 01:45 GMT
>>> Is implementing a Java class a process of procedural programming?

Stefan Ram wrote:
>>   There is no single globally accepted definition of »procedural
>>   programming«. So you should give the terminology you refer to.
[quoted text clipped - 5 lines]
>>   rarely does say this, because there rarely is need to point
>>   this out.

> So Java is a programming language that combines object-oriented
> programming and procedural programming, right?

Can you do something about your posts showing up twice?  It's probably the
software, though.

Stefan asked for your definition of "procedural programming".  You didn't give
that information, so the follow-up question remains equally unanswerable.

I think the questions are meaningless.  What insight are you aiming to obtain?

Signature

Lew

Stefan Ram - 25 Apr 2008 02:02 GMT
>So Java is a programming language that combines object-oriented
>programming and procedural programming, right?

 Java does not support all facets of object-oriented programing
 (as they are supported in in Smalltalk). For example, blocks
 of code are not objects in Java and numerals do not have
 objects as their value.

 But surely everything I would deem to be »procedural«
 programming /is/ supported by Java.

 Procedural programming can be mapped onto object-oriented
 programming, by using a single »default object« to interpret
 all procedure calls and contain all »global variables« and
 mapping procedure calls to messages to this default object. In
 this sense, object-oriented programming contains procedural
 programming.

 Because Java also has »static« methods, mapping
 procedures to methods is even simpler in Java.
Qu0ll - 25 Apr 2008 08:38 GMT
>>Is implementing a Java class a process of procedural programming?
>
[quoted text clipped - 7 lines]
>  rarely does say this, because there rarely is need to point
>  this out.

Hey Stefan, I like the way you surround terms with a "<<" and ">>"
characters but I don't know how to add them in myself.

What key sequence and/or news reader do you need to do that?

Signature

And loving it,

-Q
_________________________________________________
Qu0llSixFour@gmail.com
(Replace the "SixFour" with numbers to email me)

RedGrittyBrick - 25 Apr 2008 10:02 GMT
> "Stefan Ram" <ram@zedat.fu-berlin.de> wrote in message
>>  ... »procedural programming« ...
>
> Hey Stefan, I like the way you surround terms with a "<<" and ">>"
> characters but I don't know how to add them in myself.

See Windows Charmap for "Arial Unicode" or other Unicode font.
  U+00AB Left-Pointing Double Angle Quotation Mark. Keystroke Alt+0171
  U+00BB Right-Pointing Double Angle Quotation Mark. Keystroke ALt+0187

> What key sequence and/or news reader do you need to do that?

I would use Alt+0171 to enter « but I suspect if you have a French
keyboard, you enter these characters directly.

Any newsreader that can work with a character set such as ISO-8859-1
Latin-1, Unicode or many many others. Surely this is supported by the
current versions of all actively maintained newsreaders?

Signature

RGB

Roedy Green - 25 Apr 2008 04:44 GMT
On Thu, 24 Apr 2008 16:59:10 -0700 (PDT), tenxian
<hi.steven.tu@gmail.com> wrote, quoted or indirectly quoted someone
who said :

>Is implementing a Java class a process of procedural programming?

the indivisibility methods are called procedures in other languages.

A static method that used only the parms and locals with no instance
variables would be procedural, as opposed to object-oriented.

See http://mindprod.com/jgloss/rules.html
for languages where you don't specify the algorithm, but rather the
desired end result, and the program searches for a solution on its
own.  These are not procedural.

Abundance attempts to do as much of the coding as possible in the
variable declarations. If you managed to do 100% of it that way, say
by describing a GUI form, that would be not procedural.

A spreadsheet is not procedural.  It has rules of the form, if other
cells change recompute this one via this formula, but it does not
specify exactly how the overall calculation happens.

Swing code where code gets triggered by events could be considered
non-procedural.  Stuff just happen is a chaotic way, not one step
after the other like a recipe.

Signature

Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com

Mark Space - 25 Apr 2008 05:30 GMT
> Is implementing a Java class a process of procedural programming?

Short answer - no.

Java is squarely in the object oriented camp.  You need a programmer
trained in object oriented programming, and object oriented design too.
 A programmer trained in only procedural techniques will have a hard
time producing a quality Java program.  Try to get someone with a SCJD
or at least SCJP, or lots of good experience with Java and object
oriented programming.

P.S. To c.l.j.p - this is the same guy who was advertising a great idea
for only 10,000 yaun just yesterday.  I assume he's trying to read some
resumes right now.
RedGrittyBrick - 25 Apr 2008 10:06 GMT
>> Is implementing a Java class a process of procedural programming?
>
[quoted text clipped - 6 lines]
> or at least SCJP, or lots of good experience with Java and object
> oriented programming.

I think if you perversely wanted to write procedural program in Java you
could do so. You'd have to avoid using most of the standard class
library so you'd probably have to waste a lot of time reinventing
procedural equivalents of a lot of OO library code.

> P.S. To c.l.j.p - this is the same guy who was advertising a great idea
> for only 10,000 yaun just yesterday.  I assume he's trying to read some
> resumes right now.

It was 10,0000 and it was yuan. :-)
(Whatever happened to RenMinBi and FECs?)

Signature

RGB

Mark Space - 25 Apr 2008 18:02 GMT
>> hard time producing a quality Java program.  Try to get someone with a

> I think if you perversely wanted to write procedural program in Java you
> could do so. You'd have to avoid using most of the standard class
> library so you'd probably have to waste a lot of time reinventing
> procedural equivalents of a lot of OO library code.

See my previous statement about quality, emphasis on that word.

> It was 10,0000 and it was yuan. :-)

Oops, my bad.

> (Whatever happened to RenMinBi and FECs?)

I prefer to be paid in Hostess Fruit Pies. ;)


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.