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

Warning: Long post begging for help with Java by wisteria4562003-03-18 18:56:29
  Initial thoughts... by imperito2003-03-18 19:02:22
    I'm sorry, I wasn't sure how to do that... by wisteria4562003-03-18 19:03:33
      <pre> and </pre> are pre tags by cybergeek2003-03-18 19:35:58
        Kernel indentation... by imperito 2003-03-18 20:06:57
Also called K&R or 1TBS, is where you do this...
if (foo) {
  somefunction();
}
As opposed to the evil, ugly, blackspace wasting Allman method, which would suggest you do this:
if (foo)
{
  somefunction();
}
However, there are worse. The old emacs style was characterized by this:
if (foo)
 {
  somefunction();
 }
which was sheer evil. The spacing itself is personal preference, although I recommend real spaces instead of tabs. I use 2, but most people use more. also, note how the use of pre tags caused my code to appear indented, which makes a longer program (that is properly indented to begin with) easiar to read and understand, and hence to debug.
[ Reply ]
          Darn friggin' skippy! 1TBS forever! :) (n/t) by Llyr2003-03-18 20:15:03

 

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