Skip to content

Instantly share code, notes, and snippets.

@josteink
Last active October 21, 2020 05:37
  • Select an option

Select an option

Revisions

  1. 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 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 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 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.