54

A programmer puts two glasses on his bedside table before going to sleep. A full one, in case he gets thirsty, and an empty one, in case he doesn’t.

Comments
  • 2
  • 5
    But it would be like declaring an unused variable, ram is precious
  • 6
    @th4t empty variable != unused
  • 4
    I hope most programmers are smarter than that
  • 2
    @CodeBane yeah, but in this context is a both empty and unused variable lol
  • 1
    A programmer always uses a sippy cup or otherwise non-leaky storage unit.

    A glass is just too easily knocked over !

    Plus you want something non-glass like, in case you fall on it.

    Don't you know programmers have specially developed bladders of at least 1 litre capacity so they can go all day without leaving their desk..
  • 0
    A full glass in case thirst > 0 and an empty one in case thirst < 0
  • 0
    Shouldn't there be a portable toilet next to the bed in case number 2's..
  • 1
    0 vs null
  • 0
    The second glass is undefined
  • 2
    A haskell programmer would do this lol
  • 0
    @Nanos it's a hack, number 2's can be done but there is a high probability of a StackOverflowException
Add Comment