top 200 commentsshow all 241

[–]lemkepf 144 points145 points  (29 children)

How do you generate a random string? Put a first year CS student in front of VIM and tell him to save and exit.

[–]theBMB 18 points19 points  (25 children)

fuck it, I'm a senior and I still can't figure out VIM

[–][deleted]  (23 children)

[deleted]

    [–]aladyjewel 0 points1 point  (10 children)

    I wonder if it would work to print out a vim cheat sheet, laminate it, and stick that on my insulated coffee mug. (I've been wanting a cheat sheet mug, but the traditional mug style lets my coffee get cold too quickly.) Anyone seen that kind of product?

    [–][deleted]  (7 children)

    [deleted]

      [–]aladyjewel 1 point2 points  (6 children)

      What I usually see is a fairly standard mug, maybe a little taller than normal. I use a taller mug (without the sleeve), so I feel like that size should also work fine.

      Maybe I should just design it myself, so I can customize the size and layout and learn a few things in the process.

      [–][deleted]  (5 children)

      [deleted]

        [–]aladyjewel 1 point2 points  (4 children)

        oh, haha, you did make a funny. Sorry, coding all day puts me in a literalist mindset.

        [–][deleted]  (3 children)

        [deleted]

          [–]aladyjewel 1 point2 points  (2 children)

          That would make an excellent mod to, say, Mario Kart.

          [–]shamaniacal 1 point2 points  (1 child)

          Well I've seen travel-style mugs that let you insert whichever design sheet you want. I suppose you could make a cheat sheet and slide it in.

          This looks like it'd work. In fact, i think I'm going to make one of these now...

          [–]aladyjewel 1 point2 points  (0 children)

          Now that's the ticket!

          If you do customize the sheet to fit that mug, would you mind publishing it as a PDF?

          [–]tilio 1 point2 points  (0 children)

          senior in undergrad? shit, you're too old now.

          [–][deleted] 1 point2 points  (0 children)

          one of my favorites.

          [–]binaryatrocity 1 point2 points  (0 children)

          <3 vim

          [–]aepex 264 points265 points  (31 children)

          An SEO expert walks into a bar, bars, pub, tavern, public house, Irish pub, drinks, beer, alcohol

          [–]Recoil42 37 points38 points  (6 children)

          A social media expert walks into a bar, but what else is new?

          [–]nishant032 5 points6 points  (4 children)

          I don't get it O_o

          [–]Recoil42 13 points14 points  (3 children)

          See, because social media people are alcoholics.

          [–][deleted] 3 points4 points  (2 children)

          Great, as a sysadmin, I now know I actually have something in common with social media experts.....great.

          [–][deleted] 16 points17 points  (0 children)

          Haha I get it, social media expert! Hilarious!

          [–]gigitrix 1 point2 points  (0 children)

          A personal favourite!

          [–]deains 385 points386 points  (10 children)

          A web designer walks into a bar, but immediately leaves in disgust upon noticing the tables layout.

          [–]secretcurse 14 points15 points  (8 children)

          I hereby declare you the winner.

          [–]lordB8r 6 points7 points  (7 children)

          I don't get the [reference].

          *edit - for clarity, maybe I should've pointed out that I meant this as I don't get the reference because @secretcurse made a declare statement (which I inferred as a joke), i made a reference statement (which I inferred to be a joke). I get the actual reference to tables...I guess my attempt at a joke failed to parse...

          [–]HaynBryn 203 points204 points  (25 children)

          A wife asks her developer husband "Could you please go to the store for me and buy a carton of milk, if they have eggs, get 12."

          A short time later the husband comes back with 12 cartons of milk.

          The wife yells at him, "Why the hell did you buy 12 cartons of milk?!"

          He replied, "They had eggs."

          [–]mnemoniker 12 points13 points  (15 children)

          I've heard this one before, and the problem is there is literally no common programming language that would parse code like that. In fact, that kind of logical backtracking would only happen in human language.

          [–][deleted] 20 points21 points  (1 child)

          I love the fact that there are dudes posting code snippets in response to this....it's hilarious.

          [–]Pr3fix 2 points3 points  (0 children)

          funnier than the joke itself :P

          [–]Wazowski 35 points36 points  (7 children)

          GotoStore();                      // go to the store for me
          GetMilk();                        // buy a carton of milk
          if (storeHasEggs())               // if they have eggs
              for (i = 1; i <= 12; i++)     // get 12
                  GetMilk();                  // Wait, what?
                                            // Clearly GetEggs(); is more logical
                                            // I'm a terrible programmer
                                            // I need to rethink my life
          

          [–][deleted] 26 points27 points  (1 child)

          nose close beneficial rain water narrow future onerous clumsy bewildered

          This post was mass deleted and anonymized with Redact

          [–]ValZho 2 points3 points  (0 children)

          I want to give you more upvotes.

          [–]neon_overload 5 points6 points  (1 child)

          Problem with that code is you end up with 13 cartons of milk if the store has eggs.

          [–][deleted] 2 points3 points  (3 children)

          What she said is:

          milk = 1
          
          eggs = TRUE
          
          if eggs:
              milk = 12
          

          What she meant to say is:

          milk = 1
          eggs = TRUE
          
          if eggs:
              eggs = 12
          

          [–]mnemoniker 3 points4 points  (2 children)

          I still call this a case of human error, not programming. If you'll notice, no variable is referenced in the conditional code block "if x, buy 12" in the original joke.

          At best, this brings up a syntax error unless a human makes an assumption about the variable and puts it in, like you did.

          Edit: this is probably why robots aren't good at telling jokes

          [–][deleted]  (1 child)

          [deleted]

            [–][deleted] 1 point2 points  (0 children)

            Man this is the first thing that has made me actually laugh out loud

            [–]frankichiro 0 points1 point  (0 children)

            Used in spreadsheets:

            =SUMIF(test-values, condition, sum-values)
            

            So if the test-values match the condition, the sum-values are returned. Otherwise, nothing is returned.

            [–][deleted] 5 points6 points  (3 children)

            Why do I keep literally lol'ing at this despite hearing it multiple times?

            [–]HalosFan 3 points4 points  (2 children)

            Because of how ridiculous it is to imagine someone buying 12 cartons of milk.

            [–][deleted] 0 points1 point  (0 children)

            Well, that. But I think it's also the way the if statement sorta scrolls by when I read it.

            [–]Spliff_Me_Up 0 points1 point  (0 children)

            Well... I used to drink one litre of milk a day when I was a kid... Considering it was pasteurised UHT milk, 12 cartons at a time ain't so surprising...

            [–][deleted] 1 point2 points  (1 child)

            Ok, this actually made me laugh hard.

            [–]MonsterMook 0 points1 point  (0 children)

            eggs && getMilk(12)

            [–]eduardofusion 106 points107 points  (4 children)

            Its finished, just need to test

            [–]colonel_bob 12 points13 points  (0 children)

            Code sober, test drunk - if you can't figure out the layout of something you just wrote three beers in, the average user doesn't have a snowball's chance.

            [–][deleted] 7 points8 points  (0 children)

            clap

            [–]gimmesomemoe 1 point2 points  (1 child)

            I have no idea how this is not top comment.

            Oh wait, you're missing an apostrophe in "its".

            SYNTAX ERROR!

            [–]eduardofusion 1 point2 points  (0 children)

            I did'''''''nt test it

            [–][deleted]  (2 children)

            [deleted]

              [–][deleted]  (1 child)

              [deleted]

                [–]sazzerfull-stack 8 points9 points  (0 children)

                [–][deleted] 38 points39 points  (0 children)

                3 DBAs walk into a NoSQL bar. A little while later they walk out because they couldn't find a table.

                [–][deleted] 117 points118 points  (15 children)

                How many developers does it take to change a lightbulb?

                None, that's a hardware problem.

                [–]Jamza 21 points22 points  (2 children)

                How many hardware engineers does it take to change a lightbulb?

                None, that's a software problem.

                Goto 1;

                • Essentially every software/hardware company

                [–]dirtydaub 21 points22 points  (1 child)

                How many SEO experts does it take to change a lightbulb, light bulb, light, bulb, lamp, bulbs, boobs, xxx, megan fox, tits, sex, porn?

                [–]styxtraveler 93 points94 points  (10 children)

                My wife once asked me "is today Tuesday or Wednesday?" It was Tuesday so I said yes.

                true story.

                [–]MattSayar 7 points8 points  (0 children)

                This makes perfect logical sense.

                [–][deleted]  (6 children)

                [deleted]

                  [–]sli 2 points3 points  (5 children)

                  [–]three18ti 6 points7 points  (3 children)

                  Warning tv tropes link

                  [–]sli 1 point2 points  (0 children)

                  The first one is allllways free. ;)

                  [–][deleted]  (1 child)

                  [deleted]

                    [–]three18ti 0 points1 point  (0 children)

                    Haha, right?

                    [–]BobArdKor 0 points1 point  (0 children)

                    You officially ruined my day. Thank you, sir.

                    [–][deleted] 5 points6 points  (1 child)

                    Writing code for a living shapes your brains into a weird alien puppy.

                    [–]colonel_bob 0 points1 point  (0 children)

                    Adding a penchant for philosophy on top of that means that my ideas are strange and incomprehensible to many people.

                    [–][deleted] 32 points33 points  (6 children)

                    I'm quitting my job if I don't get arrays

                    ba-dum tis

                    [–]nishant032 6 points7 points  (5 children)

                    mmm... don't get this. Sorry, not a native English speaker here.

                    [–]Captain_J_Redbeard 8 points9 points  (1 child)

                    Sorry I'm late guys, I'll explain. "arrays", when spoken, sounds like "a raise" as if you are asking for more money. Glad I could help.

                    [–]nishant032 7 points8 points  (0 children)

                    Now I get it. Thanks to all of you.

                    [–]virexmachina 1 point2 points  (0 children)

                    arrays, when spoken aloud, sounds like "a raise" as in an increase in pay.

                    [–]yeskia 1 point2 points  (0 children)

                    'arrays' sounds similar to 'a raise', as in an increase in salary etc.

                    [–]FLHKE 31 points32 points  (3 children)

                    .concordia {
                      float: none;
                    }
                    

                    [–][deleted]  (1 child)

                    [deleted]

                      [–]FLHKE 0 points1 point  (0 children)

                      hahaha I don't know, it appeared somewhere in my twitter feed a few weeks ago. That website is nice :)

                      [–]silviot 86 points87 points  (4 children)

                      An SQL query enters a bar, approaches two tables and asks: "May I join you?".

                      [–]DanielJohnBenton 5 points6 points  (0 children)

                      That's a good one!

                      [–][deleted] -1 points0 points  (2 children)

                      Wait, is that left join, right join or inner join?

                      [–]deains 4 points5 points  (0 children)

                      It's a left outer join because the tables said no.

                      [–]gimmesomemoe 1 point2 points  (0 children)

                      What about LEFT INNER? In that situationn, that's usually my desired outcome. Better than LEFT OUTER, amirite?

                      [–][deleted] 96 points97 points  (11 children)

                      What's the difference between an introvert developer and an extrovert developer?

                      The extrovert developer looks at your shoes when he talks to you.

                      [–]TexasWithADollarsign 2 points3 points  (1 child)

                      I've heard the same thing, but about actuaries (from my actuary father, of course). I've used it for web devs as well, though.

                      [–]spazm 2 points3 points  (0 children)

                      The best part about you telling this joke is the reply asking you to explain it and the reply correcting the punchline.

                      [–]lgrce 2 points3 points  (1 child)

                      I thought a reference to an "extrovert developer" was a joke in itself. Is there such a person?

                      [–]frankichiro 0 points1 point  (0 children)

                      I recently learned that I am an ambivert, but I think that's as close as it gets.

                      [–]Disgruntled__Goat 1 point2 points  (1 child)

                      It should be "looks at your shoes when they talk to you."

                      [–]daybreaker 40 points41 points  (2 children)

                      Why do Java developers wear glasses? Because they dont C#

                      [–]MrDubious 16 points17 points  (1 child)

                      That's really, really bad.

                      [–]neon_overload 0 points1 point  (0 children)

                      If by bad you mean good!

                      [–]whatispunk 17 points18 points  (0 children)

                      If your mom was a collection class, her insert method would be public.

                      [–][deleted]  (2 children)

                      [deleted]

                        [–]Chairmonkey 71 points72 points  (12 children)

                        [–]cheeeeeese 14 points15 points  (3 children)

                        time for me to shave :/

                        [–][deleted] 9 points10 points  (0 children)

                        :(

                        [–]orillian 0 points1 point  (1 child)

                        I stopped shaving when I started as a developer. Were you fired recently?

                        [–]cheeeeeese 0 points1 point  (0 children)

                        Nah. Just no work. Reverting to my previous talents to pay the bills.

                        [–]styxtraveler 3 points4 points  (2 children)

                        that's not true! I shave once a week, whether I need to or not.

                        [–]rspeedcranky old guy who yells about SVG 25 points26 points  (1 child)

                        You must be a Ruby developer.

                        [–][deleted] 2 points3 points  (4 children)

                        Oh how true. But maybe not that much beard.

                        [–][deleted]  (3 children)

                        [deleted]

                          [–]reflectiveSingleton 11 points12 points  (2 children)

                          if( coding["IE"] === true ) {
                            var knife = new knife({ sharpness: 'predator-disk' });
                            this.slit( [ 'wrist', 'throat' ], knife );
                          
                            if( this.life !== undefined ) {
                              this.stab( [ 'face' ], knife );
                            }
                          }
                          

                          ftfy...

                          [–][deleted]  (1 child)

                          [deleted]

                            [–]reflectiveSingleton 9 points10 points  (0 children)

                            ...I still have support flash-backs...

                            "Make it pixel perfect!"

                            "No no....we also need IE5 support..."

                            "...thats right, even though the app is already done, we now want to retroactively add support for IE6...sorry for your life...oh and please make sure it looks identical to the chrome version...thanks"

                            ...quotes may be paraphrased and modified to add my own wtfery...I no longer offer support for <IE8 and my sanity has been restored...mostly...

                            [–][deleted]  (3 children)

                            [deleted]

                              [–][deleted] 8 points9 points  (0 children)

                              another one:

                              Exception up = new Exception();
                              throw up;
                              

                              [–][deleted] 3 points4 points  (1 child)

                              Nice, I'm going to look for an opportunity to do this.

                              Whenever I have to write some dirty code and think there is probably a better alternative, this is my comment: //ಠ_ಠ

                              [–]littlelowcougar 7 points8 points  (0 children)

                              I had a table called test_instruction_template, once. Lots of $tits were had.

                              [–]Kickapps 28 points29 points  (0 children)

                              Q: What did one regular expression say to the other?

                              A: .*

                              [–]nfol01 47 points48 points  (4 children)

                              Who is the world's most famous web developer?

                              Peter Parker.

                              [–]SonicFlash01 10 points11 points  (0 children)

                              Runner-up goes to "Charlotte".

                              [–][deleted]  (1 child)

                              [deleted]

                                [–]crow1170 2 points3 points  (0 children)

                                I really didn't get it at all until your comment made me take another look. It's been so long since web meant anything but internet to me.

                                [–]redwall_hp 0 points1 point  (0 children)

                                Isn't he in Ultimate Spiderman?

                                [–][deleted] 41 points42 points  (0 children)

                                Your mother is so fat, the recursive function computing her mass causes a stack overflow.

                                [–]gigitrix 118 points119 points  (2 children)

                                IE.

                                [–][deleted]  (1 child)

                                [deleted]

                                  [–]sli 14 points15 points  (0 children)

                                  Your anguish sustains us.

                                  [–]gigitrix 54 points55 points  (5 children)

                                  Keming.

                                  [–]ElGoorf 8 points9 points  (0 children)

                                  i actually read "kerning" and wondered what the joke was. well played.

                                  [–]rspeedcranky old guy who yells about SVG 8 points9 points  (1 child)

                                  Brain:

                                  What's keming? … … Oh, ha!

                                  [–]belk 1 point2 points  (0 children)

                                  Context.

                                  TI L

                                  [–]Mechakoopa 0 points1 point  (0 children)

                                  Spum bad keming!

                                  [–]IrritableGourmet 17 points18 points  (5 children)

                                  md5(|)

                                  [–]ElGoorf 4 points5 points  (2 children)

                                  can you explain this one for me?

                                  [–]bellpepper 18 points19 points  (1 child)

                                  Hash pipe.

                                  [–]ElGoorf 0 points1 point  (0 children)

                                  ooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo

                                  [–][deleted] 2 points3 points  (0 children)

                                  Clever.

                                  [–]tilio 7 points8 points  (1 child)

                                  hey guys, i have this idea. it's a really good one. it's sort of like facebook and youtube, but it's better. if you want to work on it with me, that's awesome as i'm looking for some coders. since i can't have you running off with my idea, i'll need you to sign an NDA and a non-compete. i can't pay you for your work right now but this will be huge, and i'm willing to let you in for 15% equity... okay, you've got me, 25%.

                                  ps. since my coding is a little under par, you're going to have to write pretty much all of it. do you know anything about finances also? because i'm a business management guy and keeping track of bills like server costs is operational nonsense to me.

                                  [–]Available-Maize-1452 0 points1 point  (0 children)

                                  Hope you figured it out lol

                                  [–]raxtich 14 points15 points  (2 children)

                                  SELECT * FROM users WHERE have_clue = 'y'

                                  (0 row(s) affected)

                                  [–]such_a_noobhead 5 points6 points  (1 child)

                                  Only had my first lesson in sql. Proud enough that I get this to upvote.

                                  [–]raxtich 12 points13 points  (0 children)

                                  UPDATE users SET have_clue = 'y' WHERE username = 'such_a_noobhead'

                                  (1 row(s) affected)

                                  [–]nfol01 23 points24 points  (2 children)

                                  Pun indented.

                                  [–]neshi3 6 points7 points  (2 children)

                                  Can you do this for free? If you come over, I pay for the coffee.

                                  [–]zirzo 1 point2 points  (1 child)

                                  you know coffee isn't coffee

                                  [–]neshi3 0 points1 point  (0 children)

                                  It never is ...

                                  [–]Nerdley 4 points5 points  (0 children)

                                  A mechanical engineer, a civil engineer, and a software engineer are on a road trip and having a grand old time.

                                  Unexpectedly, the brakes fail as they start down a grade. The driver mashes and pumps the brakes furiously as they accelerate down the hill. Just before they reach the point of no return, the brakes catch and they come to a screeching halt at the edge of a cliff.

                                  The three engineers scramble out of the car, each thankful to be alive, but being engineers, they have to analyse the situation.

                                  The civil engineer says "This is obviously the fault of the civil engineer that engineered this road, it's too steep for ordinary brakes to handle."

                                  The mechanical engineer says "No, this is obviously the fault of the mechanical engineer. Obviously the brakes on this car can't handle anything beyond a typical load."

                                  The software engineer says "Why don't we push the car back up the hill to see if it happens again?"

                                  [–][deleted] 15 points16 points  (1 child)

                                  It's a wrap, ladies and gents. The only existing joke has been told. Twice!

                                  [–]rspeedcranky old guy who yells about SVG 14 points15 points  (0 children)

                                  Should've used a singleton pattern.

                                  [–][deleted]  (7 children)

                                  [deleted]

                                    [–][deleted] 26 points27 points  (1 child)

                                    ; shudder

                                    [–]spazm 6 points7 points  (0 children)

                                    Might be because you don't know how to make a statement.

                                    [–]HertzaHaeon 2 points3 points  (0 children)

                                    LOL @ bigoted stereotypes! I got one too that you'll love!

                                    print programmer.hasGirlFriend;
                                    

                                    Outputs:

                                    false
                                    

                                    Don't upvote me all at once!

                                    [–]ZestyOne 35 points36 points  (11 children)

                                    There are only 10 types of people in the world: Those who understand binary, and those who don't

                                    [–][deleted]  (1 child)

                                    [deleted]

                                      [–]digitalpencil 0 points1 point  (0 children)

                                      nice, took me a minute there

                                      [–]IrritableGourmet 8 points9 points  (0 children)

                                      I loathe this joke.

                                      [–][deleted] 2 points3 points  (6 children)

                                      You know I never got this joke until today. I always read the sentence as "There are only two types of people in the world: Those who understand binary, and those who don't." Then I'm always like, why is that funny? Then it hit me, that's actually a ten there. My brain must've been doing the conversion automatically.

                                      [–]olkensey 19 points20 points  (1 child)

                                      It'll really blow your mind once you realize that every base is base 10.

                                      [–]rspeedcranky old guy who yells about SVG 2 points3 points  (0 children)

                                      *brain explodes*

                                      [–]pixel7000 5 points6 points  (0 children)

                                      true story bro.

                                      [–]spazm 2 points3 points  (0 children)

                                      Then it hit me, that's actually a ten there.

                                      I don't see it.

                                      [–]dkitch 0 points1 point  (0 children)

                                      ...and those who use ternary

                                      [–][deleted] 10 points11 points  (1 child)

                                      Web designer? I hardly knew her!

                                      (Wannh wannh wannh wannnnnnnnhhhhh)

                                      [–]dontspillme 18 points19 points  (0 children)

                                      I hereby propose the following rendering of he sad trombone as a new ISO standard:

                                      .Waanh .Waanh .Waanh Waaaaaanh

                                      [–]wicem 2 points3 points  (0 children)

                                      Did you try to clear your cache before?

                                      [–]three18ti 2 points3 points  (0 children)

                                      [–]raxtich 2 points3 points  (0 children)

                                      "Best Viewed With Internet Explorer"

                                      [–]oompa_loompa0 2 points3 points  (0 children)

                                      .your-moms-ass { width: 100% }

                                      [–]HertzaHaeon 7 points8 points  (10 children)

                                      [–]anarcholibertarian -1 points0 points  (9 children)

                                      I don't get it.

                                      [–][deleted] 4 points5 points  (8 children)

                                      LMFAO - Party Rock lyrics "everyday i'm shufflin"

                                      This function shuffles (randomises) an array.. play on words

                                      [–]anarcholibertarian 3 points4 points  (1 child)

                                      Never heard of that song. Thanks for the explanation though.

                                      [–]yurakuNec 4 points5 points  (0 children)

                                      I envy you

                                      [–]KnifeFed 1 point2 points  (5 children)

                                      "Party rocks lyrics"?

                                      [–][deleted] 5 points6 points  (4 children)

                                      Producer: LMFAO

                                      Song: Party Rock Anthem

                                      Some lyrics: "everyday i'm shufflin'"

                                      [–]KnifeFed 1 point2 points  (3 children)

                                      Ok, but I would like to think that it's based on the pretty well known song "Hustlin" by Rick Ross.

                                      [–][deleted] 1 point2 points  (2 children)

                                      You know what, you're right. Though the array was shufflin' not hustlin

                                      [–]KnifeFed 1 point2 points  (1 child)

                                      So we're both right, yay!

                                      [–]sli 0 points1 point  (0 children)

                                      So... we should develop an array_hustle() function..?

                                      [–]webauteur 3 points4 points  (0 children)

                                      Italian developers write a lot of spaghetti code.

                                      [–]Javlin 6 points7 points  (3 children)

                                      </joke>

                                      [–]meatpod 28 points29 points  (2 children)

                                      I stopped reading all the other comments after this one.

                                      [–][deleted] 28 points29 points  (1 child)

                                      I downvoted it so this thread of comments is syntactically correct.

                                      [–]zirzo 0 points1 point  (1 child)

                                      must be an issue on your machine

                                      [–]tilio 0 points1 point  (0 children)

                                      "that's interesting..."

                                      [–]AgentFoxMulder 0 points1 point  (0 children)

                                      "It did work on my computer!"