Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Java Help > Re: being or no...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 6 of 16 Topic 15936 of 16566
Post > Topic >>

Re: being or not being?

by Mark Space <markspace@[EMAIL PROTECTED] > Apr 2, 2008 at 09:43 AM

Stefan Ram wrote:
>   This question is about English style with regard to Java.

Stefan, are you a native English speaker?  Your English is quite good. 
It's been a while since I've read through Strunk & White, but I'll try 
to comment on what I feel.

> 
>   The context is a tutorial that just said:
> 
>       The activation of an operation expression is called
>       »evaluation«. It will activate the operation that is
>       given by the expression.

I'm not really sure what you're trying to say here.  I can't think of 
any programming language that uses words like "activation", "operation 
expression".

"Activation" I think should be either evaluation or execution. 
Evaluation is done when the compiler encounters the expression, 
execution is done at runtime.  And as I imply I think it you should use 
the word "executes" instead of "activates."

For calling methods, I like the term "invokes."

You should verify all of this with the JLS, to make sure you are using 
the correct terminology.  I haven't read that thing as thoroughly as I'd 
like, so I might be off-base here.

So to change your paragraph above:

    "The compiler will evaluate expressions in your code.
     At runtime, each term in the expression will be
     executed."

>  I assume that the following sentences are all correct.
>   But which one is to prefer for a tutorial?

    "When the expression java.lang.Thread.dumpStack();
     is executed, the method java.lang.Thread.dumpStack
     will be invoked by the runtime."

Notice that I do chain my verbs together.  The compiler evaluates, then 
the runtime executes.  I use "executed" twice in those two paragraphs to 
chain the idea expressed in each that I am continuing with the same
thought.

I guess over all I like your first one better:

> 
>       For example, when the expression
>       »java.lang.Thread.dumpStack()« is evaluated, the 
>       operation »java.lang.Thread.dumpStack()« is activated.

But I have issues with your exact terminology.  You should use terms 
closer to the JLS and standard programming terminology.  It's a little 
jarring to read you excerpts when they use terms so differently than 
what is normal.


(Regarding "is being", it's kind of subtle, but it means "right now." In 
the same instant of time as the speaker.  "Help!  The bank is being 
robbed!"  The speaker means the bank is being robbed right now.  "Is" 
means all the time, as a statement of fact or a property that does not 
change.  "The bank is on Main Street."  The bank was on Main Street 
yesterday, it is on Main Street today, it will be on Main Street 
tomorrow.  This does not change.

Since the runtime always invokes Thread.dumpStack() for the expression 
"Thread.dumpStack()," it is better to use "is."  This is not a property 
that changes.  If there were something special about the context of the 
speaker, and Thread.dumpStack() would not be invoked in another context, 
"is being" might be better.  But I would probably use "would" or "will" 
instead.)
 




 16 Posts in Topic:
being or not being?
ram@[EMAIL PROTECTED] (S  2008-04-02 14:17:07 
Re: being or not being?
Roedy Green <see_websi  2008-04-02 16:04:13 
Re: being or not being?
Roedy Green <see_websi  2008-04-02 19:19:41 
Re: being or not being?
Roedy Green <see_websi  2008-04-02 16:08:09 
Re: being or not being?
Patricia Shanahan <pat  2008-04-02 09:10:31 
Re: being or not being?
Mark Space <markspace@  2008-04-02 09:43:53 
Re: being or not being?
ram@[EMAIL PROTECTED] (S  2008-04-02 22:19:35 
Re: being or not being?
Roedy Green <see_websi  2008-04-03 10:44:06 
Re: being or not being?
Roedy Green <see_websi  2008-04-03 10:49:26 
Re: being or not being?
ram@[EMAIL PROTECTED] (S  2008-04-03 11:56:24 
Re: being or not being?
Mark Space <markspace@  2008-04-03 10:05:13 
Re: being or not being?
Roedy Green <see_websi  2008-04-08 23:49:57 
Re: being or not being?
Roedy Green <see_websi  2008-04-08 23:47:54 
Re: being or not being?
ram@[EMAIL PROTECTED] (S  2008-04-09 00:14:31 
Re: being or not being?
Roedy Green <see_websi  2008-04-10 03:16:50 
Re: being or not being?
"John B. Matthews&qu  2008-04-02 16:39:20 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Nov 22 16:21:49 CST 2008.