src file naming convention?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Nobody

    src file naming convention?

    sorry if this is OT, not sure if it is since it is a C++ q, sort of :).

    I am working on a C++ library where all the files use the 8.3 convention. I
    am now adding some collection classes. The typical library convention for
    naming files is something like:

    header ==> sfxmem.h
    source ==> memory.cpp

    where multiple memory classes are thrown into.

    if the source spans multiple files, it is something like:

    header ==> sfxfiles.h
    source ==> files1.cpp, files2.cpp, etc.

    obviously for my collection classes I would follow this convention with:

    header ==> sfxcoll.h

    but I am having a difficult time (yes I am obsessive compulsive) coming up
    with what I think is a normal looking .cpp name.

    these are some examples I have come up with:

    collect.cpp
    collect1.cpp
    collect2.cpp
    coll1.cpp
    coll2.cpp
    coll.cpp
    colls.cpp
    collectn.cpp

    this last one seems kind of too cryptic... the other filenames have names
    like apihook.cpp, menu.cpp, split.cpp, toolhelp.cpp, ie. none of the other
    source files use something cryptic like that. and coll/colls... you look at
    that, you have no dang clue what it is.

    So I am kind of leaning towards "collect.cp p" right now, but that kind of
    bothers me since it sounds like its collecting something rather then
    collections of something.

    any other ideas?


  • Jumbo

    #2
    Re: src file naming convention?


    "Nobody" <nobody@cox.net > wrote in message
    news:JzqQb.1095 0$bg1.4895@fed1 read05...[color=blue]
    > sorry if this is OT, not sure if it is since it is a C++ q, sort of :).
    >
    > I am working on a C++ library where all the files use the 8.3 convention.[/color]
    I[color=blue]
    > am now adding some collection classes. The typical library convention for
    > naming files is something like:
    >
    > header ==> sfxmem.h
    > source ==> memory.cpp
    >
    > where multiple memory classes are thrown into.
    >
    > if the source spans multiple files, it is something like:
    >
    > header ==> sfxfiles.h
    > source ==> files1.cpp, files2.cpp, etc.
    >
    > obviously for my collection classes I would follow this convention with:
    >
    > header ==> sfxcoll.h
    >
    > but I am having a difficult time (yes I am obsessive compulsive) coming up
    > with what I think is a normal looking .cpp name.
    >
    > these are some examples I have come up with:
    >
    > collect.cpp
    > collect1.cpp
    > collect2.cpp
    > coll1.cpp
    > coll2.cpp
    > coll.cpp
    > colls.cpp
    > collectn.cpp
    >
    > this last one seems kind of too cryptic... the other filenames have names
    > like apihook.cpp, menu.cpp, split.cpp, toolhelp.cpp, ie. none of the other
    > source files use something cryptic like that. and coll/colls... you look[/color]
    at[color=blue]
    > that, you have no dang clue what it is.
    >
    > So I am kind of leaning towards "collect.cp p" right now, but that kind of
    > bothers me since it sounds like its collecting something rather then
    > collections of something.
    >
    > any other ideas?
    >[/color]
    What's wrong with collection.cpp ?


    Comment

    • Nobody

      #3
      Re: src file naming convention?

      I said I wanted to stick to the 8.3 convention that the rest of the library
      uses.

      "Jumbo @uko2.co.uk>" <pcr1000011<nos pam> wrote in message
      news:1074937912 .364852@news.mi nx.net.uk...[color=blue]
      >
      > "Nobody" <nobody@cox.net > wrote in message
      > news:JzqQb.1095 0$bg1.4895@fed1 read05...[color=green]
      > > sorry if this is OT, not sure if it is since it is a C++ q, sort of :).
      > >
      > > I am working on a C++ library where all the files use the 8.3[/color][/color]
      convention.[color=blue]
      > I[color=green]
      > > am now adding some collection classes. The typical library convention[/color][/color]
      for[color=blue][color=green]
      > > naming files is something like:
      > >
      > > header ==> sfxmem.h
      > > source ==> memory.cpp
      > >
      > > where multiple memory classes are thrown into.
      > >
      > > if the source spans multiple files, it is something like:
      > >
      > > header ==> sfxfiles.h
      > > source ==> files1.cpp, files2.cpp, etc.
      > >
      > > obviously for my collection classes I would follow this convention with:
      > >
      > > header ==> sfxcoll.h
      > >
      > > but I am having a difficult time (yes I am obsessive compulsive) coming[/color][/color]
      up[color=blue][color=green]
      > > with what I think is a normal looking .cpp name.
      > >
      > > these are some examples I have come up with:
      > >
      > > collect.cpp
      > > collect1.cpp
      > > collect2.cpp
      > > coll1.cpp
      > > coll2.cpp
      > > coll.cpp
      > > colls.cpp
      > > collectn.cpp
      > >
      > > this last one seems kind of too cryptic... the other filenames have[/color][/color]
      names[color=blue][color=green]
      > > like apihook.cpp, menu.cpp, split.cpp, toolhelp.cpp, ie. none of the[/color][/color]
      other[color=blue][color=green]
      > > source files use something cryptic like that. and coll/colls... you look[/color]
      > at[color=green]
      > > that, you have no dang clue what it is.
      > >
      > > So I am kind of leaning towards "collect.cp p" right now, but that kind[/color][/color]
      of[color=blue][color=green]
      > > bothers me since it sounds like its collecting something rather then
      > > collections of something.
      > >
      > > any other ideas?
      > >[/color]
      > What's wrong with collection.cpp ?
      >
      >[/color]


      Comment

      • Jumbo

        #4
        Re: src file naming convention?


        "Nobody" <nobody@cox.net > wrote in message
        news:XbrQb.1101 3$bg1.1442@fed1 read05...[color=blue]
        > I said I wanted to stick to the 8.3 convention that the rest of the[/color]
        library[color=blue]
        > uses.
        >[/color]
        ok sorry.


        Comment

        • Mike Wahler

          #5
          Re: src file naming convention?

          "Jumbo @uko2.co.uk>" <pcr1000011<nos pam> wrote in message
          news:1074937912 .364852@news.mi nx.net.uk...[color=blue]
          >
          > "Nobody" <nobody@cox.net > wrote in message
          > news:JzqQb.1095 0$bg1.4895@fed1 read05...[color=green]
          > > sorry if this is OT, not sure if it is since it is a C++ q, sort of :).
          > >
          > > I am working on a C++ library where all the files use the 8.3[/color][/color]
          convention.[color=blue]
          > I[/color]

          [snip]
          [color=blue][color=green]
          > > these are some examples I have come up with:
          > >
          > > collect.cpp
          > > collect1.cpp
          > > collect2.cpp
          > > coll1.cpp
          > > coll2.cpp
          > > coll.cpp
          > > colls.cpp
          > > collectn.cpp[/color][/color]

          [snip]
          [color=blue]
          > What's wrong with collection.cpp ?[/color]

          Um, perhaps the fact that you apparently cannot count? :-)

          -Mike




          Comment

          • Victor Bazarov

            #6
            Re: src file naming convention?

            "Mike Wahler" <mkwahler@mkwah ler.net> wrote...[color=blue]
            > "Jumbo @uko2.co.uk>" <pcr1000011<nos pam> wrote in message
            > news:1074937912 .364852@news.mi nx.net.uk...[color=green]
            > >
            > > "Nobody" <nobody@cox.net > wrote in message
            > > news:JzqQb.1095 0$bg1.4895@fed1 read05...[color=darkred]
            > > > sorry if this is OT, not sure if it is since it is a C++ q, sort of[/color][/color][/color]
            :).[color=blue][color=green][color=darkred]
            > > >
            > > > I am working on a C++ library where all the files use the 8.3[/color][/color]
            > convention.[color=green]
            > > I[/color]
            >
            > [snip]
            >[color=green][color=darkred]
            > > > these are some examples I have come up with:
            > > >
            > > > collect.cpp
            > > > collect1.cpp
            > > > collect2.cpp
            > > > coll1.cpp
            > > > coll2.cpp
            > > > coll.cpp
            > > > colls.cpp
            > > > collectn.cpp[/color][/color]
            >
            > [snip]
            >[color=green]
            > > What's wrong with collection.cpp ?[/color]
            >
            > Um, perhaps the fact that you apparently cannot count? :-)[/color]

            Aw, come on, it could be "Jumbo" never heard of 8.3 convention...


            Comment

            • Jumbo

              #7
              Re: src file naming convention?


              "Victor Bazarov" <v.Abazarov@com Acast.net> wrote in message
              news:ASCQb.1447 49$na.232583@at tbi_s04...[color=blue]
              > "Mike Wahler" <mkwahler@mkwah ler.net> wrote...[color=green]
              > > "Jumbo @uko2.co.uk>" <pcr1000011<nos pam> wrote in message
              > > news:1074937912 .364852@news.mi nx.net.uk...[color=darkred]
              > > >
              > > > "Nobody" <nobody@cox.net > wrote in message
              > > > news:JzqQb.1095 0$bg1.4895@fed1 read05...
              > > > > sorry if this is OT, not sure if it is since it is a C++ q, sort of[/color][/color]
              > :).[color=green][color=darkred]
              > > > >
              > > > > I am working on a C++ library where all the files use the 8.3[/color]
              > > convention.[color=darkred]
              > > > I[/color]
              > >
              > > [snip]
              > >[color=darkred]
              > > > > these are some examples I have come up with:
              > > > >
              > > > > collect.cpp
              > > > > collect1.cpp
              > > > > collect2.cpp
              > > > > coll1.cpp
              > > > > coll2.cpp
              > > > > coll.cpp
              > > > > colls.cpp
              > > > > collectn.cpp[/color]
              > >
              > > [snip]
              > >[color=darkred]
              > > > What's wrong with collection.cpp ?[/color]
              > >
              > > Um, perhaps the fact that you apparently cannot count? :-)[/color]
              >
              > Aw, come on, it could be "Jumbo" never heard of 8.3 convention...
              >
              >[/color]

              Geneva convention perhaps but no not 8.3 convention. I didn't know what he
              was talking about :-)



              Comment

              • Mike Wahler

                #8
                Re: src file naming convention?

                "Jumbo @uko2.co.uk>" <pcr1000011<nos pam> wrote in message
                news:1075024109 .505052@news.mi nx.net.uk...[color=blue][color=green]
                > >
                > > Aw, come on, it could be "Jumbo" never heard of 8.3 convention...
                > >
                > >[/color]
                >
                > Geneva convention perhaps but no not 8.3 convention. I didn't know what[/color]
                he[color=blue]
                > was talking about :-)[/color]

                Your message
                news:1074941435 .745948@news.mi nx.net.uk , dated 1/24/04,
                indicates otherwise. :-)

                -Mike
                [color=blue]
                >
                >
                >[/color]


                Comment

                Working...