Hello!

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Draco_03
Forum Regular
Posts: 577
Joined: Fri Aug 15, 2003 12:25 pm
Location: Montreal, Canada

Post by Draco_03 »

You still deserve a BEATING for not posting for that long.. A BEATING I TELL YA!!!!
Nay
Forum Regular
Posts: 951
Joined: Fri Jun 20, 2003 11:03 am
Location: Brisbane, Australia

Post 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:
Draco_03
Forum Regular
Posts: 577
Joined: Fri Aug 15, 2003 12:25 pm
Location: Montreal, Canada

Post by Draco_03 »

I don't know why, but the 'Designer' sounds awefully gay..

EDIT : my grammar is really bad!
User avatar
tim
DevNet Resident
Posts: 1165
Joined: Thu Feb 12, 2004 7:19 pm
Location: ohio

Post by tim »

'The bad designer who cant program?'

:lol: :wink:

/ edit

'the bad designer who cant program AND grammar sucks?'
Draco_03
Forum Regular
Posts: 577
Joined: Fri Aug 15, 2003 12:25 pm
Location: Montreal, Canada

Post 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:
Nay
Forum Regular
Posts: 951
Joined: Fri Jun 20, 2003 11:03 am
Location: Brisbane, Australia

Post 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
Last edited by Nay on Tue May 25, 2004 12:39 pm, edited 1 time in total.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

uhm.. that'd print nothing. :D
User avatar
Weirdan
Moderator
Posts: 5978
Joined: Mon Nov 03, 2003 6:13 pm
Location: Odessa, Ukraine

Post 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>
Last edited by Weirdan on Tue May 25, 2004 12:48 pm, edited 1 time in total.
Nay
Forum Regular
Posts: 951
Joined: Fri Jun 20, 2003 11:03 am
Location: Brisbane, Australia

Post 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
Nay
Forum Regular
Posts: 951
Joined: Fri Jun 20, 2003 11:03 am
Location: Brisbane, Australia

Post by Nay »

hmm........wierdan, posted just before me.........and always being the person to not spam in a spam-fest :D...

-Nay
Draco_03
Forum Regular
Posts: 577
Joined: Fri Aug 15, 2003 12:25 pm
Location: Montreal, Canada

Post by Draco_03 »

Spam fest..
who said SPAM ?
Nay
Forum Regular
Posts: 951
Joined: Fri Jun 20, 2003 11:03 am
Location: Brisbane, Australia

Post by Nay »

well......ahem.......we could re-read the posts on "Own Forum!!" and "Hello" in the past 15 minutes and judge again ;)

-Nay
User avatar
Weirdan
Moderator
Posts: 5978
Joined: Mon Nov 03, 2003 6:13 pm
Location: Odessa, Ukraine

Post 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:
Draco_03
Forum Regular
Posts: 577
Joined: Fri Aug 15, 2003 12:25 pm
Location: Montreal, Canada

Post by Draco_03 »

/hugs weirdan.. (with something to protect against thoses spikes)
but hugs him nyways..

edit : damn gramar.. :/
Last edited by Draco_03 on Tue May 25, 2004 12:54 pm, edited 1 time in total.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

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