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.
  • 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
                              • J Jorgen Andersson

                                What about recursion?

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

                                J Offline
                                J Offline
                                Joan M
                                wrote on last edited by
                                #26

                                Typically it's what it happens... :thumbsup:

                                [www.tamautomation.com] | Robots, CNC and PLC machines for grinding and polishing. [YouTube channel]

                                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
                                  Joan M
                                  wrote on last edited by
                                  #27

                                  Congrats Keith! I guess you've named her/him Joan... haven't you? :rolleyes:

                                  [www.tamautomation.com] | Robots, CNC and PLC machines for grinding and polishing. [YouTube channel]

                                  1 Reply Last reply
                                  0
                                  • L Lost User

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

                                    R Offline
                                    R Offline
                                    Rob Philpott
                                    wrote on last edited by
                                    #28

                                    Doesn't work in WinForms (disputably) and the sting.Format is redundant. B-, must try harder. :)

                                    Regards, Rob Philpott.

                                    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.[^]

                                      B Offline
                                      B Offline
                                      Bassam Abdul Baki
                                      wrote on last edited by
                                      #29

                                      Congratulations and alf mabrouk!

                                      Web - BM - RSS - Math - LinkedIn

                                      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
                                        Marco Bertschi
                                        wrote on last edited by
                                        #30

                                        Congrats!

                                        The console is a black place

                                        1 Reply Last reply
                                        0
                                        • J Jorgen Andersson

                                          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 Offline
                                          L Offline
                                          Lost User
                                          wrote on last edited by
                                          #31

                                          Jörgen Andersson wrote:

                                          the grandparents are very far away.

                                          Not father than my boy's though ;) He gets very jealous of his friends' having grandparents sometimes - especially those whose grandparents spoil them rotten. I just point out to him that we spoil him anyway :)

                                          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