Just keep goin..

Hello Readers,

I came across a very interesting question on Quora, and by reading the answer, I couldn’t resist myself to share with you all. Hope you all like it.

Link:
https://www.quora.com/What-should-I-do-after-losing-my-developer-job-at-31

  

  1. var job = false;// may this come true
  2. cash = true;
  3. passionate = true;
  4. knowledgable = false;
  5.  
  6. var action = function(){
  7. if (job) { // found a job?
  8. console.log(“Phew. That was close.”);
  9. return;
  10. }
  11. while (!job) {
  12. switch(true) {
  13. case (passionate && knowledgable && cash):
  14. console.log(“Meanwhile, consider contracting.”);
  15. break;
  16. case (!passionate && !knowledgable):
  17. console.log(“Do you want to explore other career options?”);
  18. break;
  19. case (!cash): // running out of savings
  20. console.log(“Find a dev job quickly.”);
  21. break;
  22. case (!passionate):
  23. console.log(“You are probably burnt out. Take a breather!”);
  24. //to become …
  25. passionate = true;
  26. action(); // recursive
  27. break;
  28. case (!knowledgable):
  29. console.log(“Learn as you go.”);
  30. //to become …
  31. knowledgable = true;
  32. action(); // recursive
  33. break;
  34. default:
  35. console.log(“Don’t give up!”);
  36. }
  37. return; // end
  38. }
  39. }
  40.  
  41. action();
This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s