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
  i prefer by stacato 2004-12-30 06:50:03
the plain and simple while(){} over the do{}while();

i use while when i need it, the do while has always felt to me like a misuse. You let it do and then while it ? might aswell write the stuff before a a normal while. sure, saves lines of code but oh well. it's my feeling on the subject.
[ Reply ]
    How about this? by Brainbug2004-12-30 06:52:52
      In the 2nd one x() will always be executed... by kelli2172004-12-30 07:17:59
        Ah, rats. by kelli2172004-12-30 07:20:10
        condition by dennismv2004-12-30 07:22:56
    do{} while() is appropriate when by BloodyViking2004-12-30 07:00:13
      I agree. (n/t) by tom-2004-12-30 07:05:26
      my purpose was to by dennismv2004-12-30 07:10:29
        Well you can always by jayfarm2004-12-30 07:26:12
          I agree by dennismv2006-11-19 12:55:59
    2nd version can have while at the top by dennismv2004-12-30 07:00:14

 

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