|  | Posted by Jerry Stuckle on 12/18/06 12:50 
Tim Streater wrote:> In article <bPidnYclbqY10B7YnZ2dnUVZ_u63nZ2d@comcast.com>,
 >  Jerry Stuckle <jstucklex@attglobal.net> wrote:
 >
 >
 >>Tim Streater wrote:
 >
 >
 > [...]
 >
 >
 >>>If you're doing a test, do a test. If you're sending a packet, send a
 >>>packet. These are distinct actions that should be separated.
 >>>
 >>>That's my style, at any rate.
 >>>
 >>>-- tim
 >>
 >>Why?  When it makes the code more complicated and harder to understand?
 >
 >
 > Easier is the word you're looking for. Obviously a typo on your part :-)
 >
 
 Nope, I meant exactly what I wrote.
 
 >
 >>It is a test - a test as to whether the action completed successfully or
 >>not.  But this concept is harder for some old-time programmers to grasp.
 >
 >
 > But the test has side-effects. That is my point.
 >
 
 So?  There is absolutely nothing wrong with that.  You're testing the
 results of a dynamic action, not a static value.
 
 >
 >>Just like in my classes - COBOL and FORTRAN programmers had a lot harder
 >>time grasping the concept of pointers as implemented in C than new
 >>programmers did.
 >
 >
 > Never did Cobol, thank goodness. Haven't touched Fortran since 1978.
 > Since then its been BCPL, C (in large quantities), Z80 assm, and PHP and
 > JavaScript more recently.
 >
 > -- tim
 
 I'm surprised you didn't run into a lot of this in your C coding.
 
 --
 ==================
 Remove the "x" from my email address
 Jerry Stuckle
 JDS Computer Training Corp.
 jstucklex@attglobal.net
 ==================
 [Back to original message] |