-Original Message-
From: u2-users-boun...@listserver.u2ug.org
[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Tony
Gravagno
Sent: Monday, January 16, 2012 1:50 PM
To: u2-users@listserver.u2ug.org
Subject: Re: [U2] Brilliant? or not?
From: Charles_Shaffer
Aside from
I used to have a C programmer working for me that reveled in
condensing multiple lines of C code to a single statement, much more
obtuse than that.
He is no longer employed here.
Nuff said
Doug
*
Aside from it not being readable, compacting C code like that can reduce
From: Charles_Shaffer
Aside from it not being readable, compacting C code
like that can reduce portability. Different compilers
may evaluate complex, compacted code differently.
Same thing has actually happened with BASIC code that's ported
from one platform to another.
Rule of thumb:
, January 16, 2012 1:50 PM
To: u2-users@listserver.u2ug.org
Subject: Re: [U2] Brilliant? or not?
From: Charles_Shaffer
Aside from it not being readable, compacting C code
like that can reduce portability. Different compilers
may evaluate complex, compacted code differently.
Same thing has
...@listserver.u2ug.org
[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of George Gallen
Sent: January-16-12 10:54 AM
To: U2 Users List
Subject: Re: [U2] Brilliant? or not?
This is one of the reasons why I continue to x=x+1 instead of x++
Not all languages support the ++, but they all support x=x+1
-boun...@listserver.u2ug.org
[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Tony Gravagno
Sent: 16 January 2012 18:50
To: u2-users@listserver.u2ug.org
Subject: Re: [U2] Brilliant? or not?
From: Charles_Shaffer
Aside from it not being readable, compacting C code like that can
reduce
] On Behalf Of Symeon Breen
Sent: Monday, January 16, 2012 3:17 PM
To: 'U2 Users List'
Subject: Re: [U2] Brilliant? or not?
H
This has whole topic has been mentioned on here before, and my stance is the
same, if you can not read that code and work it out in 4 seconds, then maybe
you should
I agree, if it took you more than 4 seconds to work that piece of code
out you shouldn't be a programmer.
But if it requires working out and thus at least twice as long than
reading a simple if-then-else statement it's definitely not a brilliant
piece of code.
On 16/01/2012 20:16, Symeon
It's not about whether somebody can or can't read the code, it is about
productivity and avoiding errors. Why should it take 4 seconds to figure
out a line of code? 4 seconds times a thousand lines of code is over an
hour of wasted time.
Charles Shaffer
Senior Analyst
NTN-Bower Corporation
Hi Tony,
That is high praise indeed! I don't know Mark, but he sounds like
someone I would enjoy working with very much. Hopefully he will get to
read this. I would like to make his acquaintance.
I have always worked hard to write clean, orderly code. That way the
poor sap (sometimes me)
] On Behalf Of Tony Gravagno
Sent: Monday, January 16, 2012 1:50 PM
To: u2-users@listserver.u2ug.org
Subject: Re: [U2] Brilliant? or not?
From: Charles_Shaffer
Aside from it not being readable, compacting C code
like that can reduce portability. Different compilers
may evaluate complex, compacted
7:17 PM
To: U2 Users List
Subject: Re: [U2] Brilliant? or not?
Hi George,
Are there any implementations now that don't support X += 1? Not that I
have a problem with X = X + 1 - works just fine and is very clear. I
usually try to code to the common denominator, within reason, of course.
Over my
...@listserver.u2ug.org] On Behalf Of Charlie Noah
[cwn...@comcast.net]
Sent: Monday, January 16, 2012 7:17 PM
To: U2 Users List
Subject: Re: [U2] Brilliant? or not?
Hi George,
Are there any implementations now that don't support X += 1? Not that I
have a problem with X = X + 1 - works just fine and is very clear
-users-boun...@listserver.u2ug.org] On Behalf Of Tony Gravagno
Sent: Monday, January 16, 2012 1:50 PM
To: u2-users@listserver.u2ug.org
Subject: Re: [U2] Brilliant? or not?
From: Charles_Shaffer
Aside from it not being readable, compacting C code
like that can reduce portability. Different compilers
NOT!
Ross Ferris
Stamina Software
Visage Better by Design!
-Original Message-
From: u2-users-boun...@listserver.u2ug.org
[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Wjhonson
Sent: Saturday, 14 January 2012 4:42 AM
To: u2-users@listserver.u2ug.org
Subject: [U2] Brilliant
SMAX = (S1 S2) * S1 + (S2 = S1) * S2
?
___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users
SMAX = MAXIMUM(S1:@FM:S2)
seems clearer...
___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users
Ah one of those new fangled functions that have been around for 12 years.
-Original Message-
From: Rex Gozar rgo...@gmail.com
To: U2 Users List u2-users@listserver.u2ug.org
Sent: Fri, Jan 13, 2012 9:44 am
Subject: Re: [U2] Brilliant? or not?
SMAX = MAXIMUM(S1:@FM:S2)
seems
What's wrong with IF S1 S2 THEN SMAX = S1 ELSE SMAX = S2?
Definitely more readable!
If it was hard to write then it should be hard to read, I guess.
On 13/01/2012 17:41, Wjhonson wrote:
SMAX = (S1 S2) * S1 + (S2= S1) * S2
?
___
U2-Users mailing
: [U2] Brilliant? or not?
What's wrong with IF S1 S2 THEN SMAX = S1 ELSE SMAX = S2?
Definitely more readable!
If it was hard to write then it should be hard to read, I guess.
On 13/01/2012 17:41, Wjhonson wrote:
SMAX = (S1 S2) * S1 + (S2= S1) * S2
consider the environment before printing this email.
-Original Message-
From: u2-users-boun...@listserver.u2ug.org
[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Wjhonson
Sent: Friday, January 13, 2012 9:42 AM
To: u2-users@listserver.u2ug.org
Subject: [U2] Brilliant? or not?
SMAX
To: u2-users@listserver.u2ug.org
Subject: [U2] Brilliant? or not?
SMAX = (S1 S2) * S1 + (S2 = S1) * S2
?
___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users
-
From: u2-users-boun...@listserver.u2ug.org
[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Mecki Foerthmann
Sent: Friday, January 13, 2012 12:52 PM
To: u2-users@listserver.u2ug.org
Subject: Re: [U2] Brilliant? or not?
What's wrong with IF S1 S2 THEN SMAX = S1 ELSE SMAX = S2
@listserver.u2ug.org
Subject: [U2] Brilliant? or not?
SMAX = (S1 S2) * S1 + (S2 = S1) * S2
?
___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users
___
U2
You can get pretty close : SMAX = IF S1 S2 THEN S1 ELSE S2
-Original Message-
From: u2-users-boun...@listserver.u2ug.org
[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of David A.
Green
Sent: Friday, January 13, 2012 3:32 PM
To: 'U2 Users List'
Subject: Re: [U2] Brilliant
...@listserver.u2ug.org] On Behalf Of Wjhonson
Sent: Friday, January 13, 2012 9:42 AM
To: u2-users@listserver.u2ug.org
Subject: [U2] Brilliant? or not?
SMAX = (S1 S2) * S1 + (S2 = S1) * S2
?
___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http
26 matches
Mail list logo