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. Apparently there is no limit to naming conventions for method

Apparently there is no limit to naming conventions for method

Scheduled Pinned Locked Moved The Weird and The Wonderful
36 Posts 28 Posters 0 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.
  • T Offline
    T Offline
    thedavejay
    wrote on last edited by
    #1

    public void SettingDeviceList_ReAddingAPreviouslyDeletedDevice_MustAddDevicesToRuleDevicesWithIsDeletedFalseAndIsIncludedTrue()
    {
    return;
    }

    I feel like crying. X|

    OriginalGriffO C B E K 16 Replies Last reply
    0
    • T thedavejay

      public void SettingDeviceList_ReAddingAPreviouslyDeletedDevice_MustAddDevicesToRuleDevicesWithIsDeletedFalseAndIsIncludedTrue()
      {
      return;
      }

      I feel like crying. X|

      OriginalGriffO Offline
      OriginalGriffO Offline
      OriginalGriff
      wrote on last edited by
      #2

      It's a bit of an anti-climax when you actually get to the code, isn't it? :-D

      Ideological Purity is no substitute for being able to stick your thumb down a pipe to stop the water

      "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
      "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

      T 1 Reply Last reply
      0
      • T thedavejay

        public void SettingDeviceList_ReAddingAPreviouslyDeletedDevice_MustAddDevicesToRuleDevicesWithIsDeletedFalseAndIsIncludedTrue()
        {
        return;
        }

        I feel like crying. X|

        C Offline
        C Offline
        Chris Meech
        wrote on last edited by
        #3

        All it's missing is an inline. :)

        Chris Meech I am Canadian. [heard in a local bar] In theory there is no difference between theory and practice. In practice there is. [Yogi Berra] posting about Crystal Reports here is like discussing gay marriage on a catholic church’s website.[Nishant Sivakumar]

        B 1 Reply Last reply
        0
        • OriginalGriffO OriginalGriff

          It's a bit of an anti-climax when you actually get to the code, isn't it? :-D

          Ideological Purity is no substitute for being able to stick your thumb down a pipe to stop the water

          T Offline
          T Offline
          thedavejay
          wrote on last edited by
          #4

          Yeah, its like climbing Rapunzel's tower to find out that she is actually a he.

          G W 2 Replies Last reply
          0
          • T thedavejay

            public void SettingDeviceList_ReAddingAPreviouslyDeletedDevice_MustAddDevicesToRuleDevicesWithIsDeletedFalseAndIsIncludedTrue()
            {
            return;
            }

            I feel like crying. X|

            B Offline
            B Offline
            Brisingr Aerowing
            wrote on last edited by
            #5

            :(( :wtf: :(( :wtf: :(( :wtf: :(( Is that even called somewhere?!??! On thinking, it might be a stub that never got filled in for some reason, but the name is absolutely unreasonably ridiculously insanely crazy!

            public class SysAdmin : Employee
            {

             public override void DoWork(IWorkItem workItem)
             {
                  if (workItem.User.Type == UserType.NoLearn){
                     throw new NoIWillNotFixYourComputerException(new Luser(workItem.User));
                  }else{
                       base.DoWork(workItem);
                  }
             }
            

            }

            A 1 Reply Last reply
            0
            • C Chris Meech

              All it's missing is an inline. :)

              Chris Meech I am Canadian. [heard in a local bar] In theory there is no difference between theory and practice. In practice there is. [Yogi Berra] posting about Crystal Reports here is like discussing gay marriage on a catholic church’s website.[Nishant Sivakumar]

              B Offline
              B Offline
              BobJanova
              wrote on last edited by
              #6

              Well, it will be inlined for sure by the compiler in release mode.

              1 Reply Last reply
              0
              • T thedavejay

                public void SettingDeviceList_ReAddingAPreviouslyDeletedDevice_MustAddDevicesToRuleDevicesWithIsDeletedFalseAndIsIncludedTrue()
                {
                return;
                }

                I feel like crying. X|

                E Offline
                E Offline
                egenis
                wrote on last edited by
                #7

                Look on the bright side - it's broken up into easily manageable chunks by _'s Imagine it was not...

                K 1 Reply Last reply
                0
                • T thedavejay

                  public void SettingDeviceList_ReAddingAPreviouslyDeletedDevice_MustAddDevicesToRuleDevicesWithIsDeletedFalseAndIsIncludedTrue()
                  {
                  return;
                  }

                  I feel like crying. X|

                  K Offline
                  K Offline
                  kdgupta87
                  wrote on last edited by
                  #8

                  that person can make us pseudo code IDE, SDK everything, he just need some little motivation

                  1 Reply Last reply
                  0
                  • T thedavejay

                    public void SettingDeviceList_ReAddingAPreviouslyDeletedDevice_MustAddDevicesToRuleDevicesWithIsDeletedFalseAndIsIncludedTrue()
                    {
                    return;
                    }

                    I feel like crying. X|

                    Y Offline
                    Y Offline
                    YvesDaoust
                    wrote on last edited by
                    #9

                    Another bright side: you can harmlessly bypass the call :) Function name decoration can also create nice monsters (you can face them when wrapping DLLs), but this is another story.

                    1 Reply Last reply
                    0
                    • T thedavejay

                      public void SettingDeviceList_ReAddingAPreviouslyDeletedDevice_MustAddDevicesToRuleDevicesWithIsDeletedFalseAndIsIncludedTrue()
                      {
                      return;
                      }

                      I feel like crying. X|

                      A Offline
                      A Offline
                      Adam Tibi
                      wrote on last edited by
                      #10

                      This looks to me like a unit testing attempt, similar to the recommendations in "The Art of Unit Testing" : featureundertest_when_expectation Usually these methods are long, but they are supposed to be read like a sentence.

                      Make it simple, as simple as possible, but not simpler.

                      L 1 Reply Last reply
                      0
                      • T thedavejay

                        public void SettingDeviceList_ReAddingAPreviouslyDeletedDevice_MustAddDevicesToRuleDevicesWithIsDeletedFalseAndIsIncludedTrue()
                        {
                        return;
                        }

                        I feel like crying. X|

                        M Offline
                        M Offline
                        Member 2493768
                        wrote on last edited by
                        #11

                        How about this test method: AnalyseSchoolHistoryForConflicts_SchoolHistoryHasStartDateAndEndDateAndIncomingItemStartDateIsInbetween_DatesOverlapWarningAdded() This is a unit test method. It says what it's testing, the scenario and the expected outcome.

                        1 Reply Last reply
                        0
                        • T thedavejay

                          Yeah, its like climbing Rapunzel's tower to find out that she is actually a he.

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

                          In this case, she is actually a he, and he's an inflatable doll.

                          Software Zen: delete this;

                          B 1 Reply Last reply
                          0
                          • A Adam Tibi

                            This looks to me like a unit testing attempt, similar to the recommendations in "The Art of Unit Testing" : featureundertest_when_expectation Usually these methods are long, but they are supposed to be read like a sentence.

                            Make it simple, as simple as possible, but not simpler.

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

                            Nice ans well, but I expect some rcommendation any time now that will tell us to wear feathers on our heads and chant while dancing around the computer.

                            At least artificial intelligence already is superior to natural stupidity

                            K 1 Reply Last reply
                            0
                            • T thedavejay

                              public void SettingDeviceList_ReAddingAPreviouslyDeletedDevice_MustAddDevicesToRuleDevicesWithIsDeletedFalseAndIsIncludedTrue()
                              {
                              return;
                              }

                              I feel like crying. X|

                              R Offline
                              R Offline
                              R_L_H
                              wrote on last edited by
                              #14

                              You guys have obviously never written any objective C. The following method signature (without defined parameter names) is a legit initializer method from the Apple code base for the NSBitmapImageRep[^][] object. God only knows what some users have made.

                              initWithBitmapDataPlanes:pixelsWide:pixelsHigh:bitsPerSample:samplesPerPixel:hasAlpha:isPlanar:colorSpaceName:bitmapFormat:bytesPerRow:bitsPerPixel:

                              M 1 Reply Last reply
                              0
                              • G Gary Wheeler

                                In this case, she is actually a he, and he's an inflatable doll.

                                Software Zen: delete this;

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

                                :confused: :wtf: X| :laugh:

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

                                1 Reply Last reply
                                0
                                • T thedavejay

                                  public void SettingDeviceList_ReAddingAPreviouslyDeletedDevice_MustAddDevicesToRuleDevicesWithIsDeletedFalseAndIsIncludedTrue()
                                  {
                                  return;
                                  }

                                  I feel like crying. X|

                                  M Offline
                                  M Offline
                                  Michael Kingsford Gray
                                  wrote on last edited by
                                  #16

                                  What is actually so bad about this? The length only? If yes, then WTF? You are kvetching about length? Why? If not, then fill it in here: __________________________

                                  B K 2 Replies Last reply
                                  0
                                  • M Michael Kingsford Gray

                                    What is actually so bad about this? The length only? If yes, then WTF? You are kvetching about length? Why? If not, then fill it in here: __________________________

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

                                    The length is a WTF because it makes it unreadable.

                                    M 1 Reply Last reply
                                    0
                                    • B BobJanova

                                      The length is a WTF because it makes it unreadable.

                                      M Offline
                                      M Offline
                                      Michael Kingsford Gray
                                      wrote on last edited by
                                      #18

                                      Eh? Unreadable in what sense? I can read quite clearly, as well as understand the intent. Long names are inherently self-documenting. I sincerely do NOT understand your response. To me, tersely abbreviated names are not only unreadable, but quite unnecessary in this day-and-age of auto-completion.

                                      L B B A 4 Replies Last reply
                                      0
                                      • T thedavejay

                                        public void SettingDeviceList_ReAddingAPreviouslyDeletedDevice_MustAddDevicesToRuleDevicesWithIsDeletedFalseAndIsIncludedTrue()
                                        {
                                        return;
                                        }

                                        I feel like crying. X|

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

                                        I've used support software from a certain hardware manufacturer. I think their software was written by an intern. All of the names are of the form:

                                        #define ACR1_ACR2_ACR3_..._ACRN 0x........

                                        where each ACR_i_ is a three or four letter acronym for a hardware signal or state. Some of the names are well over 100 characters long, and completely unreadable.

                                        Software Zen: delete this;

                                        1 Reply Last reply
                                        0
                                        • M Michael Kingsford Gray

                                          Eh? Unreadable in what sense? I can read quite clearly, as well as understand the intent. Long names are inherently self-documenting. I sincerely do NOT understand your response. To me, tersely abbreviated names are not only unreadable, but quite unnecessary in this day-and-age of auto-completion.

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

                                          Considering the most common coding convention argues for 80-character lines, and given that only the method name contains 113 characters I would say yes, it is very unreadable.

                                          Saludos!! ____Juan

                                          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