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. Ahhhrgghhhhhh! Naming Conventions That Suck

Ahhhrgghhhhhh! Naming Conventions That Suck

Scheduled Pinned Locked Moved The Lounge
30 Posts 16 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.
  • S Offline
    S Offline
    SockPuppeteer
    wrote on last edited by
    #1

    We have a txt naming dev here at the coalface. So I am plagued with method names like AddChild2Parent and KeepUp2Date Jeez! it's one flaming character you're saving yourself! it drives me 2 distraction!

    .\\axxx

    M S J M J 7 Replies Last reply
    0
    • S SockPuppeteer

      We have a txt naming dev here at the coalface. So I am plagued with method names like AddChild2Parent and KeepUp2Date Jeez! it's one flaming character you're saving yourself! it drives me 2 distraction!

      .\\axxx

      M Offline
      M Offline
      Marc Clifton
      wrote on last edited by
      #2

      SockPuppeteer wrote:

      So I am plagued

      It seems to me that your emotions are plaguing you more. Come on, really? You actually are driven to distraction because of that? I can think of a heck of a lot worse things in code than the difference between "2" and "to." At least the names seem fairly descriptive! Marc

      Reverse Engineering Legacy Applications
      How To Think Like a Functional Programmer
      My Blog
      Computational Types in C# and F#

      P 1 Reply Last reply
      0
      • M Marc Clifton

        SockPuppeteer wrote:

        So I am plagued

        It seems to me that your emotions are plaguing you more. Come on, really? You actually are driven to distraction because of that? I can think of a heck of a lot worse things in code than the difference between "2" and "to." At least the names seem fairly descriptive! Marc

        Reverse Engineering Legacy Applications
        How To Think Like a Functional Programmer
        My Blog
        Computational Types in C# and F#

        P Offline
        P Offline
        PaulowniaK
        wrote on last edited by
        #3

        Marc Clifton wrote:

        I can think of a heck of a lot worse things in code than the difference between "2" and "to."

        In deed. I think I've ranted here before, but try reading code written by people whose use of the English language is limited... When an English-speaking person like myself try to read it you end up wanting to tear your hair out as you stumble through bad spellings, bad abbreviations, inappropriate use of vocabulary (hence the word becoming misleading and causing further confusion) and some words they just couldn't be bothered to look up the English equivalent for and left in their own language represented phonetically in alphabets. Also, it gets confusing for people that inherit masses of code when the original creator does things like: Foo() Foo1() Foo2() Foo3() or Bar() BarEx() and they don't just extend the original functions, but do something slightly more in a slightly different way. Oh the joys of programming! ;P

        Almost, but not quite, entirely unlike... me...

        S 1 Reply Last reply
        0
        • P PaulowniaK

          Marc Clifton wrote:

          I can think of a heck of a lot worse things in code than the difference between "2" and "to."

          In deed. I think I've ranted here before, but try reading code written by people whose use of the English language is limited... When an English-speaking person like myself try to read it you end up wanting to tear your hair out as you stumble through bad spellings, bad abbreviations, inappropriate use of vocabulary (hence the word becoming misleading and causing further confusion) and some words they just couldn't be bothered to look up the English equivalent for and left in their own language represented phonetically in alphabets. Also, it gets confusing for people that inherit masses of code when the original creator does things like: Foo() Foo1() Foo2() Foo3() or Bar() BarEx() and they don't just extend the original functions, but do something slightly more in a slightly different way. Oh the joys of programming! ;P

          Almost, but not quite, entirely unlike... me...

          S Offline
          S Offline
          Super Lloyd
          wrote on last edited by
          #4

          Just change the method's name, VS will refactor the code for ya, problem solved! :) It's a much more difficult problem with ginormous spaghetti code... :((

          A train station is where the train stops. A bus station is where the bus stops. On my desk, I have a work station.... _________________________________________________________ My programs never have bugs, they just develop random features.

          1 Reply Last reply
          0
          • S SockPuppeteer

            We have a txt naming dev here at the coalface. So I am plagued with method names like AddChild2Parent and KeepUp2Date Jeez! it's one flaming character you're saving yourself! it drives me 2 distraction!

            .\\axxx

            S Offline
            S Offline
            Super Lloyd
            wrote on last edited by
            #5

            Just change the method's name, VS will refactor the code for ya, problem solved! :-D It's a much more difficult problem with ginormous spaghetti code... :((

            A train station is where the train stops. A bus station is where the bus stops. On my desk, I have a work station.... _________________________________________________________ My programs never have bugs, they just develop random features.

            P G 2 Replies Last reply
            0
            • S Super Lloyd

              Just change the method's name, VS will refactor the code for ya, problem solved! :-D It's a much more difficult problem with ginormous spaghetti code... :((

              A train station is where the train stops. A bus station is where the bus stops. On my desk, I have a work station.... _________________________________________________________ My programs never have bugs, they just develop random features.

              P Offline
              P Offline
              PaulowniaK
              wrote on last edited by
              #6

              Super Lloyd wrote:

              Just change the method's name, VS will refactor the code for ya, problem solved!

              Yes, the more recent versions of VS will do that for you... :|

              Super Lloyd wrote:

              It's a much more difficult problem with ginormous spaghetti code..

              This kind of relates to the problem above. I also have this problem where a function can be as long as 1000 lines, perhaps more. Everything is so complicatedly intertwined that intellisence has long given up and a normal text search and a seasoned programmer's haunch are the only way to navigate through the mess... :~

              Almost, but not quite, entirely unlike... me...

              M 1 Reply Last reply
              0
              • S Super Lloyd

                Just change the method's name, VS will refactor the code for ya, problem solved! :-D It's a much more difficult problem with ginormous spaghetti code... :((

                A train station is where the train stops. A bus station is where the bus stops. On my desk, I have a work station.... _________________________________________________________ My programs never have bugs, they just develop random features.

                G Offline
                G Offline
                grralph1
                wrote on last edited by
                #7

                Your response forced me to look up the word 'ginormous' I was disappointed with the result as I was expecting something really different. Never heard this word before. Learn something new every day, even if it isn't ginormous or elephantine, at least it is something.

                M S 2 Replies Last reply
                0
                • P PaulowniaK

                  Super Lloyd wrote:

                  Just change the method's name, VS will refactor the code for ya, problem solved!

                  Yes, the more recent versions of VS will do that for you... :|

                  Super Lloyd wrote:

                  It's a much more difficult problem with ginormous spaghetti code..

                  This kind of relates to the problem above. I also have this problem where a function can be as long as 1000 lines, perhaps more. Everything is so complicatedly intertwined that intellisence has long given up and a normal text search and a seasoned programmer's haunch are the only way to navigate through the mess... :~

                  Almost, but not quite, entirely unlike... me...

                  M Offline
                  M Offline
                  Mark_Wallace
                  wrote on last edited by
                  #8

                  PaulowniaK wrote:

                  Yes, the more recent versions of VS will do that for you...

                  The earliest versions of VB would do that for you, which shows that, far from being a defunct, horrible language, VB was actually ahead of its time, and all the programs that our children write will be written in VB. JSOP will be so happy and proud when his favourite language finally receives the recognition it deserves.

                  I wanna be a eunuchs developer! Pass me a bread knife!

                  1 Reply Last reply
                  0
                  • S SockPuppeteer

                    We have a txt naming dev here at the coalface. So I am plagued with method names like AddChild2Parent and KeepUp2Date Jeez! it's one flaming character you're saving yourself! it drives me 2 distraction!

                    .\\axxx

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

                    If that's the worst problem you have I envy you.

                    People say nothing is impossible, but I do nothing every day.

                    1 Reply Last reply
                    0
                    • G grralph1

                      Your response forced me to look up the word 'ginormous' I was disappointed with the result as I was expecting something really different. Never heard this word before. Learn something new every day, even if it isn't ginormous or elephantine, at least it is something.

                      M Offline
                      M Offline
                      Mark_Wallace
                      wrote on last edited by
                      #10

                      It's a "fusion" (since that's the in word) of gigantic and enormous, and therefore a calculated and appropriate use of poor English for this thread, innit?

                      I wanna be a eunuchs developer! Pass me a bread knife!

                      G J H 3 Replies Last reply
                      0
                      • S SockPuppeteer

                        We have a txt naming dev here at the coalface. So I am plagued with method names like AddChild2Parent and KeepUp2Date Jeez! it's one flaming character you're saving yourself! it drives me 2 distraction!

                        .\\axxx

                        M Offline
                        M Offline
                        Mark_Wallace
                        wrote on last edited by
                        #11

                        Ax him ta fix it 4 u

                        I wanna be a eunuchs developer! Pass me a bread knife!

                        S D 2 Replies Last reply
                        0
                        • G grralph1

                          Your response forced me to look up the word 'ginormous' I was disappointed with the result as I was expecting something really different. Never heard this word before. Learn something new every day, even if it isn't ginormous or elephantine, at least it is something.

                          S Offline
                          S Offline
                          Super Lloyd
                          wrote on last edited by
                          #12

                          I mean humongous, my bad! :( you know, so gigantic it's preposterous!!!

                          A train station is where the train stops. A bus station is where the bus stops. On my desk, I have a work station.... _________________________________________________________ My programs never have bugs, they just develop random features.

                          G 1 Reply Last reply
                          0
                          • M Mark_Wallace

                            Ax him ta fix it 4 u

                            I wanna be a eunuchs developer! Pass me a bread knife!

                            S Offline
                            S Offline
                            Super Lloyd
                            wrote on last edited by
                            #13

                            exactly bro!! :laugh:

                            A train station is where the train stops. A bus station is where the bus stops. On my desk, I have a work station.... _________________________________________________________ My programs never have bugs, they just develop random features.

                            1 Reply Last reply
                            0
                            • S SockPuppeteer

                              We have a txt naming dev here at the coalface. So I am plagued with method names like AddChild2Parent and KeepUp2Date Jeez! it's one flaming character you're saving yourself! it drives me 2 distraction!

                              .\\axxx

                              J Offline
                              J Offline
                              jim lahey
                              wrote on last edited by
                              #14

                              We've got people who insist on prefixing everything with the first letter of the company we work for, "so that we know what is ours and what isn't". Namespaces are not enough it seems.

                              M 1 Reply Last reply
                              0
                              • M Mark_Wallace

                                It's a "fusion" (since that's the in word) of gigantic and enormous, and therefore a calculated and appropriate use of poor English for this thread, innit?

                                I wanna be a eunuchs developer! Pass me a bread knife!

                                G Offline
                                G Offline
                                grralph1
                                wrote on last edited by
                                #15

                                Thanks Mark for the clarification. One would think that, someone with my intelligence, would have realised this immediately. I misread it and my brain mispronouced it and I got excited about a new word. I do like fusion words though. Your clarification has cleared the whole issue. ...and made me feel a bit dumb Thanks

                                B 1 Reply Last reply
                                0
                                • S Super Lloyd

                                  I mean humongous, my bad! :( you know, so gigantic it's preposterous!!!

                                  A train station is where the train stops. A bus station is where the bus stops. On my desk, I have a work station.... _________________________________________________________ My programs never have bugs, they just develop random features.

                                  G Offline
                                  G Offline
                                  grralph1
                                  wrote on last edited by
                                  #16

                                  It wasn't bad. It was a great description and I have a new word to add to my vocab...

                                  1 Reply Last reply
                                  0
                                  • M Mark_Wallace

                                    Ax him ta fix it 4 u

                                    I wanna be a eunuchs developer! Pass me a bread knife!

                                    D Offline
                                    D Offline
                                    dan sh
                                    wrote on last edited by
                                    #17

                                    Mark Wallace wrote:

                                    Ax him ta fix it 4 u

                                    FTFY

                                    "Bastards encourage idiots to use Oracle Forms, Web Forms, Access and a number of other dinky web publishing tolls.", Mycroft Holmes[^]

                                    R 1 Reply Last reply
                                    0
                                    • S SockPuppeteer

                                      We have a txt naming dev here at the coalface. So I am plagued with method names like AddChild2Parent and KeepUp2Date Jeez! it's one flaming character you're saving yourself! it drives me 2 distraction!

                                      .\\axxx

                                      A Offline
                                      A Offline
                                      Abhinav S
                                      wrote on last edited by
                                      #18

                                      SockPuppeteer wrote:

                                      Ahhhrgghhhhhh

                                      That sounds like a good variable name.

                                      WP7.5 Apps - XKCD | Calvin | SMBC | Sound Meter | Speed Dial

                                      Richard DeemingR 1 Reply Last reply
                                      0
                                      • D dan sh

                                        Mark Wallace wrote:

                                        Ax him ta fix it 4 u

                                        FTFY

                                        "Bastards encourage idiots to use Oracle Forms, Web Forms, Access and a number of other dinky web publishing tolls.", Mycroft Holmes[^]

                                        R Offline
                                        R Offline
                                        Rage
                                        wrote on last edited by
                                        #19

                                        This is brilliant on many levels.

                                        ~RaGE();

                                        I think words like 'destiny' are a way of trying to find order where none exists. - Christian Graus Do not feed the troll ! - Common proverb

                                        M 1 Reply Last reply
                                        0
                                        • G grralph1

                                          Thanks Mark for the clarification. One would think that, someone with my intelligence, would have realised this immediately. I misread it and my brain mispronouced it and I got excited about a new word. I do like fusion words though. Your clarification has cleared the whole issue. ...and made me feel a bit dumb Thanks

                                          B Offline
                                          B Offline
                                          Brady Kelly
                                          wrote on last edited by
                                          #20

                                          Guys, there is a proper name for 'fusion words'. Ginormous is a portmanteau.

                                          M G 2 Replies 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