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. The Lounge
  3. My best/worst variable name ever

My best/worst variable name ever

Scheduled Pinned Locked Moved The Lounge
question
32 Posts 14 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.
  • A Amarnath S

    Will be nice to name another variable within the same file as: listOfThreeListsOfByteArrayRowThenColumnOfOne**Un**scaledColorChannel

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

    Proposed return value for the method; an enum and an object, with the enum identifying the object. public enum Result { Yes, No, listOfThreeListsOfByteArrayRowThenColumnOfOneUnscaledColorChannel }

    Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^][](X-Clacks-Overhead: GNU Terry Pratchett)

    1 Reply Last reply
    0
    • D Dale Barnard

      I just renamed someone's identifier that was called 'data' to be more self documenting: 'listOfThreeListsOfByteArrayRowThenColumnOfOneScaledColorChannel' I should either be promoted or fired for that. I'm not sure which. Can anyone top that for self-documenting identifier names?

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

      I hate camelCase. ... and then the fight started.

      Software Zen: delete this;

      L J T realJSOPR 4 Replies Last reply
      0
      • G Gary Wheeler

        I hate camelCase. ... and then the fight started.

        Software Zen: delete this;

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

        Makes me wonder what camelCase has done to you. Do you want to talk about it?

        Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^][](X-Clacks-Overhead: GNU Terry Pratchett)

        G 1 Reply Last reply
        0
        • L Lost User

          Makes me wonder what camelCase has done to you. Do you want to talk about it?

          Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^][](X-Clacks-Overhead: GNU Terry Pratchett)

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

          Nah. It'll just accuse me of going behind its back.

          Software Zen: delete this;

          T 1 Reply Last reply
          0
          • D Dale Barnard

            I just renamed someone's identifier that was called 'data' to be more self documenting: 'listOfThreeListsOfByteArrayRowThenColumnOfOneScaledColorChannel' I should either be promoted or fired for that. I'm not sure which. Can anyone top that for self-documenting identifier names?

            Richard DeemingR Offline
            Richard DeemingR Offline
            Richard Deeming
            wrote on last edited by
            #8

            Dale Barnard wrote:

            I should either be promoted or fired for that. I'm not sure which.

            Promoted to a management position, where you can't do any more damage. :-D


            "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer

            "These people looked deep within my soul and assigned me a number based on the order in which I joined" - Homer

            J 1 Reply Last reply
            0
            • G Gary Wheeler

              I hate camelCase. ... and then the fight started.

              Software Zen: delete this;

              J Offline
              J Offline
              Jeremy Falcon
              wrote on last edited by
              #9

              Gary Wheeler wrote:

              I hate camelCase.

              And somehow I read that as I hate camelToe. It's Friday alright.

              Jeremy Falcon

              G T 2 Replies Last reply
              0
              • J Jeremy Falcon

                Gary Wheeler wrote:

                I hate camelCase.

                And somehow I read that as I hate camelToe. It's Friday alright.

                Jeremy Falcon

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

                In an odd way that works too, as I have arthritis in my big toes from 20 years of running, and that joint no longer bends beyond about 10°.

                Software Zen: delete this;

                1 Reply Last reply
                0
                • D Dale Barnard

                  I just renamed someone's identifier that was called 'data' to be more self documenting: 'listOfThreeListsOfByteArrayRowThenColumnOfOneScaledColorChannel' I should either be promoted or fired for that. I'm not sure which. Can anyone top that for self-documenting identifier names?

                  T Offline
                  T Offline
                  TheGreatAndPowerfulOz
                  wrote on last edited by
                  #11

                  ThatIsOffensiveInTheExtreme

                  Decrease the belief in God, and you increase the numbers of those who wish to play at being God by being “society’s supervisors,” who deny the existence of divine standards, but are very serious about imposing their own standards on society.-Neal A. Maxwell You must accept 1 of 2 basic premises: Either we are alone in the universe or we are not alone. Either way, the implications are staggering!-Wernher von Braun

                  1 Reply Last reply
                  0
                  • G Gary Wheeler

                    I hate camelCase. ... and then the fight started.

                    Software Zen: delete this;

                    T Offline
                    T Offline
                    TheGreatAndPowerfulOz
                    wrote on last edited by
                    #12

                    Seriously? Why? What do you do instead?

                    Decrease the belief in God, and you increase the numbers of those who wish to play at being God by being “society’s supervisors,” who deny the existence of divine standards, but are very serious about imposing their own standards on society.-Neal A. Maxwell You must accept 1 of 2 basic premises: Either we are alone in the universe or we are not alone. Either way, the implications are staggering!-Wernher von Braun

                    G realJSOPR 2 Replies Last reply
                    0
                    • G Gary Wheeler

                      Nah. It'll just accuse me of going behind its back.

                      Software Zen: delete this;

                      T Offline
                      T Offline
                      TheGreatAndPowerfulOz
                      wrote on last edited by
                      #13

                      Oooh, dirty.

                      Decrease the belief in God, and you increase the numbers of those who wish to play at being God by being “society’s supervisors,” who deny the existence of divine standards, but are very serious about imposing their own standards on society.-Neal A. Maxwell You must accept 1 of 2 basic premises: Either we are alone in the universe or we are not alone. Either way, the implications are staggering!-Wernher von Braun

                      L 1 Reply Last reply
                      0
                      • J Jeremy Falcon

                        Gary Wheeler wrote:

                        I hate camelCase.

                        And somehow I read that as I hate camelToe. It's Friday alright.

                        Jeremy Falcon

                        T Offline
                        T Offline
                        TheGreatAndPowerfulOz
                        wrote on last edited by
                        #14

                        That's ... ... sad & lonely.

                        Decrease the belief in God, and you increase the numbers of those who wish to play at being God by being “society’s supervisors,” who deny the existence of divine standards, but are very serious about imposing their own standards on society.-Neal A. Maxwell You must accept 1 of 2 basic premises: Either we are alone in the universe or we are not alone. Either way, the implications are staggering!-Wernher von Braun

                        J 1 Reply Last reply
                        0
                        • T TheGreatAndPowerfulOz

                          Seriously? Why? What do you do instead?

                          Decrease the belief in God, and you increase the numbers of those who wish to play at being God by being “society’s supervisors,” who deny the existence of divine standards, but are very serious about imposing their own standards on society.-Neal A. Maxwell You must accept 1 of 2 basic premises: Either we are alone in the universe or we are not alone. Either way, the implications are staggering!-Wernher von Braun

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

                          I use PascalCase for global scope, lower_case for local scope, private and protected members prefixed by '_'. Yes, StyleCop throws a hissy fit over my code. I don't care. camelCase doesn't provide enough visual differentiation from PascalCase for me and my middle-aged visual infirmities.

                          Software Zen: delete this;

                          P 1 Reply Last reply
                          0
                          • D Dale Barnard

                            I just renamed someone's identifier that was called 'data' to be more self documenting: 'listOfThreeListsOfByteArrayRowThenColumnOfOneScaledColorChannel' I should either be promoted or fired for that. I'm not sure which. Can anyone top that for self-documenting identifier names?

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

                            My biggest complaint about the name is that you spend over half of it replicating the type (listOfThreeListsOfByteArray), which smacks of Hungarian notation (makes the sign of the cross in your direction). The RowThenColumn part implies a matrix of some kind, and the ScaledColorChannel sounds like it actually describes the values in the matrix. Why not ScaledColorChannelMatrix and call it a day?

                            Software Zen: delete this;

                            D 1 Reply Last reply
                            0
                            • G Gary Wheeler

                              My biggest complaint about the name is that you spend over half of it replicating the type (listOfThreeListsOfByteArray), which smacks of Hungarian notation (makes the sign of the cross in your direction). The RowThenColumn part implies a matrix of some kind, and the ScaledColorChannel sounds like it actually describes the values in the matrix. Why not ScaledColorChannelMatrix and call it a day?

                              Software Zen: delete this;

                              D Offline
                              D Offline
                              Dale Barnard
                              wrote on last edited by
                              #17

                              var listOfThreeListsOfByteArrayRowThenColumnOfOneScaledColorChannel = new List<byte[,]>[3];
                              listOfThreeListsOfByteArrayRowThenColumnOfOneScaledColorChannel[0] = new List<byte[,]>();
                              listOfThreeListsOfByteArrayRowThenColumnOfOneScaledColorChannel[1] = new List<byte[,]>();
                              listOfThreeListsOfByteArrayRowThenColumnOfOneScaledColorChannel[2] = new List<byte[,]>();

                              G 1 Reply Last reply
                              0
                              • D Dale Barnard

                                var listOfThreeListsOfByteArrayRowThenColumnOfOneScaledColorChannel = new List<byte[,]>[3];
                                listOfThreeListsOfByteArrayRowThenColumnOfOneScaledColorChannel[0] = new List<byte[,]>();
                                listOfThreeListsOfByteArrayRowThenColumnOfOneScaledColorChannel[1] = new List<byte[,]>();
                                listOfThreeListsOfByteArrayRowThenColumnOfOneScaledColorChannel[2] = new List<byte[,]>();

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

                                var ScaledColorChannelMatrixListTable = new List<byte[,]>[3];
                                for (int i = 0; i < ScaledColorChannelMatrixListTable.Length; i++)
                                {
                                ScaledColorChannelMatrixListTable[i] = new List<byte[,]>();
                                }

                                do I hear banjos in the background?

                                Software Zen: delete this;

                                M 1 Reply Last reply
                                0
                                • G Gary Wheeler

                                  I hate camelCase. ... and then the fight started.

                                  Software Zen: delete this;

                                  realJSOPR Offline
                                  realJSOPR Offline
                                  realJSOP
                                  wrote on last edited by
                                  #19

                                  I suppose camelCase is better than camelToe...

                                  ".45 ACP - because shooting twice is just silly" - JSOP, 2010
                                  -----
                                  You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
                                  -----
                                  When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013

                                  T 1 Reply Last reply
                                  0
                                  • T TheGreatAndPowerfulOz

                                    Seriously? Why? What do you do instead?

                                    Decrease the belief in God, and you increase the numbers of those who wish to play at being God by being “society’s supervisors,” who deny the existence of divine standards, but are very serious about imposing their own standards on society.-Neal A. Maxwell You must accept 1 of 2 basic premises: Either we are alone in the universe or we are not alone. Either way, the implications are staggering!-Wernher von Braun

                                    realJSOPR Offline
                                    realJSOPR Offline
                                    realJSOP
                                    wrote on last edited by
                                    #20

                                    I use COWCase a lot.

                                    ".45 ACP - because shooting twice is just silly" - JSOP, 2010
                                    -----
                                    You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
                                    -----
                                    When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013

                                    P T 2 Replies Last reply
                                    0
                                    • Richard DeemingR Richard Deeming

                                      Dale Barnard wrote:

                                      I should either be promoted or fired for that. I'm not sure which.

                                      Promoted to a management position, where you can't do any more damage. :-D


                                      "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer

                                      J Offline
                                      J Offline
                                      Jorgen Andersson
                                      wrote on last edited by
                                      #21

                                      Can we please swap management? Our management is seriously destructive.

                                      Wrong is evil and must be defeated. - Jeff Ello

                                      1 Reply Last reply
                                      0
                                      • T TheGreatAndPowerfulOz

                                        That's ... ... sad & lonely.

                                        Decrease the belief in God, and you increase the numbers of those who wish to play at being God by being “society’s supervisors,” who deny the existence of divine standards, but are very serious about imposing their own standards on society.-Neal A. Maxwell You must accept 1 of 2 basic premises: Either we are alone in the universe or we are not alone. Either way, the implications are staggering!-Wernher von Braun

                                        J Offline
                                        J Offline
                                        Jeremy Falcon
                                        wrote on last edited by
                                        #22

                                        That assumption says more about you than me.

                                        Jeremy Falcon

                                        T 1 Reply Last reply
                                        0
                                        • G Gary Wheeler

                                          I use PascalCase for global scope, lower_case for local scope, private and protected members prefixed by '_'. Yes, StyleCop throws a hissy fit over my code. I don't care. camelCase doesn't provide enough visual differentiation from PascalCase for me and my middle-aged visual infirmities.

                                          Software Zen: delete this;

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

                                          Gary Wheeler wrote:

                                          StyleCop throws a hissy fit

                                          That's how you know you're doing things right. :thumbsup:

                                          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