Today, we're going to learn the art of Procrastination, the most valuable skill in any modern workforce.
Procrastination is not a dirty word, my friends! It's a necessary step in the creative process.
// Procrastination Algorithm
function procrastinate(task){
while(true){
// Do nothing for an arbitrary amount of time
var timeSpent = Math.floor(Math.random() * 1000);
for(var i = 0; i < timeSpent; i++)
{
// Loop through the following activities
if (Math.random() > 0.5){
// Watch cat videos
document.write("Watching cat videos...");
}
else {
// Read a Wikipedia article
document.write("Reading about the history of dental hygiene...");
}
}
}
}
Remember, the key to successful procrastination is to never actually do the task at hand.
Go to Assignment 1: Procrastinate like a Pro