Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Does Humor Belong in Programming?

by karlgoethebier (Prior)
on Oct 01, 2015 at 09:38 UTC ( #1143502=poll: print w/replies, xml ) Need Help??

vote on Does Humor Belong in Programming?

Yes
[bar] 551/86%
No
[bar] 56/9%
Other opinion (please explain)
[bar] 30/5%
637 total votes
Replies are listed 'Best First'.
Re: Does Humor Belong in Programming?
by eyepopslikeamosquito (Chancellor) on Oct 05, 2015 at 04:25 UTC
Re: Does Humor Belong in Programming?
by johngg (Abbot) on Oct 04, 2015 at 14:49 UTC

    Yes, definitely. I remember an article in the Sun user group magazine a long time ago about amusing compiler messages. This one is my favourite -

    "a typedef name was a complete surprise to me at this point in your program"

    I just found them again online here.

    Cheers,

    JohnGG

      Thanks for the link John. Some of those were pretty funny. I remember learning many a moon ago about one humorous things the UNIX programmers put into the manpage for tunefs (sp?). "You can tune a filesystem, but you can't tuna fish." I think it was an indirect reference to the band REO Speedwagon's "You can tune a piano but you can't tuna fish."
Re: Does Humor Belong in Programming?
by choroba (Bishop) on Oct 01, 2015 at 09:43 UTC
    When clicking on the title, I expected a funnier poll.
    لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ

        Why do you fall me in the back?

        «The Crux of the Biscuit is the Apostrophe»

      I'm sorry that i disappointed you.

      Regards, Karl

      «The Crux of the Biscuit is the Apostrophe»

Re: Does Humor Belong in Programming?
by GotToBTru (Prior) on Oct 01, 2015 at 20:58 UTC

    Not only humor, but literature 'n culture 'n stuff.

    @godot = glob($path); die "Nothing to be done!\n" unless @godot;
    Dum Spiro Spero
      #!/usr/bin/env perl use strict; use warnings; use feature qw(say); use sigtrap qw(die INT); use subs qw(wait); sub wait { say qq(Nothing to be done.) while <> } wait(); END { say qq(To every man his little cross. Till he dies. And is forgo +tten.) }

      «The Crux of the Biscuit is the Apostrophe»

Re: Does Humor Belong in Programming?
by Gavin (Chancellor) on Oct 04, 2015 at 17:40 UTC

    Q Why did the programmer quit his job?

    A Because he didn't get arrays!

Re: Does Humor Belong in Programming?
by vitoco (Friar) on Oct 01, 2015 at 16:05 UTC

    It isn't funny when you have change something in an old program that only has variables/procedures/labels with just one or two letters or numbers in their names, and no comments!!!

    But is funny when you find an easter egg.

      "... and no comments..."

      Apropos comments:

      long john; // silver Catch (Exception e) { //who cares? } return 1; # returns 1 #define TRUE FALSE //Happy debugging suckers //When I wrote this, only God and I understood what I was doing //Now, God only knows // drunk, fix later // I'm sorry.

      Many more

      Regards, Karl

      «The Crux of the Biscuit is the Apostrophe»

      I make a living writing and using tools to look at other people's code. Sometimes a sense of humor is the only thing that keeps me going.
Re: Does Humor Belong in Programming?
by Pope-O-Matik (Pilgrim) on Oct 04, 2015 at 02:09 UTC

    By humor, do you mean blood, sweat, and tears? That's an integral part of coding.

      "...do you mean blood, sweat, and tears?"

      Yes. See Humor for a definition.

      Regards, Hippo

        This conversation is going too meta for me. :)

        --

        Edit: Added the (famous) limerick below and changed to to too too. Two Os are better than one, i guess:

        A tutor who tooted the flute
        Tried to tutor two tooters to toot;
        Said the two to the tutor,
        “Is it harder to toot, or
        To tutor two tooters to toot?”

      "...do you mean blood, sweat, and tears?"

      No. See Humor for a definition.

      Regards, Karl

      «The Crux of the Biscuit is the Apostrophe»

        Cue Foghorn Leghorn
Re: Does Humor Belong in Programming?
by Preceptor (Deacon) on Oct 05, 2015 at 13:18 UTC

    It depends. A little levity is fine. Doing so at expense of clear/readable code is not. If I have to debug some code with 'comedy' variable names I will get quite grumpy about it, for all the reasons I'd get grumpy if you just used single letters all the way through.

    But in comments (as long as you _also_ include the comments that you _need_) it's fine and great. In error/diag messages too (again, provided you're actually producing _useful_ output as well).

      This is pretty well my stance. Variable names, sub names or anything that is functional should not be comedic unless the comedic name truly represents what is being used.

      For comments, comedic things are fun to read in odd/rare circumstances, and very far edge case warnings as well (so long as the warn/error displays useful info inclusive).

      I once patched a module that had a comment such as:

      # we don't even know how why this is here, # nor how it is ever executed, Scotty

      I looked at the code after I found that a far away test on CPAN Testers was failing, and realized that this sub was being called ONLY in a test and was never used otherwise. So I fixed the test, wrote a new test, and in the sub in the patch wrote something to the effect:

      # this sub isn't ever used; beam it up, Scotty
      Also, less is more.

      -- FloydATC

      Time flies when you don't know what you're doing

Re: Does Humor Belong in Programming?
by Anonymous Monk on Oct 01, 2015 at 17:18 UTC
    Needs an option "Perl6 will be released".
Re: Does Humor Belong in Programming?
by Pope-O-Matik (Pilgrim) on Oct 01, 2015 at 17:43 UTC

    The other programmers on the team are pretty funny. They do not belong in programming.

Re: Does Humor Belong in Programming?
by ExReg (Curate) on Oct 01, 2015 at 14:08 UTC
    I thought it would be funny to vote no. Sorry, couldn't resist.
Re: Does Humor Belong in Programming?
by herveus (Parson) on Oct 01, 2015 at 15:14 UTC
    Howdy!

    Other - Cowboy Neal.

    yours,
    Michael
Re: Does Humor Belong in Programming?
by Anonymous Monk on Oct 01, 2015 at 21:39 UTC

    Does Humor Belong in Programming?

    What does that mean?

      Does Humor Belong in Programming?
      What does that mean?

      In the taxonomy of ideas, is the concept of "Humor" a subset of the concept of "Programming"?

Re: Does Humor Belong in Programming?
by stevieb (Abbot) on Oct 12, 2015 at 19:28 UTC

      YAP (Yet Another Poet).

      Regards, Karl

      «The Crux of the Biscuit is the Apostrophe»

Re: Does Humor Belong in Programming?
by shmem (Chancellor) on Oct 26, 2015 at 10:08 UTC

    Of course yes! too boring without.

    perl -le'print map{pack c,($-++?1:13)+ord}split//,ESEL'
Re: Does Humor Belong in Programming?
by gloryhack (Deacon) on Oct 29, 2015 at 20:42 UTC
    Yes, humor belongs in programming. So does profanity, dammit!
Re: Does Humor Belong in Programming?
by RobRod (Initiate) on Oct 30, 2015 at 10:28 UTC
    No, but i would miss it.

    Humor is the best way to break senseless rules. If humor belongs to programming, it would be a rule, humor couldn't break anymore.

    If i get an insight by breaking a silly rule in my mind it is humor. but if i try to force humor it tends to be boring, so i wonder about its source.

    Programming appears to be a good hunting ground - hunting bugs - experiencing humor.

View List Of Past Polls


Log In?
Username:
Password:

What's my password?
Create A New User
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (2)
As of 2018-01-21 11:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How did you see in the new year?










    Results (227 votes). Check out past polls.

    Notices?