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 Soapbox
  4. best code comments

best code comments

Scheduled Pinned Locked Moved The Soapbox
designhelpcode-review
8 Posts 8 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.
  • D Offline
    D Offline
    Divya Rathore
    wrote on last edited by
    #1

    The best code comment seen in source code ...... 1.      /// <remarks>    /// The point of this is to work around his poor design so that paging will    /// work on a mobile control. The main problem is the BindCompany() method,    /// which he hoped would be able to do everything. I hope he dies.    /// </remarks>; 2. // I dedicate all this code, all my work, to my wife, Darlene, who will // have to support me and our three children and the dog once it gets // released into the public. 3. // Magic. Do not touch. 4. return 1; # returns 1 5. /* This is O(scary), but seems quick enough in practice. */ 6. /* * You may think you know what the following code does. * But you dont. Trust me. * Fiddle with it, and youll spend many a sleepless * night cursing the moment you thought youd be clever * enough to "optimize" the code below. * Now close this file and go play with something else. */ 7.   and here comes my favourite...... //When I wrote this, only God and I understood what I was doing //Now, God only knows

    D P K R X 6 Replies Last reply
    0
    • D Divya Rathore

      The best code comment seen in source code ...... 1.      /// <remarks>    /// The point of this is to work around his poor design so that paging will    /// work on a mobile control. The main problem is the BindCompany() method,    /// which he hoped would be able to do everything. I hope he dies.    /// </remarks>; 2. // I dedicate all this code, all my work, to my wife, Darlene, who will // have to support me and our three children and the dog once it gets // released into the public. 3. // Magic. Do not touch. 4. return 1; # returns 1 5. /* This is O(scary), but seems quick enough in practice. */ 6. /* * You may think you know what the following code does. * But you dont. Trust me. * Fiddle with it, and youll spend many a sleepless * night cursing the moment you thought youd be clever * enough to "optimize" the code below. * Now close this file and go play with something else. */ 7.   and here comes my favourite...... //When I wrote this, only God and I understood what I was doing //Now, God only knows

      D Offline
      D Offline
      Dalek Dave
      wrote on last edited by
      #2

      No7 is Universal!

      ------------------------------------ To eat well in England, you should have a breakfast three times a day. W. Somerset Maugham 1925

      1 Reply Last reply
      0
      • D Divya Rathore

        The best code comment seen in source code ...... 1.      /// <remarks>    /// The point of this is to work around his poor design so that paging will    /// work on a mobile control. The main problem is the BindCompany() method,    /// which he hoped would be able to do everything. I hope he dies.    /// </remarks>; 2. // I dedicate all this code, all my work, to my wife, Darlene, who will // have to support me and our three children and the dog once it gets // released into the public. 3. // Magic. Do not touch. 4. return 1; # returns 1 5. /* This is O(scary), but seems quick enough in practice. */ 6. /* * You may think you know what the following code does. * But you dont. Trust me. * Fiddle with it, and youll spend many a sleepless * night cursing the moment you thought youd be clever * enough to "optimize" the code below. * Now close this file and go play with something else. */ 7.   and here comes my favourite...... //When I wrote this, only God and I understood what I was doing //Now, God only knows

        P Offline
        P Offline
        Pawel Gielmuda
        wrote on last edited by
        #3

        Thanks for sharing :laugh:

        1 Reply Last reply
        0
        • D Divya Rathore

          The best code comment seen in source code ...... 1.      /// <remarks>    /// The point of this is to work around his poor design so that paging will    /// work on a mobile control. The main problem is the BindCompany() method,    /// which he hoped would be able to do everything. I hope he dies.    /// </remarks>; 2. // I dedicate all this code, all my work, to my wife, Darlene, who will // have to support me and our three children and the dog once it gets // released into the public. 3. // Magic. Do not touch. 4. return 1; # returns 1 5. /* This is O(scary), but seems quick enough in practice. */ 6. /* * You may think you know what the following code does. * But you dont. Trust me. * Fiddle with it, and youll spend many a sleepless * night cursing the moment you thought youd be clever * enough to "optimize" the code below. * Now close this file and go play with something else. */ 7.   and here comes my favourite...... //When I wrote this, only God and I understood what I was doing //Now, God only knows

          K Offline
          K Offline
          Keith Barrow
          wrote on last edited by
          #4

          I'm glad to see I'm not alone. I've had to do something to blow off steam some of the things I've put in include: 1. //I HATE my job, thanks to code like this 2. //This is crap, but at least we obeyed Meskmen's law 3. //This needs refactoring, but frankly I don't have the will to deal with code this shit 4. //Pisspoor code. Pisspoor Architecture. 5. //WTF? No! And I really hate commenting on other peoples code as you don't know what they had to deal with at the time (and an awareness that code I've written doesn't look so fresh after a couple of weeks). The code base on my current project ius just so bad.

          CCC solved so far: 2 (including a Hard One!)

          J 1 Reply Last reply
          0
          • D Divya Rathore

            The best code comment seen in source code ...... 1.      /// <remarks>    /// The point of this is to work around his poor design so that paging will    /// work on a mobile control. The main problem is the BindCompany() method,    /// which he hoped would be able to do everything. I hope he dies.    /// </remarks>; 2. // I dedicate all this code, all my work, to my wife, Darlene, who will // have to support me and our three children and the dog once it gets // released into the public. 3. // Magic. Do not touch. 4. return 1; # returns 1 5. /* This is O(scary), but seems quick enough in practice. */ 6. /* * You may think you know what the following code does. * But you dont. Trust me. * Fiddle with it, and youll spend many a sleepless * night cursing the moment you thought youd be clever * enough to "optimize" the code below. * Now close this file and go play with something else. */ 7.   and here comes my favourite...... //When I wrote this, only God and I understood what I was doing //Now, God only knows

            R Offline
            R Offline
            RichardGrimmer
            wrote on last edited by
            #5

            Some "a friend" has put into our codebase include.... // Ere Be Dragons.... // Abandon hope all ye who enter this function // Shhh - you aint seen me...roight (fans of the fast show may get the reference)

            C# has already designed away most of the tedium of C++.

            1 Reply Last reply
            0
            • D Divya Rathore

              The best code comment seen in source code ...... 1.      /// <remarks>    /// The point of this is to work around his poor design so that paging will    /// work on a mobile control. The main problem is the BindCompany() method,    /// which he hoped would be able to do everything. I hope he dies.    /// </remarks>; 2. // I dedicate all this code, all my work, to my wife, Darlene, who will // have to support me and our three children and the dog once it gets // released into the public. 3. // Magic. Do not touch. 4. return 1; # returns 1 5. /* This is O(scary), but seems quick enough in practice. */ 6. /* * You may think you know what the following code does. * But you dont. Trust me. * Fiddle with it, and youll spend many a sleepless * night cursing the moment you thought youd be clever * enough to "optimize" the code below. * Now close this file and go play with something else. */ 7.   and here comes my favourite...... //When I wrote this, only God and I understood what I was doing //Now, God only knows

              X Offline
              X Offline
              Xmen Real
              wrote on last edited by
              #6

              6th, Awesome :thumbsup::thumbsup::thumbsup:

              TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L %^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2 W_AD`EPABIKRDFVS)EVLQK)JKQUFK[M`UKs*$GwU#QDXBER@CBN% R0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-i’TV.C\y<pŠjxsg-b$f4ia>

              ----------------------------------------------- 128 bit encrypted signature, crack if you can

              1 Reply Last reply
              0
              • D Divya Rathore

                The best code comment seen in source code ...... 1.      /// <remarks>    /// The point of this is to work around his poor design so that paging will    /// work on a mobile control. The main problem is the BindCompany() method,    /// which he hoped would be able to do everything. I hope he dies.    /// </remarks>; 2. // I dedicate all this code, all my work, to my wife, Darlene, who will // have to support me and our three children and the dog once it gets // released into the public. 3. // Magic. Do not touch. 4. return 1; # returns 1 5. /* This is O(scary), but seems quick enough in practice. */ 6. /* * You may think you know what the following code does. * But you dont. Trust me. * Fiddle with it, and youll spend many a sleepless * night cursing the moment you thought youd be clever * enough to "optimize" the code below. * Now close this file and go play with something else. */ 7.   and here comes my favourite...... //When I wrote this, only God and I understood what I was doing //Now, God only knows

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

                From an enumeration definition in my code:

                //...
                Error_WebBreak,
                Error_DryerTemperatureTooLow,

                // NOTE: Insert new error values here, and do not remove the marker value below,
                //       LEST YE ANGER THE ELDER GODS.
                
                \_ErrorMarker
                

                };

                Software Zen: delete this;
                Fold With Us![^]

                1 Reply Last reply
                0
                • K Keith Barrow

                  I'm glad to see I'm not alone. I've had to do something to blow off steam some of the things I've put in include: 1. //I HATE my job, thanks to code like this 2. //This is crap, but at least we obeyed Meskmen's law 3. //This needs refactoring, but frankly I don't have the will to deal with code this shit 4. //Pisspoor code. Pisspoor Architecture. 5. //WTF? No! And I really hate commenting on other peoples code as you don't know what they had to deal with at the time (and an awareness that code I've written doesn't look so fresh after a couple of weeks). The code base on my current project ius just so bad.

                  CCC solved so far: 2 (including a Hard One!)

                  J Offline
                  J Offline
                  Jay Elston
                  wrote on last edited by
                  #8

                  That Meskimen's Law (Murphy's Computer Law + others[^])

                  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