Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #23849 > unrolled thread

Re: lectures about "programming methodology"

Started bySven Köhler <remove-sven.koehler@gmail.com>
First post2013-05-06 16:56 +0300
Last post2013-05-07 18:01 -0400
Articles 3 — 2 participants

Back to article view | Back to comp.lang.java.programmer

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: lectures about "programming methodology" Sven Köhler <remove-sven.koehler@gmail.com> - 2013-05-06 16:56 +0300
    Re: lectures about "programming methodology" Sven Köhler <remove-sven.koehler@gmail.com> - 2013-05-06 17:24 +0300
    Re: lectures about "programming methodology" David Lamb <dalamb@cs.queensu.ca> - 2013-05-07 18:01 -0400

#23849 — Re: lectures about "programming methodology"

FromSven Köhler <remove-sven.koehler@gmail.com>
Date2013-05-06 16:56 +0300
SubjectRe: lectures about "programming methodology"
Message-ID<aupr3nF54nkU1@mid.dfncis.de>
On 05/06/2013 03:23 PM, Stefan Ram wrote:
>    He said that a variable had a name. This is not always true
>    in Java (he referred to Java, since he is exclusively using
>    Java). In Java there also are anonymous variables, like the
>    variables of an array.

I know that you are particular precise about thing, but I'm pretty sure, 
he will teach that arrays have elements. And he pretty much never 
mention the term "anonymous variable" to describe these elements.
To be honest, the notion "anonymous vairable" is really not necessary to 
understand how arrays work - and to be honest, your posting is the first 
time I read that term.

>    He said that the remainder operator »%« can only be applied
>    to integers. This also is not true in Java IIRC.

:-) This seems to be a popular misconception. A floating point modulo 
operation doesn't seem to feel very "natural" to many people. When I 
mention it, they usually ask me for the definition.

>    I am actually watching this to learn English pronunciation
>    of programming terms (otherwise, I just would read a text),
>    and what I /did/ like was that for the word »char« he gave
>    the pronunciations of /kA&/ and /kæ&/ (where A is the open
>    back unrounded vowel and & is the schwar), which I also use
>    (/kA&/). Bjarne Stroustrup says it was /tSA&/ (where tS is
>    the voiceless palato-alveolar affricate), well, maybe that
>    is valid for C++ programmers ...

char is short for character, isn't it?


Regards,
   Sven

[toc] | [next] | [standalone]


#23852

FromSven Köhler <remove-sven.koehler@gmail.com>
Date2013-05-06 17:24 +0300
Message-ID<aupsouF5gm4U1@mid.dfncis.de>
In reply to#23849
On 05/06/2013 05:18 PM, Stefan Ram wrote:
> Sven Köhler <remove-sven.koehler@gmail.com> writes:
>> To be honest, the notion "anonymous vairable" is really not necessary to
>> understand how arrays work - and to be honest, your posting is the first
>> time I read that term.
>
>    The JLS, while being technical, actually sometimes is quite
>    easy to read:

Subtext?

>    One can open the table of contents, spot chapter »10. Arrays«,
>    and immediately read near the very beginning of that chapter:
>
>        »An array object contains a number of variables.« (JLS7 10)
>
>        »The variables contained in an array have no names« (JLS7 10)      |
>
>    The expression »new int[ 3 ]« has as its value an array of three       |
>    variables, but neither this object nor those variables have
>    a name.

So apparently I haven't read that part of the JLS. And neither has the 
lecturer. And this might me the shock: most people and most lecturers 
haven't read the JLS. At least to my experience.

>> I know that you are particular precise about thing, but I'm pretty sure,
>> he will teach that arrays have elements.
>
>        »These variables are called the components of the array.« (JLS7 10)

Well ...
So what did the lecturer call them?


Regards,
   SVen

[toc] | [prev] | [next] | [standalone]


#23909

FromDavid Lamb <dalamb@cs.queensu.ca>
Date2013-05-07 18:01 -0400
Message-ID<kmbtdr$bhc$1@dont-email.me>
In reply to#23849
On 06/05/2013 9:56 AM, Sven Köhler wrote:
> On 05/06/2013 03:23 PM, Stefan Ram wrote:
>>    He said that a variable had a name. This is not always true
>>    in Java (he referred to Java, since he is exclusively using
>>    Java). In Java there also are anonymous variables, like the
>>    variables of an array.
>
> I know that you are particular precise about thing, but I'm pretty sure,
> he will teach that arrays have elements. And he pretty much never
> mention the term "anonymous variable" to describe these elements.
> To be honest, the notion "anonymous vairable" is really not necessary to
> understand how arrays work - and to be honest, your posting is the first
> time I read that term.

I've never heard the term "anonymous variable" but I've heard of 
"computed names" and "l-values" (for "left hand side of the assignment 
symbol", and contrasted with "R-values"). Admittedly all of this was in 
non-Java contexts.

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.java.programmer


csiph-web