Skip to content

Instantly share code, notes, and snippets.

@tanayseven
Last active April 24, 2018 08:37
Show Gist options
  • Save tanayseven/5476f30951c4da850623c3aaa8751221 to your computer and use it in GitHub Desktop.
Save tanayseven/5476f30951c4da850623c3aaa8751221 to your computer and use it in GitHub Desktop.
A simple mantra for success in life writen in the form of code. Needs more improvements, please suggest it in the code.
class SuccessInLife{
public Result chantSuccessInLifeMantra() {
while(success.isNotAchieved()){
try{
yourBest();
doWhatYouNeedTo();
workHardAtIt();
keepDoingItConstantly();
if (youFail()) throw AllYourWorries.Yourself;
}
catch(Yourself y){
y.everyTimeYouFall();
f = y.failure
f.learnFromIt();
y.dontGiveUp();
}
finally{
return success.goalAchieved();
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment