Programming Jokes Thread

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

  1. elh9

    elh9 Member

    Joined:
    Feb 28, 2016
    Messages:
    76
    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:
    821
    [​IMG]
     
    Wolfje likes 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);
    }
    
     
    elh9 and bradleyk like this.
  4. oculi

    oculi Member

    Joined:
    Aug 18, 2004
    Messages:
    9,695
    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:
    76
    xNWld3g.jpg
     
    jaack likes this.

Share This Page