The Daily Static
  The Daily Static
UF Archives
Register
UF Membership
Ad Free Site
Postcards
Community

Geekfinder
UFie Gear
Advertise on UF

Forum Rules
& FAQ


Username

Password


Create a New Account

 
 

Back to UserFriendly Strip Comments Index

ATTN: jmaxsohmer by Liava2006-11-19 12:55:59
  My comment... by threadjacker2005-07-24 00:29:12
    I also disagree with you by Liava2005-07-24 00:41:56
      You're allowed :-) by threadjacker 2005-07-24 01:07:18
But let me clarify...

Hmmmm.... four rewrites and I still can't make my point clearly. Let me put it this way... in real-world programs, 'if (x && y)' *clearly* illustrates the original programmer's intention that 'action' is dependant on the two conditions. The conditional statement has been written for the explicit purpose of executing the action. 'if (x) if (y)' conveys a different meaning... that action is dependent on two separate conditions and the conditonal statements(s) were written, potentially, for more work than executing the action.

Yes, if a second programmer wants to diddle with the '&&' version, s/he can, but ... at least s/he will have had to recognize that there may have been method to the original madness.

As for efficiency, yes, there are cases where efficiency matters. For the most part, as you agreed, it doesn't. The best approach to writing code, imosho, is to write *maintainable* code first. Then, if benchmark testing indicates that efficiency of a given set of operations needs to be improved, target that specific area and optimize the heck out of it.
[ Reply ]
        I use both by Liava2005-07-24 01:15:54
          Heh, I do that with the && version... by imperito2005-07-24 01:21:36
            Not to pick on you by Liava2005-07-24 01:33:34
              I like lisp, actually. And I like parens. by imperito2005-07-24 01:37:36
                Or at least turns enough stuff red that... by Liava2005-07-24 01:39:43
            You're so close :-) by threadjacker2005-07-24 01:34:41
              Oh no by Liava2005-07-24 01:38:13
              The indentation indicates that also. by imperito2005-07-24 01:39:03
                No argument there.... by threadjacker2005-07-24 01:44:47

 

[Todays Cartoon Discussion] [News Index]

Come get yer ARS (Account Registration System) Source Code here!
All images, characters, content and text are copyrighted and trademarks of J.D. Frazer except where other ownership applies. Don't do bad things, we have lawyers.
UserFriendly.Org and its operators are not liable for comments or content posted by its visitors, and will cheerfully assist the lawful authorities in hunting down script-kiddies, spammers and other net scum. And if you're really bad, we'll call your mom. (We're not kidding, we've done it before.)