Words I'm surprised I can spell:
Obsequious
Leprechaun
Marauder
Depolymerization
Nihilism
Queue
Words I'm surprised I can't spell:
Bannana
Wensday
Calender
Recieve
Restraunt
Feburary
Monday, April 21, 2008
Wednesday, April 16, 2008
The beauty that is Snort
Monday, April 14, 2008
mmmm....brains
Political Observations From Google Trends
Wednesday, April 9, 2008
Why goto statements are bad practice
/* Real life example of the dangers of Goto statements */
int main (){
While(currentTime() >= toTime("8:00 AM")) &&
(currentTime() <= toTime("5:00 PM")){
doWork(calendarTask(currentTime()));
if(currentTime()==getLunchTime()){
goto Lunch;
}
}
While (currentTime() <= toTime("5:00 PM"){
doWork(calendarTask(currentTime()));
}
goHome(true);
Lunch:
While (currentTime() <= toTime("5:00 PM"){
//doWork(calendarTask(currentTime()));
}
goHome(false);
}
void goHome(bool productiveDay){
if(productiveDay){
exit(0);//Great Day!!!
} else{
exit(1);//Working from home tonight.
}
}
int main (){
While(currentTime() >= toTime("8:00 AM")) &&
(currentTime() <= toTime("5:00 PM")){
doWork(calendarTask(currentTime()));
if(currentTime()==getLunchTime()){
goto Lunch;
}
}
While (currentTime() <= toTime("5:00 PM"){
doWork(calendarTask(currentTime()));
}
goHome(true);
Lunch:
While (currentTime() <= toTime("5:00 PM"){
//doWork(calendarTask(currentTime()));
}
goHome(false);
}
void goHome(bool productiveDay){
if(productiveDay){
exit(0);//Great Day!!!
} else{
exit(1);//Working from home tonight.
}
}
Subscribe to:
Comments (Atom)



