I never liked zero based array index, until I didn't have them (RPG) and
realized how ingrained they had become.

Python like Perl can both be written very readable. I can't speak for the
Python folks... but I know the Perl folks get their rocks off on being
able to write the craziest scripts in one line. Might I also put forth
the argument that Perl is going the way of the dodo faster than RPG.
anywho...

I think that putting this..

if ( 1=1
and myvar = myvar2
and myvar3 = myvar4
)

is less readable. And that doing this is a waste of time from a
maintenance standpoint because it will take longer for the maintenance
programmer to figure out what the heck you were doing that it would for
them to just delete an extra 'and' from the structure if they needed to
delete the first comparison.


Thanks
Bryce Martin
Programmer/Analyst I
570-546-4777



Joe Pluta <joepluta@xxxxxxxxxxxxxxxxx>
Sent by: rpg400-l-bounces@xxxxxxxxxxxx
06/03/2010 09:17 PM
Please respond to
RPG programming on the IBM i / System i <rpg400-l@xxxxxxxxxxxx>


To
RPG programming on the IBM i / System i <rpg400-l@xxxxxxxxxxxx>
cc

Subject
Re: IF






David Gibbs wrote:
On 6/3/2010 12:41 PM, Charles Wilt wrote:

It's quite easy to write unreadable code in all languages.

True, but I don't see developers that use other languages arguing it's
a good idea. (Except for maybe the Perl people ;)


And python people ... who tend to argue about against writing clear code
(i.e., white space as control structures).


Agh. The silliest programming syntax ever conceived. Except maybe
zero-based array indexes. <grin>

Joe

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.