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.
  • A AspDotNetDev

    In college, did you title your essays using the entire contents of the essays, or did you use something shorter? Longer variables take longer for humans to read, they can lead to extra horizontal scrolling (the Devil!), they take longer to type, and they are not necessary.

    INSWSAEJETGTMA...

    Im_Not_Saying_We_Should_Abbreviate_Excessively_Just_Enough_To_Get_The_Meaning_Across...

    // If you want to explain something more, put it in a comment above the variable declaration so it doesn't follow the variable around.
    abbreviateAppropriately...

    Thou mewling ill-breeding pignut!

    P Offline
    P Offline
    PIEBALDconsult
    wrote on last edited by
    #26

    /** <summary>That should go here.</summary> */
    [Description("Or perhaps here.")]
    abbreviateAppropriately...

    so it does follow the method around and is more localizable.

    1 Reply Last reply
    0
    • T thedavejay

      public void SettingDeviceList_ReAddingAPreviouslyDeletedDevice_MustAddDevicesToRuleDevicesWithIsDeletedFalseAndIsIncludedTrue()
      {
      return;
      }

      I feel like crying. X|

      M Offline
      M Offline
      musicdev
      wrote on last edited by
      #27

      Wow. Hurts just looking at it.

      1 Reply Last reply
      0
      • T thedavejay

        public void SettingDeviceList_ReAddingAPreviouslyDeletedDevice_MustAddDevicesToRuleDevicesWithIsDeletedFalseAndIsIncludedTrue()
        {
        return;
        }

        I feel like crying. X|

        M Offline
        M Offline
        Mohibur Rashid
        wrote on last edited by
        #28

        I thought I am the naming jerk :laugh:

        1 Reply Last reply
        0
        • E egenis

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

          K Offline
          K Offline
          KP Lee
          wrote on last edited by
          #29

          egenis wrote:

          Imagine it was not...

          Using all lowercase.

          B 1 Reply Last reply
          0
          • L Lost User

            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 Offline
            K Offline
            KP Lee
            wrote on last edited by
            #30

            The chant would be "Owe waa taw goo sigh M"? (Start slowly, pick up speed, enlightenment eventually comes.)

            1 Reply 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: __________________________

              K Offline
              K Offline
              Keith Barrow
              wrote on last edited by
              #31

              SettingDeviceList_ReAddingAPreviouslyDeletedDevice_MustAddDevicesToRuleDevicesWithIsDeletedFalseAndIsIncludedTrue You genuiely think this is readable? I got bored half way through, though it is 1 am where I am.

              Michael K Gray wrote:

              If not, then fill it in here:

              Well in probability this is several methods and attributes:

              public void ReAddRequiredDeletedDevice()
              {
              //OK this if is a punt, but if gives the idea
              if(!Device.IsDeleted && Device.IsIncluded)
              {
              //Add or whatever
              }
              }

              public void SetDeviceList()
              {
              ReAddRequiredDeletedDevice();
              return; //Hey the one useful line of code from the OP!
              }

              Sort of a cross between Lawrence of Arabia and Dilbert.[^]
              -Or-
              A Dead ringer for Kate Winslett[^]

              1 Reply Last reply
              0
              • T thedavejay

                public void SettingDeviceList_ReAddingAPreviouslyDeletedDevice_MustAddDevicesToRuleDevicesWithIsDeletedFalseAndIsIncludedTrue()
                {
                return;
                }

                I feel like crying. X|

                R Offline
                R Offline
                Reza Ahmadi
                wrote on last edited by
                #32

                That is not real! I can't believe

                1 Reply Last reply
                0
                • B Brisingr Aerowing

                  :(( :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 Offline
                  A Offline
                  Alberto Bar Noy
                  wrote on last edited by
                  #33

                  Zac Greve wrote:

                  absolutely unreasonably ridiculously insanely crazy

                  private void absolutely_unreasonably_ridiculously_insanely_crazy()
                  {
                  return;
                  }

                  FTFY

                  Alberto Bar-Noy --------------- “The city’s central computer told you? R2D2, you know better than to trust a strange computer!” (C3PO)

                  1 Reply Last reply
                  0
                  • T thedavejay

                    public void SettingDeviceList_ReAddingAPreviouslyDeletedDevice_MustAddDevicesToRuleDevicesWithIsDeletedFalseAndIsIncludedTrue()
                    {
                    return;
                    }

                    I feel like crying. X|

                    A Offline
                    A Offline
                    ARopo
                    wrote on last edited by
                    #34

                    I remember some years ago seeing this from one developer

                    void CommunicationsBlockScheduler::PerformScheduleAndExecuteOfCommunicationBlocksOnAProportialAndPriorityBasis(..)

                    And another developer on the same team took the oposite approach With gems like this:

                    void rssr()

                    This was replicate spread sheet rows

                    1 Reply Last reply
                    0
                    • T thedavejay

                      public void SettingDeviceList_ReAddingAPreviouslyDeletedDevice_MustAddDevicesToRuleDevicesWithIsDeletedFalseAndIsIncludedTrue()
                      {
                      return;
                      }

                      I feel like crying. X|

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

                      I feel like laughing my arse off :D That's what you do when you: a) don't know how to use an IDE b) don't know what OOP stands for In particular, things like this, among others, were at the origin of OOP creation. Back in the seventies, structured programming hit a wall. Among other things, when your C program grew to 70 KLOCs or so, it seems, you ran out of reasonable identifiers. OOP, providing encapsulation and nice mechanisms to avoid global/public data, got past this issue.

                      1 Reply Last reply
                      0
                      • K KP Lee

                        egenis wrote:

                        Imagine it was not...

                        Using all lowercase.

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

                        In several languages.

                        Bill Gates is a very rich man today... and do you want to know why? The answer is one word: versions. Dave Barry Read more at [BrainyQuote](http://www.brainyquote.com/quotes/topics topic_technology.html#yAfSEbrfumitrteO.99)[^]

                        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