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. Interesting code comments

Interesting code comments

Scheduled Pinned Locked Moved The Lounge
comgame-devdata-structurestoolsperformance
35 Posts 28 Posters 3 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.
  • 0 0x3c0

    Have you ever looked back through your code and seen some really odd or funny comments? I've coded while extremely tired two or three times, and when I looked at what I wrote in the morning, I laughed out loud. For example:

    //Found in a process identification method which used an array:
    //Process, I am your father. Search your table, you know it to be true

    //Found when rewriting a virtual memory manager:
    //May illusions reign once more

    //Hangman game, when there are no more tries left:
    //Kill him and dump the body outside town

    OSDev :)

    A Offline
    A Offline
    Andy_L_J
    wrote on last edited by
    #2

    0x3c0 wrote:

    //Hangman game, when there are no more tries left: //Kill him and dump the body outside town

    :laugh: :laugh: :laugh:

    I don't speak Idiot - please talk slowly and clearly 'This space for rent' Driven to the arms of Heineken by the wife

    0 1 Reply Last reply
    0
    • 0 0x3c0

      Have you ever looked back through your code and seen some really odd or funny comments? I've coded while extremely tired two or three times, and when I looked at what I wrote in the morning, I laughed out loud. For example:

      //Found in a process identification method which used an array:
      //Process, I am your father. Search your table, you know it to be true

      //Found when rewriting a virtual memory manager:
      //May illusions reign once more

      //Hangman game, when there are no more tries left:
      //Kill him and dump the body outside town

      OSDev :)

      P Offline
      P Offline
      Pete OHanlon
      wrote on last edited by
      #3

      My favourite comment was from a developer I knew who thought that people never bothered to read comments at the start of methods. One comment explained the rules surrounding LBW (a cricket term meaning Leg Before Wicket). The comment ran to two and a half pages and, to my knowledge, is still there, still unacknowledged.

      "WPF has many lovers. It's a veritable porn star!" - Josh Smith

      As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.

      My blog | My articles | MoXAML PowerToys | Onyx

      A R P V B 5 Replies Last reply
      0
      • P Pete OHanlon

        My favourite comment was from a developer I knew who thought that people never bothered to read comments at the start of methods. One comment explained the rules surrounding LBW (a cricket term meaning Leg Before Wicket). The comment ran to two and a half pages and, to my knowledge, is still there, still unacknowledged.

        "WPF has many lovers. It's a veritable porn star!" - Josh Smith

        As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.

        My blog | My articles | MoXAML PowerToys | Onyx

        A Offline
        A Offline
        AspDotNetDev
        wrote on last edited by
        #4

        Pete O'Hanlon wrote:

        still unacknowledged

        Unless he/she read the lounge.

        [Forum Guidelines]

        1 Reply Last reply
        0
        • P Pete OHanlon

          My favourite comment was from a developer I knew who thought that people never bothered to read comments at the start of methods. One comment explained the rules surrounding LBW (a cricket term meaning Leg Before Wicket). The comment ran to two and a half pages and, to my knowledge, is still there, still unacknowledged.

          "WPF has many lovers. It's a veritable porn star!" - Josh Smith

          As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.

          My blog | My articles | MoXAML PowerToys | Onyx

          R Offline
          R Offline
          Roger Wright
          wrote on last edited by
          #5

          :laugh: Some things never change, and people still don't read. When I worked for a large aerospace contractor thirty years ago, we shipped missile systems with maintenance documents that were hundreds of pages thick, printed on 'D' or 'E' size paper in blueprint form. There were no large-format laser printers then, nor any electronic documents. One engineer I worked with was certain that no one ever actually read the documents we wrote, and to prove it, he slipped 2 sheets of typed jokes into one of the manuals. The document went through the Navy review process, was approved, and deployed along with the rest of the missile system. In the five years I worked there, no word of its discovery ever reached me, and to the best of my knowledge, no one yet has ever found those jokes. :-D

          "A Journey of a Thousand Rest Stops Begins with a Single Movement"

          A K S D K 7 Replies Last reply
          0
          • R Roger Wright

            :laugh: Some things never change, and people still don't read. When I worked for a large aerospace contractor thirty years ago, we shipped missile systems with maintenance documents that were hundreds of pages thick, printed on 'D' or 'E' size paper in blueprint form. There were no large-format laser printers then, nor any electronic documents. One engineer I worked with was certain that no one ever actually read the documents we wrote, and to prove it, he slipped 2 sheets of typed jokes into one of the manuals. The document went through the Navy review process, was approved, and deployed along with the rest of the missile system. In the five years I worked there, no word of its discovery ever reached me, and to the best of my knowledge, no one yet has ever found those jokes. :-D

            "A Journey of a Thousand Rest Stops Begins with a Single Movement"

            A Offline
            A Offline
            AspDotNetDev
            wrote on last edited by
            #6

            Hardbound easter egg! Brilliant!

            [Forum Guidelines]

            1 Reply Last reply
            0
            • R Roger Wright

              :laugh: Some things never change, and people still don't read. When I worked for a large aerospace contractor thirty years ago, we shipped missile systems with maintenance documents that were hundreds of pages thick, printed on 'D' or 'E' size paper in blueprint form. There were no large-format laser printers then, nor any electronic documents. One engineer I worked with was certain that no one ever actually read the documents we wrote, and to prove it, he slipped 2 sheets of typed jokes into one of the manuals. The document went through the Navy review process, was approved, and deployed along with the rest of the missile system. In the five years I worked there, no word of its discovery ever reached me, and to the best of my knowledge, no one yet has ever found those jokes. :-D

              "A Journey of a Thousand Rest Stops Begins with a Single Movement"

              K Offline
              K Offline
              Kyudos
              wrote on last edited by
              #7

              Ha ha! Reminds me of a story from my school days. We had one English teacher we were sure never read our work, and just marked it based on who we were...the "good" students got good grades etc. So one guy eventually decided to test our theory by writing incongruous garbage mid-sentence. I don't remember what the exercise was, but he'd written stuff along the lines of "and the story is advanced by the cross-over between the cat sat on the mat theme and character" and numerous other such stupidities. Sure enough, she gave lots of red ticks and his "usual" mark.

              S P F 3 Replies Last reply
              0
              • A Andy_L_J

                0x3c0 wrote:

                //Hangman game, when there are no more tries left: //Kill him and dump the body outside town

                :laugh: :laugh: :laugh:

                I don't speak Idiot - please talk slowly and clearly 'This space for rent' Driven to the arms of Heineken by the wife

                0 Offline
                0 Offline
                0x3c0
                wrote on last edited by
                #8

                I thought so too. The original was slightly more offensive to residents of Basra :-O

                OSDev :)

                1 Reply Last reply
                0
                • R Roger Wright

                  :laugh: Some things never change, and people still don't read. When I worked for a large aerospace contractor thirty years ago, we shipped missile systems with maintenance documents that were hundreds of pages thick, printed on 'D' or 'E' size paper in blueprint form. There were no large-format laser printers then, nor any electronic documents. One engineer I worked with was certain that no one ever actually read the documents we wrote, and to prove it, he slipped 2 sheets of typed jokes into one of the manuals. The document went through the Navy review process, was approved, and deployed along with the rest of the missile system. In the five years I worked there, no word of its discovery ever reached me, and to the best of my knowledge, no one yet has ever found those jokes. :-D

                  "A Journey of a Thousand Rest Stops Begins with a Single Movement"

                  S Offline
                  S Offline
                  swjam
                  wrote on last edited by
                  #9

                  (in a loud baritone voice) "Rogerrr! This is your former boss from Lockheed, report immediately to FBI!!!!

                  ---------------------------------------------------------- Lorem ipsum dolor sit amet.

                  R 1 Reply Last reply
                  0
                  • S swjam

                    (in a loud baritone voice) "Rogerrr! This is your former boss from Lockheed, report immediately to FBI!!!!

                    ---------------------------------------------------------- Lorem ipsum dolor sit amet.

                    R Offline
                    R Offline
                    Roger Wright
                    wrote on last edited by
                    #10

                    I never worked for Lockheed (that I'm allowed to mention). ;P

                    "A Journey of a Thousand Rest Stops Begins with a Single Movement"

                    1 Reply Last reply
                    0
                    • P Pete OHanlon

                      My favourite comment was from a developer I knew who thought that people never bothered to read comments at the start of methods. One comment explained the rules surrounding LBW (a cricket term meaning Leg Before Wicket). The comment ran to two and a half pages and, to my knowledge, is still there, still unacknowledged.

                      "WPF has many lovers. It's a veritable porn star!" - Josh Smith

                      As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.

                      My blog | My articles | MoXAML PowerToys | Onyx

                      P Offline
                      P Offline
                      Paul Conrad
                      wrote on last edited by
                      #11

                      Nice :laugh:

                      "The clue train passed his station without stopping." - John Simmons / outlaw programmer "Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon "Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham

                      1 Reply Last reply
                      0
                      • P Pete OHanlon

                        My favourite comment was from a developer I knew who thought that people never bothered to read comments at the start of methods. One comment explained the rules surrounding LBW (a cricket term meaning Leg Before Wicket). The comment ran to two and a half pages and, to my knowledge, is still there, still unacknowledged.

                        "WPF has many lovers. It's a veritable porn star!" - Josh Smith

                        As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.

                        My blog | My articles | MoXAML PowerToys | Onyx

                        V Offline
                        V Offline
                        Vikram A Punathambekar
                        wrote on last edited by
                        #12

                        LBW needs 2.5 pages to be explained? :confused: Bounced in line, hit in line; bounced outside of off, hit in line; bounced outside of off, hit outside of off; everything else - shouldn't take more than a few [pun unintended] lines.

                        Cheers, Vikram. (Cracked not one CCC, but two!)

                        S D 2 Replies Last reply
                        0
                        • V Vikram A Punathambekar

                          LBW needs 2.5 pages to be explained? :confused: Bounced in line, hit in line; bounced outside of off, hit in line; bounced outside of off, hit outside of off; everything else - shouldn't take more than a few [pun unintended] lines.

                          Cheers, Vikram. (Cracked not one CCC, but two!)

                          S Offline
                          S Offline
                          S Senthil Kumar
                          wrote on last edited by
                          #13

                          Hits the pad on the full? Inside edge? Ball landing outside leg stump? Batsman offering no shot? Switch hit? I can easily see it running to 2.5 pages.

                          Regards Senthil _____________________________ My Home Page |My Blog | My Articles | My Flickr | WinMacro

                          V 1 Reply Last reply
                          0
                          • V Vikram A Punathambekar

                            LBW needs 2.5 pages to be explained? :confused: Bounced in line, hit in line; bounced outside of off, hit in line; bounced outside of off, hit outside of off; everything else - shouldn't take more than a few [pun unintended] lines.

                            Cheers, Vikram. (Cracked not one CCC, but two!)

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

                            I guess all started from explaining what is leg.

                            50-50-90 rule: Anytime I have a 50-50 chance of getting something right, there's a 90% probability I'll get it wrong...!!

                            1 Reply Last reply
                            0
                            • 0 0x3c0

                              Have you ever looked back through your code and seen some really odd or funny comments? I've coded while extremely tired two or three times, and when I looked at what I wrote in the morning, I laughed out loud. For example:

                              //Found in a process identification method which used an array:
                              //Process, I am your father. Search your table, you know it to be true

                              //Found when rewriting a virtual memory manager:
                              //May illusions reign once more

                              //Hangman game, when there are no more tries left:
                              //Kill him and dump the body outside town

                              OSDev :)

                              C Offline
                              C Offline
                              Cameron_DeW
                              wrote on last edited by
                              #15

                              This guys website has some interesting comments in the HTML http://www.joshhubi.com/[^]

                              1 Reply Last reply
                              0
                              • 0 0x3c0

                                Have you ever looked back through your code and seen some really odd or funny comments? I've coded while extremely tired two or three times, and when I looked at what I wrote in the morning, I laughed out loud. For example:

                                //Found in a process identification method which used an array:
                                //Process, I am your father. Search your table, you know it to be true

                                //Found when rewriting a virtual memory manager:
                                //May illusions reign once more

                                //Hangman game, when there are no more tries left:
                                //Kill him and dump the body outside town

                                OSDev :)

                                M Offline
                                M Offline
                                ManicQin
                                wrote on last edited by
                                #16

                                I once had the next comment

                                //I HATE HIM
                                //I HATE HIM
                                //I HATE HIM
                                //I HATE HIM

                                1 Reply Last reply
                                0
                                • K Kyudos

                                  Ha ha! Reminds me of a story from my school days. We had one English teacher we were sure never read our work, and just marked it based on who we were...the "good" students got good grades etc. So one guy eventually decided to test our theory by writing incongruous garbage mid-sentence. I don't remember what the exercise was, but he'd written stuff along the lines of "and the story is advanced by the cross-over between the cat sat on the mat theme and character" and numerous other such stupidities. Sure enough, she gave lots of red ticks and his "usual" mark.

                                  S Offline
                                  S Offline
                                  SachinBhave
                                  wrote on last edited by
                                  #17

                                  Something similar happened in our school too....one of our teachers never used to read the answers in tests. There was a popular belief that she gave marks based on length of the answer. To prove this point one of the students actually wrote same line some 10-15 times, and to our surprise was awarded full marks.... :laugh:

                                  1 Reply Last reply
                                  0
                                  • R Roger Wright

                                    :laugh: Some things never change, and people still don't read. When I worked for a large aerospace contractor thirty years ago, we shipped missile systems with maintenance documents that were hundreds of pages thick, printed on 'D' or 'E' size paper in blueprint form. There were no large-format laser printers then, nor any electronic documents. One engineer I worked with was certain that no one ever actually read the documents we wrote, and to prove it, he slipped 2 sheets of typed jokes into one of the manuals. The document went through the Navy review process, was approved, and deployed along with the rest of the missile system. In the five years I worked there, no word of its discovery ever reached me, and to the best of my knowledge, no one yet has ever found those jokes. :-D

                                    "A Journey of a Thousand Rest Stops Begins with a Single Movement"

                                    D Offline
                                    D Offline
                                    Divya Rathore
                                    wrote on last edited by
                                    #18

                                    Did the Pilots ever report back to the base? Maybe weapons of mass destructions weren't there, and then maybe Bush ain't a bad guy either ;P

                                    D 1 Reply Last reply
                                    0
                                    • D Divya Rathore

                                      Did the Pilots ever report back to the base? Maybe weapons of mass destructions weren't there, and then maybe Bush ain't a bad guy either ;P

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

                                      Divya Rathore wrote:

                                      Bush ain't a bad guy either

                                      You have crossed almost all the levels of optimism.

                                      50-50-90 rule: Anytime I have a 50-50 chance of getting something right, there's a 90% probability I'll get it wrong...!!

                                      1 Reply Last reply
                                      0
                                      • P Pete OHanlon

                                        My favourite comment was from a developer I knew who thought that people never bothered to read comments at the start of methods. One comment explained the rules surrounding LBW (a cricket term meaning Leg Before Wicket). The comment ran to two and a half pages and, to my knowledge, is still there, still unacknowledged.

                                        "WPF has many lovers. It's a veritable porn star!" - Josh Smith

                                        As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.

                                        My blog | My articles | MoXAML PowerToys | Onyx

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

                                        :laugh:

                                        1 Reply Last reply
                                        0
                                        • R Roger Wright

                                          :laugh: Some things never change, and people still don't read. When I worked for a large aerospace contractor thirty years ago, we shipped missile systems with maintenance documents that were hundreds of pages thick, printed on 'D' or 'E' size paper in blueprint form. There were no large-format laser printers then, nor any electronic documents. One engineer I worked with was certain that no one ever actually read the documents we wrote, and to prove it, he slipped 2 sheets of typed jokes into one of the manuals. The document went through the Navy review process, was approved, and deployed along with the rest of the missile system. In the five years I worked there, no word of its discovery ever reached me, and to the best of my knowledge, no one yet has ever found those jokes. :-D

                                          "A Journey of a Thousand Rest Stops Begins with a Single Movement"

                                          K Offline
                                          K Offline
                                          KungFuCoder
                                          wrote on last edited by
                                          #21

                                          Not sure if this counts (and I'll ignore the marriage proposal printed across the middle of a 1000 page output nobody ever noticed) but when I was doing data analysis for a market research firm we had one job go horribly wrong and obviously going to miss its delivery deadline. The researcher in charge eventually psyched herself up to break the bad news to the client. His reply ? "Don't worry, we never read them anyway" His dept was tasked with getting reasearch done on the companys products so that's what he was doing.

                                          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