Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Roman numeral challenge!
Index -> Contests
Goto page Previous  1, 2, 3, 4  Next
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
[Gandalf]




PostPosted: Wed Apr 26, 2006 11:55 pm   Post subject: (No subject)

I hate spam.

There are many styles of writing Java out there, what are we talking about? Sun's guidelines?
For exampe:
code:
if (somethingIsTrue) System.out.println("Yay!");

as opposed to:
code:
if (somethingIsTrue)
    System.out.println("Yayaya!");
Sponsor
Sponsor
Sponsor
sponsor
Andy




PostPosted: Thu Apr 27, 2006 11:16 am   Post subject: (No subject)

or better yet

somethingIsTrue?System.out.println("Yayaya!"):System.out.print("");

a better way would to be count the number of semicolons. a for loop requires 2 semicolons, and so does a while.
zylum




PostPosted: Thu Apr 27, 2006 1:17 pm   Post subject: (No subject)

dont worry, im not using any cheap short cuts.. although i do put my expression on the same line as an if statement.
MysticVegeta




PostPosted: Thu Apr 27, 2006 1:33 pm   Post subject: (No subject)

yup same here, no cheap short cuts
Andy




PostPosted: Thu Apr 27, 2006 1:36 pm   Post subject: (No subject)

how is that a cheap shortcut? it's more logical to me..
zylum




PostPosted: Thu Apr 27, 2006 2:58 pm   Post subject: (No subject)

[mod:81158a5e7d="rizzix"]Yea thanks for screwing things up. Razz[/mod:81158a5e7d]
zylum




PostPosted: Thu Apr 27, 2006 3:03 pm   Post subject: (No subject)

Confused wtf is that... each time i submit it says error, 30 seconds of execution exceeded or something like that. now i go and its posted like 5 times!

anyways, you get my point Laughing

now.. how to delete those Question
MysticVegeta




PostPosted: Thu Apr 27, 2006 7:41 pm   Post subject: (No subject)

wow you hardly get to see zylum going psycho
Sponsor
Sponsor
Sponsor
sponsor
Andy




PostPosted: Fri Apr 28, 2006 12:05 am   Post subject: (No subject)

wow, you hardly not see mysticvegeta spam.. this is your first warning
MysticVegeta




PostPosted: Sat Apr 29, 2006 7:37 pm   Post subject: (No subject)

hey! I wasnt spamming dude calm down. it was a legitimate comment you know to add a little comic relief. Anyways, zylum, what does the "?" do? Is it like "{" for the if statement?
Cervantes




PostPosted: Sat Apr 29, 2006 8:00 pm   Post subject: (No subject)

Note: Because zylum has so skillfully destroyed the page layout, the quotes and code in this post got shifted a long ways over to the right.
MysticVegeta wrote:
hey! I wasnt spamming dude calm down. it was a legitimate comment you know to add a little comic relief.

He only gave you a warning, so you should calm down yourself. But his warning is valid. You've been spamming a lot lately.
Re: "comic relief": zylum gave the comic relief. Why do we need comic relief in response to comic relief? *Rhetorical

MysticVegeta wrote:
Anyways, zylum, what does the "?" do? Is it like "{" for the if statement?

"?" together with the ":" is the ternary operator. It's like an if statement.
code:
a > b ? a : b

is the same as
code:

if a > b
    a
else
    b
end
Martin




PostPosted: Sun Apr 30, 2006 7:27 pm   Post subject: (No subject)

Just a reminder, the contest closes about 24 hours from now (9:00 am tomorrow, my time).
Martin




PostPosted: Mon May 01, 2006 6:09 pm   Post subject: (No subject)

Last call for entries. One hour remaining.
MysticVegeta




PostPosted: Mon May 01, 2006 7:35 pm   Post subject: (No subject)

Are you annoncing the results when the contest ends?
zylum




PostPosted: Mon May 01, 2006 10:33 pm   Post subject: (No subject)

i win?
Display posts from previous:   
   Index -> Contests
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 2 of 4  [ 50 Posts ]
Goto page Previous  1, 2, 3, 4  Next
Jump to:   


Style:  
Search: