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. Self commenting code

Self commenting code

Scheduled Pinned Locked Moved The Lounge
comquestionannouncement
31 Posts 21 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.
  • K Keith Barrow

    var numberOfSons +=1;

    PB 369,783 wrote:

    I just find him very unlikeable, and I think the way he looks like a prettier version of his Mum is very disturbing.[^]

    Mike HankeyM Offline
    Mike HankeyM Offline
    Mike Hankey
    wrote on last edited by
    #6

    Congrats but don't you mean self replicating code? :)

    If first you don't succeed, hide all evidence you ever tried!

    1 Reply Last reply
    0
    • K Keith Barrow

      var numberOfSons +=1;

      PB 369,783 wrote:

      I just find him very unlikeable, and I think the way he looks like a prettier version of his Mum is very disturbing.[^]

      P Offline
      P Offline
      PIEBALDconsult
      wrote on last edited by
      #7

      Exceptional!

      You'll never get very far if all you do is follow instructions.

      1 Reply Last reply
      0
      • K Keith Barrow

        var numberOfSons +=1;

        PB 369,783 wrote:

        I just find him very unlikeable, and I think the way he looks like a prettier version of his Mum is very disturbing.[^]

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #8

        Unfortunately

        HoursOfSleepPerNight /=4;
        NightsOut =0;

        but also

        PureUnadultaratedJoy *= lots;

        So

        Congrats +=1;

        L 1 Reply Last reply
        0
        • K Keith Barrow

          var numberOfSons +=1;

          PB 369,783 wrote:

          I just find him very unlikeable, and I think the way he looks like a prettier version of his Mum is very disturbing.[^]

          M Offline
          M Offline
          Mycroft Holmes
          wrote on last edited by
          #9

          Congrats - may the little bugger bring joy to your lives because for sure he is going to remove sleep.

          Never underestimate the power of human stupidity RAH

          1 Reply Last reply
          0
          • K Keith Barrow

            var numberOfSons +=1;

            PB 369,783 wrote:

            I just find him very unlikeable, and I think the way he looks like a prettier version of his Mum is very disturbing.[^]

            K Offline
            K Offline
            Karen Mitchelle
            wrote on last edited by
            #10

            Did he say, "Hello World!"? :) Congratulations! :)

            Don't mind those people who say you're not HOT. At least you know you're COOL. I'm not afraid of falling, I'm afraid of the sudden stop at the end of the fall! - Richard Andrew x64

            1 Reply Last reply
            0
            • K Keith Barrow

              var numberOfSons +=1;

              PB 369,783 wrote:

              I just find him very unlikeable, and I think the way he looks like a prettier version of his Mum is very disturbing.[^]

              M Offline
              M Offline
              Marc Clifton
              wrote on last edited by
              #11

              Congrats! Marc

              1 Reply Last reply
              0
              • L Lost User

                Unfortunately

                HoursOfSleepPerNight /=4;
                NightsOut =0;

                but also

                PureUnadultaratedJoy *= lots;

                So

                Congrats +=1;

                L Offline
                L Offline
                Lost User
                wrote on last edited by
                #12

                _Maxxx_ wrote:

                PureUnadultaratedJoy *= lots;

                That's not true. I have seen young parents with murder in their eyes, who then got the big biochemical pacifier from mother nature. That was when I decided that seven billions of us were enough on one planet.

                The language is JavaScript. that of Mordor, which I will not utter here
                I hold an A-7 computer expert classification, Commodore. I'm well acquainted with Dr. Daystrom's theories and discoveries. The basic design of all our ship's computers are JavaScript.

                K L 2 Replies Last reply
                0
                • K Keith Barrow

                  var numberOfSons +=1;

                  PB 369,783 wrote:

                  I just find him very unlikeable, and I think the way he looks like a prettier version of his Mum is very disturbing.[^]

                  P Offline
                  P Offline
                  phil o
                  wrote on last edited by
                  #13

                  I would prefer making the numberOfSons variable an unsigned integer directly (a byte is most suitable, unless you have a massive harem). Congrats :) PS: maybe you could also add

                  Random r = new Random(newChild.Quietness());
                  TimeSpan averageDailySleepTime = TimeSpan.FromHours(r.NextDouble(0d, 8d));

                  There are two kinds of people in the world: those who separate humankind in two distinct categories, and those who don't. "I have two hobbies: breasts." DSK

                  1 Reply Last reply
                  0
                  • L Lost User

                    _Maxxx_ wrote:

                    PureUnadultaratedJoy *= lots;

                    That's not true. I have seen young parents with murder in their eyes, who then got the big biochemical pacifier from mother nature. That was when I decided that seven billions of us were enough on one planet.

                    The language is JavaScript. that of Mordor, which I will not utter here
                    I hold an A-7 computer expert classification, Commodore. I'm well acquainted with Dr. Daystrom's theories and discoveries. The basic design of all our ship's computers are JavaScript.

                    K Offline
                    K Offline
                    Karen Mitchelle
                    wrote on last edited by
                    #14

                    CDP1802 wrote:

                    young parents

                    Maybe because they aren't ready to be parents yet? For me, what Maxx wrote is true, it's just that some didn't see that way because they weren't ready to embrace parenthood. Yet.

                    Don't mind those people who say you're not HOT. At least you know you're COOL. I'm not afraid of falling, I'm afraid of the sudden stop at the end of the fall! - Richard Andrew x64

                    1 Reply Last reply
                    0
                    • L Lost User

                      _Maxxx_ wrote:

                      PureUnadultaratedJoy *= lots;

                      That's not true. I have seen young parents with murder in their eyes, who then got the big biochemical pacifier from mother nature. That was when I decided that seven billions of us were enough on one planet.

                      The language is JavaScript. that of Mordor, which I will not utter here
                      I hold an A-7 computer expert classification, Commodore. I'm well acquainted with Dr. Daystrom's theories and discoveries. The basic design of all our ship's computers are JavaScript.

                      L Offline
                      L Offline
                      Lost User
                      wrote on last edited by
                      #15

                      CDP1802 wrote:

                      the big biochemical pacifier from mother nature.

                      ? what am I missing?

                      CDP1802 wrote:

                      I have seen young parents with murder in their eyes,

                      I've had that same murder in my eyes, too. Being a parent is HARD - no two ways about it. Some go in entirely unprepared, others think they are prepared. Nobody is, actually, prepared. With a big, close family, it's much MUCH easier. In my case, just the two of us, grandparents all kicking up daisy's all relatives overseas. Elephanting hard. Still it. But, somehow, the moments of pure, unadulterated joy just make up for it all. It's one of those things you have to experience - because however much you try to explain both the joy, and the tiredness, non-parents just don't understand. don't get me wrong, I don't think 'everyone should have a kid' - far from it - there should be an exam - but once you've been there, some of the crap parents have said in your past suddenly makes sense. And, when your boy is a toddler, in the public toilet, and shouts out loud enough for everyone to hear "Hey Dad, your willy's really big!" it somehow makes it all worthwhile ;)

                      J 1 Reply Last reply
                      0
                      • K Keith Barrow

                        var numberOfSons +=1;

                        PB 369,783 wrote:

                        I just find him very unlikeable, and I think the way he looks like a prettier version of his Mum is very disturbing.[^]

                        J Offline
                        J Offline
                        Jorgen Andersson
                        wrote on last edited by
                        #16

                        Var Sleep /= 2; Congrats!

                        Wrong is evil and must be defeated. - Jeff Ello[^]

                        1 Reply Last reply
                        0
                        • K Keith Barrow

                          var numberOfSons +=1;

                          PB 369,783 wrote:

                          I just find him very unlikeable, and I think the way he looks like a prettier version of his Mum is very disturbing.[^]

                          Kornfeld Eliyahu PeterK Offline
                          Kornfeld Eliyahu PeterK Offline
                          Kornfeld Eliyahu Peter
                          wrote on last edited by
                          #17

                          Congratulations! :rose:

                          I'm not questioning your powers of observation; I'm merely remarking upon the paradox of asking a masked man who he is. (V)

                          "It never ceases to amaze me that a spacecraft launched in 1977 can be fixed remotely from Earth." ― Brian Cox

                          1 Reply Last reply
                          0
                          • B baloneyman

                            Congratulations! (just don't put it in a loop)

                            J Offline
                            J Offline
                            Jorgen Andersson
                            wrote on last edited by
                            #18

                            What about recursion?

                            Wrong is evil and must be defeated. - Jeff Ello[^]

                            L J 2 Replies Last reply
                            0
                            • K Keith Barrow

                              var numberOfSons +=1;

                              PB 369,783 wrote:

                              I just find him very unlikeable, and I think the way he looks like a prettier version of his Mum is very disturbing.[^]

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

                              var numberOfDiapers +=1;

                              Congrats!

                              thatraja

                              Code converters | Education Needed | Improve EverythingNew

                              1 Reply Last reply
                              0
                              • J Jorgen Andersson

                                What about recursion?

                                Wrong is evil and must be defeated. - Jeff Ello[^]

                                L Offline
                                L Offline
                                Lost User
                                wrote on last edited by
                                #20

                                Jörgen Andersson wrote:

                                What about recursion?

                                See Here[^]

                                J 1 Reply Last reply
                                0
                                • K Keith Barrow

                                  var numberOfSons +=1;

                                  PB 369,783 wrote:

                                  I just find him very unlikeable, and I think the way he looks like a prettier version of his Mum is very disturbing.[^]

                                  G Offline
                                  G Offline
                                  GSN CP
                                  wrote on last edited by
                                  #21

                                  while(!thanksReceived)
                                  {
                                  congratulations += 1;
                                  }

                                  .:>GSN<:.

                                  1 Reply Last reply
                                  0
                                  • K Keith Barrow

                                    var numberOfSons +=1;

                                    PB 369,783 wrote:

                                    I just find him very unlikeable, and I think the way he looks like a prettier version of his Mum is very disturbing.[^]

                                    L Offline
                                    L Offline
                                    Lost User
                                    wrote on last edited by
                                    #22

                                    Console.WriteLine(string.Format("I'm a father of {0} sons.", numberOfSons));

                                    R 1 Reply Last reply
                                    0
                                    • L Lost User

                                      Jörgen Andersson wrote:

                                      What about recursion?

                                      See Here[^]

                                      J Offline
                                      J Offline
                                      Jorgen Andersson
                                      wrote on last edited by
                                      #23

                                      I expected that one.:thumbsup:

                                      Wrong is evil and must be defeated. - Jeff Ello[^]

                                      1 Reply Last reply
                                      0
                                      • L Lost User

                                        CDP1802 wrote:

                                        the big biochemical pacifier from mother nature.

                                        ? what am I missing?

                                        CDP1802 wrote:

                                        I have seen young parents with murder in their eyes,

                                        I've had that same murder in my eyes, too. Being a parent is HARD - no two ways about it. Some go in entirely unprepared, others think they are prepared. Nobody is, actually, prepared. With a big, close family, it's much MUCH easier. In my case, just the two of us, grandparents all kicking up daisy's all relatives overseas. Elephanting hard. Still it. But, somehow, the moments of pure, unadulterated joy just make up for it all. It's one of those things you have to experience - because however much you try to explain both the joy, and the tiredness, non-parents just don't understand. don't get me wrong, I don't think 'everyone should have a kid' - far from it - there should be an exam - but once you've been there, some of the crap parents have said in your past suddenly makes sense. And, when your boy is a toddler, in the public toilet, and shouts out loud enough for everyone to hear "Hey Dad, your willy's really big!" it somehow makes it all worthwhile ;)

                                        J Offline
                                        J Offline
                                        Jorgen Andersson
                                        wrote on last edited by
                                        #24

                                        Couldn't have expressed it better even if I tried. We're in the same situation here, except in our case also the grandparents are very far away.

                                        Wrong is evil and must be defeated. - Jeff Ello[^]

                                        L 1 Reply Last reply
                                        0
                                        • K Keith Barrow

                                          var numberOfSons +=1;

                                          PB 369,783 wrote:

                                          I just find him very unlikeable, and I think the way he looks like a prettier version of his Mum is very disturbing.[^]

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

                                          :thumbsup::thumbsup::thumbsup:

                                          Veni, vidi, vici.

                                          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