re: Do you code on the weekend? How often, what’s your routine like? VIEW POST

FULL DISCUSSION
 

I do Personal projects and stuff. Every weekend to be honest.
my routine is EAT SLEEP CODE REPEAT

 
 

I don't nearly as much as I used to or a would like to. Always something to do, like work or personal projects as I'm still in uni/college. I also left my game PC at my place at uni, so only have my MacBook pro. as much as I love OSX , games don’t play nicely with the hardware (good specs but lack of cooling) or OS. but sure let's add game().

// adding game(), and ditching recursion for a while loop
while(alive){
  eat();
  sleep();
  code();
  game();
}
 
 

Could be ala clojure.

(loop
  (eat)
  (sleep)
  (code)
  (if (alive?)
      (recur)))
 
 

haha, thanks it should be

// Recursion in a while loop Bug fix
day(){
    eat();
    sleep();
    code();
    if (alive)  day();
}
code of conduct - report abuse