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

:twisted:

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?'

:lol: :wink:

/ 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 :twisted:

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! :D

-Nay

Edit:

You didn't mention the getting broke and living on the streets and:

Image

part.

-Nay

Posted: Tue May 25, 2004 12:39 pm
by feyd
uhm.. that'd print nothing. :D

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 :lol:

<edit>
didn't notice you've used greater instead of greater-then. So even more efficient way to write your code is: :lol:
</edit>

Posted: Tue May 25, 2004 12:44 pm
by Nay
Okay fine! :twisted:

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 :D...

-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 :lol: It would print a warning only, and only once :lol:

Does it mean Draco's desings and codes are good? :lol:

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

Code: Select all

for(;;)
{
// whatever
}
and $i = 1 sets to 1... not checking..