Page 2 of 3
Posted: Tue May 25, 2004 12:25 pm
by Draco_03
You still deserve a BEATING for not posting for that long.. A BEATING I TELL YA!!!!
Posted: Tue May 25, 2004 12:29 pm
by Nay
Oh really, I am so threatened by the 'designer' (sarcasm)
Then again I guess my dreams of beating Mac's post count are over

.
-Nay

Posted: Tue May 25, 2004 12:31 pm
by Draco_03
I don't know why, but the 'Designer' sounds awefully gay..
EDIT : my grammar is really bad!
Posted: Tue May 25, 2004 12:32 pm
by tim
'The bad designer who cant program?'
/ edit
'the bad designer who cant program AND grammar sucks?'
Posted: Tue May 25, 2004 12:36 pm
by Draco_03
but still a very good Bullsit talker.. so i actually WILL have
1- High salary
2- Hot secretary
3- No qualification whatsoever, so no Work to do
4- Having some minion doing my bidings
5- Own parking lot
6- Christmas Bonuses for the hardwork other people have done in my name

Posted: Tue May 25, 2004 12:37 pm
by Nay
Ah yes, I miss English class. It's just synonyms and vocabulary. You know!?
Code: Select all
<?php
$name = "Draco_03";
$synonym = null;
$words = array('bad', 'horrific', '{censored}');
$counter = 0;
for ($i = 0; $i > 0; $i--) {
if ($counter == 2) {
$counter == -1;
}
print "Draco's designs and codes are" . $words[$counter];
$counter++;
}
?>
My god, I still can code PHP!
-Nay
Edit:
You didn't mention the getting broke and living on the streets and:
part.
-Nay
Posted: Tue May 25, 2004 12:39 pm
by feyd
uhm.. that'd print nothing.

Posted: Tue May 25, 2004 12:44 pm
by Weirdan
Nay's code wrote:
Code: Select all
$name = "Draco_03";
$synonym = null;
$words = array('bad', 'horrific', '{censored}');
$counter = 0;
for ($i = 0; $i > 0; $i--) {
if ($counter == 2) {
$counter == -1;
}
print "Draco's designs and codes are" . $words[$counter];
$counter++;
}
It would always print "Draco's designs and codes arebad". Because of that it's much more efficient to write it as:
Code: Select all
while(true) // forever
print 'Draco''s designs and codes arebad';
You've lost you skills, I'd say
<edit>
didn't notice you've used greater instead of greater-then. So even more efficient way to write your code is:

</edit>
Posted: Tue May 25, 2004 12:44 pm
by Nay
Okay fine!
Code: Select all
<?php
$name = "Draco_03";
$synonym = null;
$words = array('bad', 'horrific', '{censored}');
$counter = 0;
while($i = 1) {
if($counter == 2) {
$counter = -1;
}
print "Draco's designs and codes are" . $words[$counter] . "<br />";
$counter++;
}
?>
Trust while loops for infinite loops
-Nay
Posted: Tue May 25, 2004 12:45 pm
by Nay
hmm........wierdan, posted just before me.........and always being the person to not spam in a spam-fest

...
-Nay
Posted: Tue May 25, 2004 12:46 pm
by Draco_03
Spam fest..
who said SPAM ?
Posted: Tue May 25, 2004 12:47 pm
by Nay
well......ahem.......we could re-read the posts on "Own Forum!!" and "Hello" in the past 15 minutes and judge again
-Nay
Posted: Tue May 25, 2004 12:51 pm
by Weirdan
Nay wrote:
Code: Select all
//........
while($i = 1) {
//.......
$i is undefined

It would print a warning only, and only once
Does it mean Draco's desings and codes are good?

Posted: Tue May 25, 2004 12:54 pm
by Draco_03
/hugs weirdan.. (with something to protect against thoses spikes)
but hugs him nyways..
edit : damn gramar.. :/
Posted: Tue May 25, 2004 12:54 pm
by feyd
if you want a very fast infinite loop.. for whatever reason...
and $i = 1 sets to 1... not checking..