Skip to content

Instantly share code, notes, and snippets.

@arjamizo
Forked from josteink/on_stateful_code.txt
Created March 9, 2016 07:00
Show Gist options
  • Save arjamizo/e08cecbd4ec207bac4b6 to your computer and use it in GitHub Desktop.
Save arjamizo/e08cecbd4ec207bac4b6 to your computer and use it in GitHub Desktop.

Revisions

  1. @josteink josteink renamed this gist Mar 8, 2016. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gistfile1.txt → on_stateful_code.txt
    Original file line number Diff line number Diff line change
    @@ -11,7 +11,7 @@ STUDENT: How to put a donkey inside the fridge?
    TEACHER: It's easy, you just open the fridge and put it in.
    STUDENT: No sir, You just open the fridge take out the elephant and put it in.
    TEACHER: Ooh...ok!!
    STUDENT: Let me ask another one. If all the animals went to the lion'sbirthday party, and one animal went missing which one would it be?
    STUDENT: Let me ask another one. If all the animals went to the lion's birthday party, and one animal went missing which one would it be?
    TEACHER: The lion of course! Because it would eat all the animals.
    STUDENT: No sir, it is the donkey, because it's still inside the fridge.
    TEACHER: Are you kidding me?
  2. @josteink josteink revised this gist Mar 8, 2016. 1 changed file with 3 additions and 0 deletions.
    3 changes: 3 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,6 @@
    On why stateful code is bad
    ===========================

    STUDENT: Sir, can I ask a question?
    TEACHER: Yes!
    STUDENT: How do you put an elephant inside a fridge?
  3. @josteink josteink revised this gist Mar 8, 2016. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -14,6 +14,6 @@ STUDENT: No sir, it is the donkey, because it's still inside the fridge.
    TEACHER: Are you kidding me?
    STUDENT: No sir, 1 last question.
    TEACHER: Ok!
    STUDENT: If there's a river full of crocodiles and you wanted to cross, how would you?
    STUDENT: If there's a river known to be full of crocodiles and you wanted to cross, how would you?
    TEACHER: There's no way, I would need a boat to cross.
    STUDENT: No sir, you just swim and cross it because all the animals went to the lion's birthday party.
  4. @josteink josteink created this gist Mar 8, 2016.
    19 changes: 19 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,19 @@
    STUDENT: Sir, can I ask a question?
    TEACHER: Yes!
    STUDENT: How do you put an elephant inside a fridge?
    TEACHER: I don't know.
    STUDENT: It's easy, you just open the fridge and put it in. I have another question!
    TEACHER: Ok, ask.
    STUDENT: How to put a donkey inside the fridge?
    TEACHER: It's easy, you just open the fridge and put it in.
    STUDENT: No sir, You just open the fridge take out the elephant and put it in.
    TEACHER: Ooh...ok!!
    STUDENT: Let me ask another one. If all the animals went to the lion'sbirthday party, and one animal went missing which one would it be?
    TEACHER: The lion of course! Because it would eat all the animals.
    STUDENT: No sir, it is the donkey, because it's still inside the fridge.
    TEACHER: Are you kidding me?
    STUDENT: No sir, 1 last question.
    TEACHER: Ok!
    STUDENT: If there's a river full of crocodiles and you wanted to cross, how would you?
    TEACHER: There's no way, I would need a boat to cross.
    STUDENT: No sir, you just swim and cross it because all the animals went to the lion's birthday party.