2 ms·
if (NbrOfProcrastinationTips>1) { Result = (NbrOfProcrastinationTips-1)+" tips too many" } else if (ProcrastinationTip[0] != "Do Something") {
by edw519 17y ago
if (NbrOfProcrastinationTips>1)
{
Result = (NbrOfProcrastinationTips-1)+" tips too many"
}
else if (ProcrastinationTip[0] != "Do Something")
{
Result = "Invalid Procrastination Tip"
}
else
{
Result = "Stop Reading Hacker News and "+ProcrastinationTip[0]
}
- tome 17y agoThis website contains an implementation of the algorithm you describe: http://www.doitfuckingnow.com/ http://www.doitfuckingnow.com/