"A day in the life of a programmer."

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

User avatar
daedalus__
DevNet Resident
Posts: 1925
Joined: Thu Feb 09, 2006 4:52 pm

Post 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
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post 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));
}
:wink:
timvw
DevNet Master
Posts: 4897
Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium

Post 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));
}
Post Reply