"A day in the life of a programmer."
Moderator: General Moderators
- daedalus__
- DevNet Resident
- Posts: 1925
- Joined: Thu Feb 09, 2006 4:52 pm
"A day in the life of a programmer."
Before I say anything:
This is not safe for children. There is profanity, please don't click if you can't handle that.
This may not be safe for work lol.
http://seattle.craigslist.org/see/rnr/188678814.html
I couldn't resist writing the best code-joke ever.
This is not safe for children. There is profanity, please don't click if you can't handle that.
This may not be safe for work lol.
http://seattle.craigslist.org/see/rnr/188678814.html
I couldn't resist writing the best code-joke ever.
eg: (spot the bug :p)
I'd write that as:
Code: Select all
if ($this->monotony = TRUE)I'd write that as:
Code: Select all
if ($this->monotony)- MrPotatoes
- Forum Regular
- Posts: 617
- Joined: Wed May 24, 2006 6:42 am
- kbrown3074
- Forum Contributor
- Posts: 119
- Joined: Thu Jul 20, 2006 1:36 pm
- daedalus__
- DevNet Resident
- Posts: 1925
- Joined: Thu Feb 09, 2006 4:52 pm
After a while the same thing over and over gets boringDaedalus- wrote:Tim, you missed the joke.
Half an hour before i saw that post i recieved an e-mail from a collegue that wanted to invite us to his desk because he had some cake and wine for his birthday... The message went like:
Code: Select all
Person steven = new Person();
steven->IniviteCoWorkers();
while (steven->hasCake()) {
steven->GiveCake();
steven->DrinkWine();
steven->TakeNap(new TimeSpan(0, 5, 0));
}
...
Why do you always add a == TRUE, == FALSE, != FALSE, != TRUE to an expression that already evaluates to a boolean value? As you already experienced, it leads to errors (and to my personal opinion doesn't improve readability)
</off-topic>