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. Informative Comments

Informative Comments

Scheduled Pinned Locked Moved The Weird and The Wonderful
c++question
8 Posts 6 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.
  • C Offline
    C Offline
    ClementsDan
    wrote on last edited by
    #1

    So, I'm looking at the code for one our apps, and all of the source files start with comments like: //---------------------------------------- // XYZBase.h // // This is the header file that declares class CXYZBase. // //---------------------------------------- // XYZBase.cpp // // This file contains the implementation of class CXYZBase. // OK, thanks for telling me that you've been following our file-naming convention. But what does the class do?

    C C J 3 Replies Last reply
    0
    • C ClementsDan

      So, I'm looking at the code for one our apps, and all of the source files start with comments like: //---------------------------------------- // XYZBase.h // // This is the header file that declares class CXYZBase. // //---------------------------------------- // XYZBase.cpp // // This file contains the implementation of class CXYZBase. // OK, thanks for telling me that you've been following our file-naming convention. But what does the class do?

      C Offline
      C Offline
      CPallini
      wrote on last edited by
      #2

      What about an automated tool that deletes all code having less than 10% of comments in? :-D

      If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
      [my articles]

      C 1 Reply Last reply
      0
      • C ClementsDan

        So, I'm looking at the code for one our apps, and all of the source files start with comments like: //---------------------------------------- // XYZBase.h // // This is the header file that declares class CXYZBase. // //---------------------------------------- // XYZBase.cpp // // This file contains the implementation of class CXYZBase. // OK, thanks for telling me that you've been following our file-naming convention. But what does the class do?

        C Offline
        C Offline
        CARPETBURNER
        wrote on last edited by
        #3

        what about an automated routine that deletes all code from incompentant programmers ;-)

        C 1 Reply Last reply
        0
        • C CARPETBURNER

          what about an automated routine that deletes all code from incompentant programmers ;-)

          C Offline
          C Offline
          CPallini
          wrote on last edited by
          #4

          Gimme back my code!!!!!!!!!!!!!!!!! :laugh:

          If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
          [my articles]

          1 Reply Last reply
          0
          • C ClementsDan

            So, I'm looking at the code for one our apps, and all of the source files start with comments like: //---------------------------------------- // XYZBase.h // // This is the header file that declares class CXYZBase. // //---------------------------------------- // XYZBase.cpp // // This file contains the implementation of class CXYZBase. // OK, thanks for telling me that you've been following our file-naming convention. But what does the class do?

            J Offline
            J Offline
            jhwurmbach
            wrote on last edited by
            #5

            This is very probably a template for new source files which was never changed. For what the class does - Use the code, Luke! ;P

            Let's think the unthinkable, let's do the undoable, let's prepare to grapple with the ineffable itself, and see if we may not eff it after all.
            Douglas Adams, "Dirk Gently's Holistic Detective Agency"

            J 1 Reply Last reply
            0
            • J jhwurmbach

              This is very probably a template for new source files which was never changed. For what the class does - Use the code, Luke! ;P

              Let's think the unthinkable, let's do the undoable, let's prepare to grapple with the ineffable itself, and see if we may not eff it after all.
              Douglas Adams, "Dirk Gently's Holistic Detective Agency"

              J Offline
              J Offline
              Jorgen Sigvardsson
              wrote on last edited by
              #6

              jhwurmbach wrote:

              For what the class does - Use the code, Luke!

              Well, yeah. But such headers requires the reader having to scroll more, thus adding to the wear and tear on his/her finger joints. That is bad, and might result in a shortened life span as a programmer. ;)

              -- Kein Mitleid Für Die Mehrheit

              D 1 Reply Last reply
              0
              • C CPallini

                What about an automated tool that deletes all code having less than 10% of comments in? :-D

                If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
                [my articles]

                C Offline
                C Offline
                ClementsDan
                wrote on last edited by
                #7

                Won't do. You can easily meet the 10% quota by writing things like:

                //----------------------------------------
                // CFoo::LogMessage
                //
                // Log a message.
                //
                // Args:
                // strMsg = the message to log
                //
                // Returns:
                // void
                //
                void CFoo::LogMessage(const CString& strMsg)

                1 Reply Last reply
                0
                • J Jorgen Sigvardsson

                  jhwurmbach wrote:

                  For what the class does - Use the code, Luke!

                  Well, yeah. But such headers requires the reader having to scroll more, thus adding to the wear and tear on his/her finger joints. That is bad, and might result in a shortened life span as a programmer. ;)

                  -- Kein Mitleid Für Die Mehrheit

                  D Offline
                  D Offline
                  Draugnar
                  wrote on last edited by
                  #8

                  What? You mean you don't have the audio/visual integration tool based on the Apache weapons officer helmet that tracks your eye movement and interprets you verbal commands? Man, life became much easier when I put on the helmet. I can't wait until they finish getting the jack put in my cerebelum so I can just think code. ;P

                  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