Re: [U2] Brilliant? or not?

2012-01-17 Thread Charlie Noah
-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

Re: [U2] Brilliant? or not?

2012-01-16 Thread Charles_Shaffer
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

Re: [U2] Brilliant? or not?

2012-01-16 Thread Tony Gravagno
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:

Re: [U2] Brilliant? or not?

2012-01-16 Thread George Gallen
, 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

Re: [U2] Brilliant? or not?

2012-01-16 Thread Robert Houben
...@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

Re: [U2] Brilliant? or not?

2012-01-16 Thread Symeon Breen
-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

Re: [U2] Brilliant? or not?

2012-01-16 Thread Tom Whitmore
] 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

Re: [U2] Brilliant? or not?

2012-01-16 Thread Mecki Foerthmann
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

Re: [U2] Brilliant? or not?

2012-01-16 Thread Charles_Shaffer
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

Re: [U2] Brilliant? or not?

2012-01-16 Thread Charlie Noah
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)

Re: [U2] Brilliant? or not?

2012-01-16 Thread Charlie Noah
] 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

Re: [U2] Brilliant? or not?

2012-01-16 Thread George Gallen
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

Re: [U2] Brilliant? or not?

2012-01-16 Thread Charlie Noah
...@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

Re: [U2] Brilliant? or not?

2012-01-16 Thread Jerry
-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

Re: [U2] Brilliant? or not?

2012-01-15 Thread Ross Ferris
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

[U2] Brilliant? or not?

2012-01-13 Thread Wjhonson
SMAX = (S1 S2) * S1 + (S2 = S1) * S2 ? ___ U2-Users mailing list U2-Users@listserver.u2ug.org http://listserver.u2ug.org/mailman/listinfo/u2-users

Re: [U2] Brilliant? or not?

2012-01-13 Thread Rex Gozar
SMAX = MAXIMUM(S1:@FM:S2) seems clearer... ___ U2-Users mailing list U2-Users@listserver.u2ug.org http://listserver.u2ug.org/mailman/listinfo/u2-users

Re: [U2] Brilliant? or not?

2012-01-13 Thread Wjhonson
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

Re: [U2] Brilliant? or not?

2012-01-13 Thread Mecki Foerthmann
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

Re: [U2] Brilliant? or not?

2012-01-13 Thread Bill Haskett
: [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

Re: [U2] Brilliant? or not?

2012-01-13 Thread John Solie
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

Re: [U2] Brilliant? or not?

2012-01-13 Thread George Gallen
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

Re: [U2] Brilliant? or not?

2012-01-13 Thread Bill Brutzman
- 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

Re: [U2] Brilliant? or not?

2012-01-13 Thread David A. Green
@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

Re: [U2] Brilliant? or not?

2012-01-13 Thread u2ug
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

Re: [U2] Brilliant? or not?

2012-01-13 Thread Allen E. Elwood
...@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