Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Other Discussions
  3. The Weird and The Wonderful
  4. Profanity in code

Profanity in code

Scheduled Pinned Locked Moved The Weird and The Wonderful
csharp
36 Posts 27 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Brian C HartB Offline
    Brian C HartB Offline
    Brian C Hart
    wrote on last edited by
    #1

    So I think the guy before me wanted to spell the word 'Assigned' in his C# method name but ended up saying

    public int UpdateReasonNotAssgiggedFlag(IEnumerable downtimes)
    {
    // ...
    }

    Excuse the profanity, but I wonder what it feels like to get "ass-gigged." Anyway, I corrected the "misspelling..."

    Sincerely Yours, Brian Hart

    R C G R R 14 Replies Last reply
    0
    • Brian C HartB Brian C Hart

      So I think the guy before me wanted to spell the word 'Assigned' in his C# method name but ended up saying

      public int UpdateReasonNotAssgiggedFlag(IEnumerable downtimes)
      {
      // ...
      }

      Excuse the profanity, but I wonder what it feels like to get "ass-gigged." Anyway, I corrected the "misspelling..."

      Sincerely Yours, Brian Hart

      R Offline
      R Offline
      RCoate
      wrote on last edited by
      #2

      Sounds like a reporting method for use in a prison web service.

      If (DropSoap && !A##Gi##ed){
      Update....
      }

      (please accept my appologies too - Just couldn't resist). :-O

      A K 2 Replies Last reply
      0
      • R RCoate

        Sounds like a reporting method for use in a prison web service.

        If (DropSoap && !A##Gi##ed){
        Update....
        }

        (please accept my appologies too - Just couldn't resist). :-O

        A Offline
        A Offline
        AspDotNetDev
        wrote on last edited by
        #3

        So that's why they call it the "soapbox"...

        Thou mewling ill-breeding pignut!

        1 Reply Last reply
        0
        • R RCoate

          Sounds like a reporting method for use in a prison web service.

          If (DropSoap && !A##Gi##ed){
          Update....
          }

          (please accept my appologies too - Just couldn't resist). :-O

          K Offline
          K Offline
          krumia
          wrote on last edited by
          #4

          Quote:

          A##Gi##ed

          Is that a valid identifier?

          J R 2 Replies Last reply
          0
          • Brian C HartB Brian C Hart

            So I think the guy before me wanted to spell the word 'Assigned' in his C# method name but ended up saying

            public int UpdateReasonNotAssgiggedFlag(IEnumerable downtimes)
            {
            // ...
            }

            Excuse the profanity, but I wonder what it feels like to get "ass-gigged." Anyway, I corrected the "misspelling..."

            Sincerely Yours, Brian Hart

            C Offline
            C Offline
            cmger
            wrote on last edited by
            #5

            I didn't even see it the first time. If you hadn't metioned I might not have noticed. However, now that I do, it is quite funny!

            M 1 Reply Last reply
            0
            • Brian C HartB Brian C Hart

              So I think the guy before me wanted to spell the word 'Assigned' in his C# method name but ended up saying

              public int UpdateReasonNotAssgiggedFlag(IEnumerable downtimes)
              {
              // ...
              }

              Excuse the profanity, but I wonder what it feels like to get "ass-gigged." Anyway, I corrected the "misspelling..."

              Sincerely Yours, Brian Hart

              G Offline
              G Offline
              Gary Wheeler
              wrote on last edited by
              #6

              I've never cursed in my executable code, but I have in comments a number of times.

              Software Zen: delete this;

              F R L J 4 Replies Last reply
              0
              • G Gary Wheeler

                I've never cursed in my executable code, but I have in comments a number of times.

                Software Zen: delete this;

                F Offline
                F Offline
                Florin Jurcovici
                wrote on last edited by
                #7

                Gary Wheeler wrote:

                I've never cursed in my executable code, but I have in comments a number of times.

                Which is another good reason not to write comments.

                G 1 Reply Last reply
                0
                • F Florin Jurcovici

                  Gary Wheeler wrote:

                  I've never cursed in my executable code, but I have in comments a number of times.

                  Which is another good reason not to write comments.

                  G Offline
                  G Offline
                  Gary Wheeler
                  wrote on last edited by
                  #8

                  In the cases I recall, my cursing was an accurate technical description of the situation I was addressing. The point of a comment is to describe what your code cannot. If my code has to do something that looks unnecessary or stupid because someone else is an idiot, you bet damn Skippy I'm going to document it. If my language in the comment is a little 'colorful', it's because the circumstances were so outrageous it was warranted.

                  Software Zen: delete this;

                  C F 2 Replies Last reply
                  0
                  • G Gary Wheeler

                    In the cases I recall, my cursing was an accurate technical description of the situation I was addressing. The point of a comment is to describe what your code cannot. If my code has to do something that looks unnecessary or stupid because someone else is an idiot, you bet damn Skippy I'm going to document it. If my language in the comment is a little 'colorful', it's because the circumstances were so outrageous it was warranted.

                    Software Zen: delete this;

                    C Offline
                    C Offline
                    Clodetta del Mar
                    wrote on last edited by
                    #9

                    A few years ago I was so upset because of a problem that my variable declaration was string fick = "dich"; which is german for string f*** = "you"; unfortunately I forgot to change that back before checking in... o_O thank goodness my department chief had a lot of humor; there were no further consequencies... Lessons learned: Curse loud, not in source! :-D

                    F 1 Reply Last reply
                    0
                    • G Gary Wheeler

                      In the cases I recall, my cursing was an accurate technical description of the situation I was addressing. The point of a comment is to describe what your code cannot. If my code has to do something that looks unnecessary or stupid because someone else is an idiot, you bet damn Skippy I'm going to document it. If my language in the comment is a little 'colorful', it's because the circumstances were so outrageous it was warranted.

                      Software Zen: delete this;

                      F Offline
                      F Offline
                      Florin Jurcovici
                      wrote on last edited by
                      #10

                      Gary Wheeler wrote:

                      The point of a comment is to describe what your code cannot.

                      Agree, that's IMO the only justifiable cause for a comment. However, IME, such situations are rare, and can almost always be avoided by rephrasing your code.

                      G 1 Reply Last reply
                      0
                      • F Florin Jurcovici

                        Gary Wheeler wrote:

                        The point of a comment is to describe what your code cannot.

                        Agree, that's IMO the only justifiable cause for a comment. However, IME, such situations are rare, and can almost always be avoided by rephrasing your code.

                        G Offline
                        G Offline
                        Gary Wheeler
                        wrote on last edited by
                        #11

                        Hmm. My environment is process control (we make commercial ink-jet printing systems), where we manage a lot of diverse hardware. The API's we use often bear little resemblance to the actions taken by the machine. Hence, we document. We document a lot.

                        Software Zen: delete this;

                        1 Reply Last reply
                        0
                        • G Gary Wheeler

                          I've never cursed in my executable code, but I have in comments a number of times.

                          Software Zen: delete this;

                          R Offline
                          R Offline
                          Richard Ross Langley
                          wrote on last edited by
                          #12

                          The trailblazing operating system MCP was approx 250k lines of Espol, a high-level language based on Algol with extra instructions like Halt and Heyu. Multi-processor, virtual memory, open source - this was around 40 years ago! Anyway, it had a process creation function called motherforker(); when executives realised the meaning of open source it was renamed to anabolism().

                          -- Richard Ross-Langley

                          G 1 Reply Last reply
                          0
                          • R Richard Ross Langley

                            The trailblazing operating system MCP was approx 250k lines of Espol, a high-level language based on Algol with extra instructions like Halt and Heyu. Multi-processor, virtual memory, open source - this was around 40 years ago! Anyway, it had a process creation function called motherforker(); when executives realised the meaning of open source it was renamed to anabolism().

                            -- Richard Ross-Langley

                            G Offline
                            G Offline
                            Gary Wheeler
                            wrote on last edited by
                            #13

                            :laugh:

                            Software Zen: delete this;

                            1 Reply Last reply
                            0
                            • G Gary Wheeler

                              I've never cursed in my executable code, but I have in comments a number of times.

                              Software Zen: delete this;

                              L Offline
                              L Offline
                              Lost User
                              wrote on last edited by
                              #14

                              Gary Wheeler wrote:

                              I've never cursed in my executable code

                              Not even a wtf variable?

                              Computers have been intelligent for a long time now. It just so happens that the program writers are about as effective as a room full of monkeys trying to crank out a copy of Hamlet.

                              B H F 3 Replies Last reply
                              0
                              • Brian C HartB Brian C Hart

                                So I think the guy before me wanted to spell the word 'Assigned' in his C# method name but ended up saying

                                public int UpdateReasonNotAssgiggedFlag(IEnumerable downtimes)
                                {
                                // ...
                                }

                                Excuse the profanity, but I wonder what it feels like to get "ass-gigged." Anyway, I corrected the "misspelling..."

                                Sincerely Yours, Brian Hart

                                R Offline
                                R Offline
                                RafagaX
                                wrote on last edited by
                                #15

                                Probably it had to deal with legacy undocumented code... :)

                                CEO at: - Rafaga Systems - Para Facturas - Modern Components for the moment...

                                1 Reply Last reply
                                0
                                • C cmger

                                  I didn't even see it the first time. If you hadn't metioned I might not have noticed. However, now that I do, it is quite funny!

                                  M Offline
                                  M Offline
                                  MyCodeWorks
                                  wrote on last edited by
                                  #16

                                  Its amazing how the human brain fills in what we think it should be when reading - I missed it the first time also.

                                  1 Reply Last reply
                                  0
                                  • L Lost User

                                    Gary Wheeler wrote:

                                    I've never cursed in my executable code

                                    Not even a wtf variable?

                                    Computers have been intelligent for a long time now. It just so happens that the program writers are about as effective as a room full of monkeys trying to crank out a copy of Hamlet.

                                    B Offline
                                    B Offline
                                    BillW33
                                    wrote on last edited by
                                    #17

                                    It is safe to use profanity in a variable name, as long as it won’t ever be seen by someone who would find it objectionable. However, it is never safe to put any questionable content into a display string. Even though you have every intention of deleting the bad words, they can still make it into production. :sigh:

                                    Just because the code works, it doesn't mean that it is good code.

                                    1 Reply Last reply
                                    0
                                    • Brian C HartB Brian C Hart

                                      So I think the guy before me wanted to spell the word 'Assigned' in his C# method name but ended up saying

                                      public int UpdateReasonNotAssgiggedFlag(IEnumerable downtimes)
                                      {
                                      // ...
                                      }

                                      Excuse the profanity, but I wonder what it feels like to get "ass-gigged." Anyway, I corrected the "misspelling..."

                                      Sincerely Yours, Brian Hart

                                      R Offline
                                      R Offline
                                      Ralph Little
                                      wrote on last edited by
                                      #18

                                      Although I have mentioned it before in another posting, I have seen the word "FUKU" used as a protocol identifier.

                                      1 Reply Last reply
                                      0
                                      • L Lost User

                                        Gary Wheeler wrote:

                                        I've never cursed in my executable code

                                        Not even a wtf variable?

                                        Computers have been intelligent for a long time now. It just so happens that the program writers are about as effective as a room full of monkeys trying to crank out a copy of Hamlet.

                                        H Offline
                                        H Offline
                                        hvanzyll
                                        wrote on last edited by
                                        #19

                                        I use WTF functions all the time in debugging... WTF = WriteToFile(...) I get a kick out of it when someone sees it :) but it is a valid acronym

                                        L 1 Reply Last reply
                                        0
                                        • H hvanzyll

                                          I use WTF functions all the time in debugging... WTF = WriteToFile(...) I get a kick out of it when someone sees it :) but it is a valid acronym

                                          L Offline
                                          L Offline
                                          Lost User
                                          wrote on last edited by
                                          #20

                                          Sure sure.. thats what you claimed after your file writing abstraction finally was working and went straight to production ;)

                                          Computers have been intelligent for a long time now. It just so happens that the program writers are about as effective as a room full of monkeys trying to crank out a copy of Hamlet.

                                          1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • World
                                          • Users
                                          • Groups