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. A question about naming

A question about naming

Scheduled Pinned Locked Moved The Lounge
questionhtmlcom
30 Posts 21 Posters 2 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.
  • J Offline
    J Offline
    Jorgen Andersson
    wrote on last edited by
    #1

    If your application/library/class/function has developed out of scope and can no longer be considered having the right name, when is it ok to rename it?

    Wrong is evil and must be defeated. - Jeff Ello[^]

    F _ B M A 16 Replies Last reply
    0
    • J Jorgen Andersson

      If your application/library/class/function has developed out of scope and can no longer be considered having the right name, when is it ok to rename it?

      Wrong is evil and must be defeated. - Jeff Ello[^]

      F Offline
      F Offline
      Forogar
      wrote on last edited by
      #2

      Anytime you think the name is wrong or misleading you should change it to something more obscure. ;)

      - I would love to change the world, but they won’t give me the source code.

      1 Reply Last reply
      0
      • J Jorgen Andersson

        If your application/library/class/function has developed out of scope and can no longer be considered having the right name, when is it ok to rename it?

        Wrong is evil and must be defeated. - Jeff Ello[^]

        _ Offline
        _ Offline
        _Damian S_
        wrote on last edited by
        #3

        Rename it, but leave a wrapper sitting there that calls the newly renamed function with the old name, in case someone is still using the old name. Remove the old name from documentation. ;-)

        Quad skating his way through the world since the early 80's... Booger Mobile - My bright green 1964 Ford Falcon - check out the blog here!! | If you feel generous - make a donation to Camp Quality!!

        N G 2 Replies Last reply
        0
        • J Jorgen Andersson

          If your application/library/class/function has developed out of scope and can no longer be considered having the right name, when is it ok to rename it?

          Wrong is evil and must be defeated. - Jeff Ello[^]

          B Offline
          B Offline
          BillWoodruff
          wrote on last edited by
          #4

          Hi Jorgen, I think to attempt a meaningful response to that issue requires specific knowledge of the actual context, the nature of the application, the number of programmers working on the application, its users, etc. For example: is the application extensible so that third-party developers writing plug-ins for it might somehow be affected by any changes you make ? A fancy way of saying: "I can't generalize" ?

          « There is only one difference between a madman and me. The madman thinks he is sane. I know I am mad. » Salvador Dali

          J 1 Reply Last reply
          0
          • J Jorgen Andersson

            If your application/library/class/function has developed out of scope and can no longer be considered having the right name, when is it ok to rename it?

            Wrong is evil and must be defeated. - Jeff Ello[^]

            M Offline
            M Offline
            Mycroft Holmes
            wrote on last edited by
            #5

            I get this all the time, we get a spec (verbal discussion) I attempt to get a project name/description from the business, start building, name the database, create the projects. And management decides to change the name of the project. It is a judgement call as to the cost of re-factoring (Bill's view) and the long term impact on support. It can be confusing for the support team when the UI naming and the supporting infrastructure does not match.

            Never underestimate the power of human stupidity RAH

            J 1 Reply Last reply
            0
            • J Jorgen Andersson

              If your application/library/class/function has developed out of scope and can no longer be considered having the right name, when is it ok to rename it?

              Wrong is evil and must be defeated. - Jeff Ello[^]

              A Offline
              A Offline
              Andy Brummer
              wrote on last edited by
              #6

              When it is easy, or will end up causing too much confusion later on. Sorry, my answer is as vague as your question.

              Curvature of the Mind now with 3D

              1 Reply Last reply
              0
              • J Jorgen Andersson

                If your application/library/class/function has developed out of scope and can no longer be considered having the right name, when is it ok to rename it?

                Wrong is evil and must be defeated. - Jeff Ello[^]

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

                Jörgen Andersson wrote:

                when is it ok to rename it

                a) Wednesday b) The last day of your employment c) Never d) All of the above

                PooperPig - Coming Soon

                1 Reply Last reply
                0
                • J Jorgen Andersson

                  If your application/library/class/function has developed out of scope and can no longer be considered having the right name, when is it ok to rename it?

                  Wrong is evil and must be defeated. - Jeff Ello[^]

                  V Offline
                  V Offline
                  virang_21
                  wrote on last edited by
                  #8

                  [Obsolete("This method is older than Yoda. We have new shiny one with lightsaber")]
                  public void OneThousnadYerOldMethod()
                  {
                  NewShinyOne();
                  }

                  public void NewShinyOne()
                  {

                  }

                  Zen and the art of software maintenance : rm -rf * Maths is like love : a simple idea but it can get complicated.

                  1 Reply Last reply
                  0
                  • J Jorgen Andersson

                    If your application/library/class/function has developed out of scope and can no longer be considered having the right name, when is it ok to rename it?

                    Wrong is evil and must be defeated. - Jeff Ello[^]

                    C Offline
                    C Offline
                    Chris Maunder
                    wrote on last edited by
                    #9

                    Jörgen Andersson wrote:

                    If your application/library/class/function has developed out of scope and can no longer be considered having the right name, when is it ok to rename it?

                    a. As soon as it's out of scope and can no longer be considered having the right name, and b. You can find a poor slob to do the code renaming, refactoring, updating of tables, updating of docs, rerouting of any old URLs that point to that name, corrections and redistribution of written material, changes to DNS, server naming, jobs and schedules, Unit tests and test data, and all those coffee cups with the old name on them.

                    cheers Chris Maunder

                    J N 2 Replies Last reply
                    0
                    • J Jorgen Andersson

                      If your application/library/class/function has developed out of scope and can no longer be considered having the right name, when is it ok to rename it?

                      Wrong is evil and must be defeated. - Jeff Ello[^]

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

                      I don't know about library, but if it's a class, never, you simply shouldn't if it used across several systems. You can extend it by sub-classsing and giving the child class an appropriate name.

                      B 1 Reply Last reply
                      0
                      • J Jorgen Andersson

                        If your application/library/class/function has developed out of scope and can no longer be considered having the right name, when is it ok to rename it?

                        Wrong is evil and must be defeated. - Jeff Ello[^]

                        D Offline
                        D Offline
                        DaveAuld
                        wrote on last edited by
                        #11

                        Anytime, and if a name already in use that is suitable, just append a number to the end. e.g. SomeClass2, 3, 4

                        Dave Find Me On:Web|Facebook|Twitter|LinkedIn Folding Stats: Team CodeProject

                        J A 2 Replies Last reply
                        0
                        • C Chris Maunder

                          Jörgen Andersson wrote:

                          If your application/library/class/function has developed out of scope and can no longer be considered having the right name, when is it ok to rename it?

                          a. As soon as it's out of scope and can no longer be considered having the right name, and b. You can find a poor slob to do the code renaming, refactoring, updating of tables, updating of docs, rerouting of any old URLs that point to that name, corrections and redistribution of written material, changes to DNS, server naming, jobs and schedules, Unit tests and test data, and all those coffee cups with the old name on them.

                          cheers Chris Maunder

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

                          That poor slob would be me, and we don't get special coffee cups over here. Can I have a CodeProject one? I promise to not touch your code.

                          Wrong is evil and must be defeated. - Jeff Ello[^]

                          M 1 Reply Last reply
                          0
                          • D DaveAuld

                            Anytime, and if a name already in use that is suitable, just append a number to the end. e.g. SomeClass2, 3, 4

                            Dave Find Me On:Web|Facebook|Twitter|LinkedIn Folding Stats: Team CodeProject

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

                            Hey, it wasn't passwords I were asking about.

                            Wrong is evil and must be defeated. - Jeff Ello[^]

                            1 Reply Last reply
                            0
                            • M Mycroft Holmes

                              I get this all the time, we get a spec (verbal discussion) I attempt to get a project name/description from the business, start building, name the database, create the projects. And management decides to change the name of the project. It is a judgement call as to the cost of re-factoring (Bill's view) and the long term impact on support. It can be confusing for the support team when the UI naming and the supporting infrastructure does not match.

                              Never underestimate the power of human stupidity RAH

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

                              You described my problem much better than I ever could have. :laugh:

                              Wrong is evil and must be defeated. - Jeff Ello[^]

                              1 Reply Last reply
                              0
                              • D DaveAuld

                                Anytime, and if a name already in use that is suitable, just append a number to the end. e.g. SomeClass2, 3, 4

                                Dave Find Me On:Web|Facebook|Twitter|LinkedIn Folding Stats: Team CodeProject

                                A Offline
                                A Offline
                                Agent__007
                                wrote on last edited by
                                #15

                                SimpleClass201410101456 would be more elegant, wouldn't it? ;P

                                Your time will come, if you let it be right.

                                1 Reply Last reply
                                0
                                • B BillWoodruff

                                  Hi Jorgen, I think to attempt a meaningful response to that issue requires specific knowledge of the actual context, the nature of the application, the number of programmers working on the application, its users, etc. For example: is the application extensible so that third-party developers writing plug-ins for it might somehow be affected by any changes you make ? A fancy way of saying: "I can't generalize" ?

                                  « There is only one difference between a madman and me. The madman thinks he is sane. I know I am mad. » Salvador Dali

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

                                  I started writing a much more specific post, but then I thought that I've been in this position before, and will be there again, and so I wrote a more general question in the vain hope there was a general answer to it. Mycroft describes my position very well.

                                  Wrong is evil and must be defeated. - Jeff Ello[^]

                                  1 Reply Last reply
                                  0
                                  • J Jorgen Andersson

                                    If your application/library/class/function has developed out of scope and can no longer be considered having the right name, when is it ok to rename it?

                                    Wrong is evil and must be defeated. - Jeff Ello[^]

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

                                    Wait until it's in the header of at least twenty other programs.

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

                                    1 Reply Last reply
                                    0
                                    • J Jorgen Andersson

                                      That poor slob would be me, and we don't get special coffee cups over here. Can I have a CodeProject one? I promise to not touch your code.

                                      Wrong is evil and must be defeated. - Jeff Ello[^]

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

                                      Jörgen Andersson wrote:

                                      I promise to not touch fix your code.

                                      So close, but you blew it.

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

                                      J 1 Reply Last reply
                                      0
                                      • C Chris Maunder

                                        Jörgen Andersson wrote:

                                        If your application/library/class/function has developed out of scope and can no longer be considered having the right name, when is it ok to rename it?

                                        a. As soon as it's out of scope and can no longer be considered having the right name, and b. You can find a poor slob to do the code renaming, refactoring, updating of tables, updating of docs, rerouting of any old URLs that point to that name, corrections and redistribution of written material, changes to DNS, server naming, jobs and schedules, Unit tests and test data, and all those coffee cups with the old name on them.

                                        cheers Chris Maunder

                                        N Offline
                                        N Offline
                                        Nelek
                                        wrote on last edited by
                                        #19

                                        Chris Maunder wrote:

                                        You can find a poor slob to do the code renaming, refactoring, updating of tables, updating of docs, rerouting of any old URLs that point to that name, corrections and redistribution of written material, changes to DNS, server naming, jobs and schedules, Unit tests and test data, and all those coffee cups with the old name on them to blame when problems caused by the renaming appear

                                        FTFY

                                        M.D.V. ;) If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about? Help me to understand what I'm saying, and I'll explain it better to you Rating helpful answers is nice, but saying thanks can be even nicer.

                                        1 Reply Last reply
                                        0
                                        • _ _Damian S_

                                          Rename it, but leave a wrapper sitting there that calls the newly renamed function with the old name, in case someone is still using the old name. Remove the old name from documentation. ;-)

                                          Quad skating his way through the world since the early 80's... Booger Mobile - My bright green 1964 Ford Falcon - check out the blog here!! | If you feel generous - make a donation to Camp Quality!!

                                          N Offline
                                          N Offline
                                          Nagy Vilmos
                                          wrote on last edited by
                                          #20

                                          _Damian S_ wrote:

                                          documentation

                                          +++ out of cheese error +++ MELON MELON MELON +++ redo from start +++

                                          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