|
Um...I'm not sure what you're getting at...
In your example of 'minddebugging' you gave these two examples:
promptPrintForms(
rbcnppfUSER :
rbcnppfSSN :
rbcnppfSTDCD :
rbcnppfPKG
rbcnppfID :
rbcnppfTXNO :
rbcnppfHCOR :
rbcnppfRESULT :
rbcnppfDO_ALL )
-or-
promptPrintForms
( rbcnppfUSER
: rbcnppfSSN
: rbcnppfSTDCD
rbcnppfPKG
: rbcnppfID
: rbcnppfTXNO
: rbcnppfHCOR
: rbcnppfRESULT
: rbcnppfDO_ALL
)
Obviously the second example here is easier to spot that you're missing a
colon between two parameters, but that's partly a formatting issue, so lets
reformat the text in Courier New and adjust the spacing like I'd do my code:
promptPrintForms(
rbcnppfUSER :
rbcnppfSSN :
rbcnppfSTDCD :
rbcnppfPKG
rbcnppfID :
rbcnppfTXNO :
rbcnppfHCOR :
rbcnppfRESULT :
rbcnppfDO_ALL );
-or-
promptPrintForms
( rbcnppfUSER
: rbcnppfSSN
: rbcnppfSTDCD
rbcnppfPKG
: rbcnppfID
: rbcnppfTXNO
: rbcnppfHCOR
: rbcnppfRESULT
: rbcnppfDO_ALL
)
I admit that yours is easier to spot, but honestly, not a lot (as far as *
I'm* concerned) - I look for missing 'right' colons, and you look for
missing 'left' colons. But as I said, it's about what you're used to - if I
had to read your style of code, I'd be forever 'uncomfortable' - it just
doesn't look right to me. Besides which, either your IDE of choice (unless
you're just using SEU) or the compiler would throw an error here anyway...
Rory
On Tue, Apr 5, 2011 at 4:48 PM, Henrik Rützou<hr@xxxxxxxxxxxx> wrote:
Rory,
the quich answer is how many lines in your mail started with a "t" and how
many
ended with a "t"? and how much braincapacity did you use to figure it out
On Wed, Apr 6, 2011 at 1:31 AM, Rory Hewitt<rory.hewitt@xxxxxxxxx> wrote:
Henrik,end
humanMihael, you may think I'm crazy bringing in LEAN psycologist into
programming, but just notise the "commas"
that is set in the front instead of the back in the above code - the
codebrain processes these commas in a
rate 3 times faster than if it was in the end of the statement if the
has tois hirachical structured - in 10 statements
you cannot hardly measure the diffence - but programmers during years
read million of statements and suddenly
the time to mind- mapp code makes a difference.
Is there a peer-reviewed study which says that we process these commas 3
times faster? Because in the absence of one, I'd have to disagree with
Barbara (gasp!) and say that I *don't* see intellectually that they are
better. Except in Dennis's great example.
Obviously we all read millions of lines of code in our lifetime, but it's
also true that, as long as we're reading code which conforms to our
preference (whether because it's a 'shop standard' or whatever), then it
doesn't really make any difference - if I am used to e.g. colons at the
of a line, as in my original example, and all the code I read uses thathave
system, then there's really no problem. The problem only occurs if we
to swap between different coding styles - at which point, whether weprefix
or suffix our commas is of minimal importance compared with e.g. whetherwrote:
the
code is upper-, lower- or mixed-case, whether consistent indentation is
used, whether standardized variable names are used etc.....
Rory
On Tue, Apr 5, 2011 at 4:12 PM, Barbara Morris<bmorris@xxxxxxxxxx>
list
ButI realize this is completely irrational, and that I should learn to
embrace leading commas. I see intellectually that they are better.
--brrrrrr, make them go away.
This is the RPG programming on the IBM i / System i (RPG400-L) mailing
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.
--
Regards,
Henrik Rützou
http://powerEXT.com<http://powerext.com/>
--
This is the RPG programming on the IBM i / System i (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.
As an Amazon Associate we earn from qualifying purchases.
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.