Re: Strict Case or ??www.rexxla.org/events/2004/renej.pdf

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Re: Strict Case or ??www.rexxla.org/events/2004/renej.pdf

David Requena
René,

I might be able to help with your memory, please see below.


Bob,

In general I would say this is a matter of personal taste. People coming from java for example are used to see any identifier starting with lower case as an instance and a class otherwise. It's very usual to see things like "textParser=TextParser" in parameters lists for example.

There are corner cases, of course, mainly when you deal with the java library. A couple cases from the top of my mind:

- Reflection related: Class.forName("SomeClass") won't work if not a properly cased class name is used. A similar issue is raised when loading JDBC drivers, using class loaders, etc.

- Case clashing within some class in the java library. There are cases when members exist in a library class with names just differing in case. If you're using such a class then you better adhere to proper casing. The following snippet comes from page 48 of René's "A Large NetRexx Application" presentation at www.rexxla.org/events/2004/renej.pdf

options strictcase
  -- we do not usually use STRICTCASE but in this file it is necessary
  -- because the Collections class has a static method synchronizedList
  -- and also an inner class SynchronizedList etc.

Was that it René?


2010/11/18 René Jansen <[hidden email]>
Bob,

normally I do not use it. I remember one case in which it was necessary to switch it on due to an oddity in the Java libraries. When I remember what that was, I'll mention it here.

best regards,

René.


On Thu, Nov 18, 2010 at 12:16 AM, Thomas Schneider <[hidden email]> wrote:
Only CONS:

StrictCase is very pity -- you must be very careful ! :-(

I would prefer an option -FirstCase, where the first Case of spelling
does determine the *prefered Style*.

Then for instance, a utility like ReyForm (TM) may format your whole set of
Programs *in the same style* !!

What do you say ??

Thomas Schneider.
===========================================================
Am 17.11.2010 21:14, schrieb Robert Hamilton:
Could I get some pros & Cons for strictcase;  jEdit/NetRexxDE.

I prefer strict-case because of readability.

Bobh
_______________________________________________ Ibm-netrexx mailing list [hidden email]


--
Thomas Schneider Projects PP, ReyC, and LOGOS on www.KENAI.com www.thsitc.com

_______________________________________________
Ibm-netrexx mailing list
[hidden email]




_______________________________________________
Ibm-netrexx mailing list
[hidden email]





--
Saludos / Regards,
David Requena


_______________________________________________
Ibm-netrexx mailing list
[hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Strict Case or ??www.rexxla.org/events/2004/renej.pdf

rvjansen
Yes, that was it! Funny that it has made its way to a presentation!

Thanks David!

René.

On Thu, Nov 18, 2010 at 3:11 PM, David Requena <[hidden email]> wrote:
René,

I might be able to help with your memory, please see below.


Bob,

In general I would say this is a matter of personal taste. People coming from java for example are used to see any identifier starting with lower case as an instance and a class otherwise. It's very usual to see things like "textParser=TextParser" in parameters lists for example.

There are corner cases, of course, mainly when you deal with the java library. A couple cases from the top of my mind:

- Reflection related: Class.forName("SomeClass") won't work if not a properly cased class name is used. A similar issue is raised when loading JDBC drivers, using class loaders, etc.

- Case clashing within some class in the java library. There are cases when members exist in a library class with names just differing in case. If you're using such a class then you better adhere to proper casing. The following snippet comes from page 48 of René's "A Large NetRexx Application" presentation at www.rexxla.org/events/2004/renej.pdf

options strictcase
  -- we do not usually use STRICTCASE but in this file it is necessary
  -- because the Collections class has a static method synchronizedList
  -- and also an inner class SynchronizedList etc.

Was that it René?


2010/11/18 René Jansen <[hidden email]>
Bob,

normally I do not use it. I remember one case in which it was necessary to switch it on due to an oddity in the Java libraries. When I remember what that was, I'll mention it here.

best regards,

René.


On Thu, Nov 18, 2010 at 12:16 AM, Thomas Schneider <[hidden email]> wrote:
Only CONS:

StrictCase is very pity -- you must be very careful ! :-(

I would prefer an option -FirstCase, where the first Case of spelling
does determine the *prefered Style*.

Then for instance, a utility like ReyForm (TM) may format your whole set of
Programs *in the same style* !!

What do you say ??

Thomas Schneider.
===========================================================
Am 17.11.2010 21:14, schrieb Robert Hamilton:
Could I get some pros & Cons for strictcase;  jEdit/NetRexxDE.

I prefer strict-case because of readability.

Bobh
_______________________________________________ Ibm-netrexx mailing list [hidden email]


--
Thomas Schneider Projects PP, ReyC, and LOGOS on www.KENAI.com www.thsitc.com

_______________________________________________
Ibm-netrexx mailing list
[hidden email]




_______________________________________________
Ibm-netrexx mailing list
[hidden email]





--
Saludos / Regards,
David Requena


_______________________________________________
Ibm-netrexx mailing list
[hidden email]




_______________________________________________
Ibm-netrexx mailing list
[hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Strict Case or ??www.rexxla.org/events/2004/renej.pdf

David Requena
Serendipity I would say :-)

BTW, it seems I managed to drop the ball here. That code appears at page 42 of the presentation instead of the 48th.

2010/11/18 René Jansen <[hidden email]>
Yes, that was it! Funny that it has made its way to a presentation!

Thanks David!

René.


On Thu, Nov 18, 2010 at 3:11 PM, David Requena <[hidden email]> wrote:
René,

I might be able to help with your memory, please see below.


Bob,

In general I would say this is a matter of personal taste. People coming from java for example are used to see any identifier starting with lower case as an instance and a class otherwise. It's very usual to see things like "textParser=TextParser" in parameters lists for example.

There are corner cases, of course, mainly when you deal with the java library. A couple cases from the top of my mind:

- Reflection related: Class.forName("SomeClass") won't work if not a properly cased class name is used. A similar issue is raised when loading JDBC drivers, using class loaders, etc.

- Case clashing within some class in the java library. There are cases when members exist in a library class with names just differing in case. If you're using such a class then you better adhere to proper casing. The following snippet comes from page 48 of René's "A Large NetRexx Application" presentation at www.rexxla.org/events/2004/renej.pdf

options strictcase
  -- we do not usually use STRICTCASE but in this file it is necessary
  -- because the Collections class has a static method synchronizedList
  -- and also an inner class SynchronizedList etc.

Was that it René?


2010/11/18 René Jansen <[hidden email]>
Bob,

normally I do not use it. I remember one case in which it was necessary to switch it on due to an oddity in the Java libraries. When I remember what that was, I'll mention it here.

best regards,

René.


On Thu, Nov 18, 2010 at 12:16 AM, Thomas Schneider <[hidden email]> wrote:
Only CONS:

StrictCase is very pity -- you must be very careful ! :-(

I would prefer an option -FirstCase, where the first Case of spelling
does determine the *prefered Style*.

Then for instance, a utility like ReyForm (TM) may format your whole set of
Programs *in the same style* !!

What do you say ??

Thomas Schneider.
===========================================================
Am 17.11.2010 21:14, schrieb Robert Hamilton:
Could I get some pros & Cons for strictcase;  jEdit/NetRexxDE.

I prefer strict-case because of readability.

Bobh
_______________________________________________ Ibm-netrexx mailing list [hidden email]


--
Thomas Schneider Projects PP, ReyC, and LOGOS on www.KENAI.com www.thsitc.com

_______________________________________________
Ibm-netrexx mailing list
[hidden email]




_______________________________________________
Ibm-netrexx mailing list
[hidden email]





--
Saludos / Regards,
David Requena


_______________________________________________
Ibm-netrexx mailing list
[hidden email]




_______________________________________________
Ibm-netrexx mailing list
[hidden email]





--
Saludos / Regards,
David Requena


_______________________________________________
Ibm-netrexx mailing list
[hidden email]