10
agnibha
7y

When a developer is drunk.. He will lie...

Comments
  • 9
    public int sum(int a, int b) {
    return a*b;
    }
  • 3
    Rename your function as drunkSum
  • 10
    I imagine code like this making perfect sense while wasted

    // This function takes
    // returns if its in the array

    float arrayIncludes(char* ary, int x) {
    if (!!!x) throw new OutOfMemoryError("Note to self: order some Hawaiian pizza and get more spiced rum"); //TODO: don't forget

    int e = Math::E;
    int y = --x; // make sure the index starts at 0
    return (float) y; // duuuude why hadn't I thought of this before? Now it's the right type!!1
    }
  • 4
    @Ashkin need more rum too
  • 0
    Tends to go full java on complexity & abstraction when I'm coding in an influenced state.

    Nothing is simple then 🤷
  • 0
    Okay, now what is if a programmer answers "yes" to the question "are you drunk?"? If he is drunk, he gotta lie, so he is not drunk. But then, he says the truth and is drunk. Then again, he lies...
  • 1
    @crisz

    may be this will do...

    function returnNextElement(arr, index) {
    return arr[index++] || null;
    }
  • 1
    @wildcard Please ask Cersei Lannister about this.. :)
Add Comment