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
"A day in the life of a programmer."
Moderator: General Moderators
- RobertGonzalez
- Site Administrator
- Posts: 14293
- Joined: Tue Sep 09, 2003 6:04 pm
- Location: Fremont, CA, USA
Wouldn't it betimvw wrote:Code: Select all
Person steven = new Person(); steven->IniviteCoWorkers(); while (steven->hasCake()) { steven->GiveCake(); steven->DrinkWine(); steven->TakeNap(new TimeSpan(0, 5, 0)); } ...
Code: Select all
Person steven = new Person();
steven.IniviteCoWorkers();
while (steven.hasCake()) {
steven.GiveCake();
steven.DrinkWine();
steven.TakeNap(new TimeSpan(0, 5, 0));
}
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 messageEverah wrote:Wouldn't it be *snip correct syntax
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));
}