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. One of the better code comments I've come across...

One of the better code comments I've come across...

Scheduled Pinned Locked Moved The Lounge
37 Posts 29 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.
  • N NickPace

    Just came across this comment in another programmer's code: /* This method is a total disaster. It works, but stepping through it is a nightmare. The original * programmer and God are probably the only ones who understand it. ENTER AT YOUR OWN RISK!!! */ Gave me a much needed chuckle this morning. Unfortunately, I now need to enter this method to perform some maintenance. Wish me luck! :-D

    -NP Never underestimate the creativity of the end-user.

    U Offline
    U Offline
    User 4443121
    wrote on last edited by
    #23

    I found a comment in a legacy app that said "If you get this far, hold onto your pants."

    1 Reply Last reply
    0
    • N NickPace

      Just came across this comment in another programmer's code: /* This method is a total disaster. It works, but stepping through it is a nightmare. The original * programmer and God are probably the only ones who understand it. ENTER AT YOUR OWN RISK!!! */ Gave me a much needed chuckle this morning. Unfortunately, I now need to enter this method to perform some maintenance. Wish me luck! :-D

      -NP Never underestimate the creativity of the end-user.

      K Offline
      K Offline
      kungFuCrab
      wrote on last edited by
      #24

      //FIRE IN THE HOLE! I just could not believe it.

      1 Reply Last reply
      0
      • N NickPace

        Just came across this comment in another programmer's code: /* This method is a total disaster. It works, but stepping through it is a nightmare. The original * programmer and God are probably the only ones who understand it. ENTER AT YOUR OWN RISK!!! */ Gave me a much needed chuckle this morning. Unfortunately, I now need to enter this method to perform some maintenance. Wish me luck! :-D

        -NP Never underestimate the creativity of the end-user.

        F Offline
        F Offline
        Fabio Franco
        wrote on last edited by
        #25

        I've stumbled through code that was very well commented, but then further down in a a snippet of code, there it was:

        //Only God Knows...

        I guess the developer who commented that code, wasn't the one who first wrote it.

        1 Reply Last reply
        0
        • N NickPace

          Just came across this comment in another programmer's code: /* This method is a total disaster. It works, but stepping through it is a nightmare. The original * programmer and God are probably the only ones who understand it. ENTER AT YOUR OWN RISK!!! */ Gave me a much needed chuckle this morning. Unfortunately, I now need to enter this method to perform some maintenance. Wish me luck! :-D

          -NP Never underestimate the creativity of the end-user.

          P Offline
          P Offline
          patbob
          wrote on last edited by
          #26

          My favorite was the comment on a particularly nasty and spaghettified function ".. abandon hope all ye who enter here". Of course, I'm biased since I'm the one who put it there. :)

          patbob

          N 1 Reply Last reply
          0
          • P patbob

            My favorite was the comment on a particularly nasty and spaghettified function ".. abandon hope all ye who enter here". Of course, I'm biased since I'm the one who put it there. :)

            patbob

            N Offline
            N Offline
            NickPace
            wrote on last edited by
            #27

            That's the exact quote I have on the entrance to my cubicle. :laugh:

            -NP Never underestimate the creativity of the end-user.

            P 1 Reply Last reply
            0
            • N NickPace

              Just came across this comment in another programmer's code: /* This method is a total disaster. It works, but stepping through it is a nightmare. The original * programmer and God are probably the only ones who understand it. ENTER AT YOUR OWN RISK!!! */ Gave me a much needed chuckle this morning. Unfortunately, I now need to enter this method to perform some maintenance. Wish me luck! :-D

              -NP Never underestimate the creativity of the end-user.

              S Offline
              S Offline
              Steve Mayfield
              wrote on last edited by
              #28

              ENTER AT YOUR OWN RISK!!! and the secret passcode is "xyzzy" which produces a response of "you are in a maze of twisty passages" - I think that should sum things up :-\

              Steve _________________ I C(++) therefore I am

              1 Reply Last reply
              0
              • N NickPace

                Just came across this comment in another programmer's code: /* This method is a total disaster. It works, but stepping through it is a nightmare. The original * programmer and God are probably the only ones who understand it. ENTER AT YOUR OWN RISK!!! */ Gave me a much needed chuckle this morning. Unfortunately, I now need to enter this method to perform some maintenance. Wish me luck! :-D

                -NP Never underestimate the creativity of the end-user.

                W Offline
                W Offline
                wel51x
                wrote on last edited by
                #29

                borrowing from Robert Frost, I see

                1 Reply Last reply
                0
                • N NickPace

                  Just came across this comment in another programmer's code: /* This method is a total disaster. It works, but stepping through it is a nightmare. The original * programmer and God are probably the only ones who understand it. ENTER AT YOUR OWN RISK!!! */ Gave me a much needed chuckle this morning. Unfortunately, I now need to enter this method to perform some maintenance. Wish me luck! :-D

                  -NP Never underestimate the creativity of the end-user.

                  S Offline
                  S Offline
                  Sterling Camden independent consultant
                  wrote on last edited by
                  #30

                  I certainly wouldn't place odds on the author understanding it. As for God, I've seen some code that might qualify for the Stone Paradox. Maybe God could understand it, if He was stoned.

                  Contains coding, but not narcotic.

                  1 Reply Last reply
                  0
                  • N NickPace

                    That's the exact quote I have on the entrance to my cubicle. :laugh:

                    -NP Never underestimate the creativity of the end-user.

                    P Offline
                    P Offline
                    patbob
                    wrote on last edited by
                    #31

                    If that's where you work.. perhaps its time for a new job? :)

                    patbob

                    1 Reply Last reply
                    0
                    • P peterchen

                      I viewed this post, expecting a genuinely helpful and encouraging comment, a shining gem of what I one day could find in the code I work on, and a brilliant example of commenting I can aspire to reflect in my own code. What I found was the typical "look at that bad comment" that you can get from many outlets. I recommend not to trust the titles of this poster blindly, and verify the contents before making any decision. Might not view again.

                      FILETIME to time_t
                      | FoldWithUs! | sighist | WhoIncludes - Analyzing C++ include file hierarchy

                      K Offline
                      K Offline
                      KP Lee
                      wrote on last edited by
                      #32

                      peterchen wrote:

                      expecting a genuinely helpful and encouraging comment

                      Come on, give the guy a break. He didn't write it. As far as I can tell, it tells you exactly what you can expect from the following code without even looking at the code. What more can you ask of a comment?

                      1 Reply Last reply
                      0
                      • OriginalGriffO OriginalGriff

                        Thanks! I hadn't seen that... I just love the MS bug "Error Message: Your Password Must Be at Least 18770 Characters and Cannot Repeat Any of Your Previous 30689 Passwords" http://support.microsoft.com/kb/q276304/[^] I think it's the way the minimum password length increased "from 17,145 to 18,770 with the installation of SP1" that gets me... :laugh:

                        Real men don't use instructions. They are only the manufacturers opinion on how to put the thing together. Digital man: "You are, in short, an idiot with the IQ of an ant and the intellectual capacity of a hose pipe."

                        A Offline
                        A Offline
                        Ankur m
                        wrote on last edited by
                        #33

                        AFAIR, someone here maintains memorable quotes of the year under his profile page. I think it is... let me check... yes it is Carlo[^]. Good collection there! :cool:

                        ..Go Green..

                        1 Reply Last reply
                        0
                        • N NickPace

                          Just came across this comment in another programmer's code: /* This method is a total disaster. It works, but stepping through it is a nightmare. The original * programmer and God are probably the only ones who understand it. ENTER AT YOUR OWN RISK!!! */ Gave me a much needed chuckle this morning. Unfortunately, I now need to enter this method to perform some maintenance. Wish me luck! :-D

                          -NP Never underestimate the creativity of the end-user.

                          A Offline
                          A Offline
                          Ameen AboDabash
                          wrote on last edited by
                          #34

                          still better than my comments :)

                          Last Egyptian Physicist www.ameen.rr.nu

                          1 Reply Last reply
                          0
                          • N NickPace

                            Just came across this comment in another programmer's code: /* This method is a total disaster. It works, but stepping through it is a nightmare. The original * programmer and God are probably the only ones who understand it. ENTER AT YOUR OWN RISK!!! */ Gave me a much needed chuckle this morning. Unfortunately, I now need to enter this method to perform some maintenance. Wish me luck! :-D

                            -NP Never underestimate the creativity of the end-user.

                            D Offline
                            D Offline
                            DBND
                            wrote on last edited by
                            #35

                            While technically not a code comment I found a comment in a log file for a program i was integrating with which said "No goats where harmed in the making of this product."

                            1 Reply Last reply
                            0
                            • T thatraja

                              :-D Now I remember this funny article by Chris. Amusing article comments[^]

                              thatraja


                              **My Tip/Tricks
                              My Dad had a Heart Attack on this day so don't...
                              **

                              C Offline
                              C Offline
                              Chaveca_
                              wrote on last edited by
                              #36

                              Thx for that post, I LMAO :laugh:

                              T 1 Reply Last reply
                              0
                              • C Chaveca_

                                Thx for that post, I LMAO :laugh:

                                T Offline
                                T Offline
                                thatraja
                                wrote on last edited by
                                #37

                                You welcome.

                                thatraja


                                **My Tip/Tricks
                                My Dad had a Heart Attack on this day so don't...
                                **

                                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