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

code styles by dennismv2004-12-30 06:44:05
  The first could be written... by jdelphiki2004-12-30 07:49:52
    Bzzt, Try again. by fudje2004-12-30 07:55:53
      We don't know about x() or y()... by jdelphiki2004-12-30 08:50:13
        in the actual code by dennismv2004-12-30 10:32:09
          It sounds like your example is a special situation by jdelphiki2004-12-30 11:35:03
            What's an A/R purist ? (+a cleaner version) by dennismv 2004-12-31 02:41:58
What's A/R ? also, here's a version which probably is clean and nice:
bool condition()
{
    x();
    ...
}

int mainbody()
{
    while (condition())
    {
        y();
    }
}
And yes, for special cases, like speed sometimes you may need to break things a bit.
[ Reply ]

 

[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.)