Last active
April 24, 2018 08:37
-
-
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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