Programming Jokes Thread

Discussion in 'Programming & Software Development' started by elh9, Sep 4, 2018.

  1. elh9

    elh9 Member

    Joined:
    Feb 28, 2016
    Messages:
    107
    Location:
    Perth NOR
    Was thinking a thread for programming related jokes could be good.

    I'll start:
    Code:
        public boolean isEqual(int a, int b) {
            try {
                int c = 1/(a-b);
            } catch (ArithmeticException e) {
                return true;
            }
        
            return false;
        }
    
     
    jaack, nav, Hookimus and 1 other person like this.
  2. Dre_

    Dre_ Member

    Joined:
    May 25, 2014
    Messages:
    822
    [​IMG]
     
    tony. and Wolfje like this.
  3. jaack

    jaack Member

    Joined:
    Jan 13, 2015
    Messages:
    3
    Oh No! The robots are trying to kill us!
    But why?! We never programmed them to do this!

    Code:
    static bool isCrazyMurderingRobot = false;
    
    void interactWithHumans()
    {
        if(isCrazyMurderingRobot = true)
            kill(humans);
        else
            beNiceTo(humans);
    }
    
     
    General_Cartman, elh9 and bradleyk like this.
  4. oculi

    oculi Member

    Joined:
    Aug 18, 2004
    Messages:
    10,081
    Person: Would you like a tea, or a coffee?
    Programmer: Yes
     
    elh9 likes this.
  5. OP
    OP
    elh9

    elh9 Member

    Joined:
    Feb 28, 2016
    Messages:
    107
    Location:
    Perth NOR
  6. TryingYourLuck

    TryingYourLuck Member

    Joined:
    Apr 25, 2012
    Messages:
    1
  7. Hookimus

    Hookimus Member

    Joined:
    Jan 11, 2016
    Messages:
    51
    Location:
    Sydney
  8. neRok

    neRok Member

    Joined:
    Aug 19, 2006
    Messages:
    2,748
    Location:
    Perth NOR
     
    PabloEscobar and Tinian like this.
  9. Foliage

    Foliage Member

    Joined:
    Jan 22, 2002
    Messages:
    32,047
    Location:
    Sleepwithyourdadelaide
  10. OP
    OP
    elh9

    elh9 Member

    Joined:
    Feb 28, 2016
    Messages:
    107
    Location:
    Perth NOR
    Yeah that is kinda funny, thought he would take it further tho
    that "programming-sucks" link is gold though
     
    Last edited: Dec 21, 2018
  11. dakiller

    dakiller (Oscillating & Impeding)

    Joined:
    Jun 27, 2001
    Messages:
    7,708
    Location:
    Gippsland
    A room mate asked his friend who is a programmer to go shopping.
    "hey, can you buy a bottle of milk? Oh and if they have eggs, buy 12"
    So the programmer went shopping.
    When he got back, he bought 12 bottle of milk and his room mate asked
    "why the heck did you bought 12 bottle of milk?!"
    The programmer responded.
    "they have eggs"

    The next day, the same programmer's roommate calls him to ask where he is.
    "I'm back at the grocery," says the programmer.
    "While you're there, pick up some bread. Thanks!" says the roommate.
    The programmer never comes home.
     
    self_slaughter and oculi like this.

Share This Page