Page 2 of 2
Posted: Tue Aug 01, 2006 3:10 pm
by daedalus__
Oh.. I do it for readabililty. lol
I do agree it is a bad habit though.
The fact is, I did that line like that on purpose. Life always sets monotony to true. It never ends. lol
Posted: Tue Aug 01, 2006 3:12 pm
by RobertGonzalez
timvw wrote:Code: Select all
Person steven = new Person();
steven->IniviteCoWorkers();
while (steven->hasCake()) {
steven->GiveCake();
steven->DrinkWine();
steven->TakeNap(new TimeSpan(0, 5, 0));
}
...
Wouldn't it be
Code: Select all
Person steven = new Person();
steven.IniviteCoWorkers();
while (steven.hasCake()) {
steven.GiveCake();
steven.DrinkWine();
steven.TakeNap(new TimeSpan(0, 5, 0));
}

Posted: Wed Aug 02, 2006 12:26 am
by timvw
Everah wrote:Wouldn't it be *snip correct syntax
You're right... After a long day (@work i do c#, @home i do php) switching mindsets takes a while.. Anyway, now that i'm at work again, i found a copy of the message

(Personally i find the wife2.0 programs funnier)
Code: Select all
Person steven = new Person();
steven.Age = 27;
steven.BringSweetsToFluxys();
steven.PutSweetsOnDesk();
foreach (Praline p in desk.Pralines)
{
steven.Eat();
Systen.Threading.Thread.Sleep(new TimeSpan(0,5,0));
}