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. Code like a girl

Code like a girl

Scheduled Pinned Locked Moved The Lounge
htmlcomjsonquestion
51 Posts 27 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.
  • P Paul Watson

    Do engineers and programmers care about concepts like beauty and elegance? Should they? "As for spending too much time on making the code look right down to the last indentation - my code has been called “girl code”"

    Creating Passionate Users: Code like a girl[^] I certainly do this with HTML where I go to great lengths to make the code* look good. What about you? * One smart comment about HTML not being code and I'll brand you a metrosexual for the rest of your queer days, kapiche? regards, Paul Watson Ireland Feed Henry! K(arl) wrote: oh, and BTW, CHRISTIAN ISN'T A PARADOX, HE IS A TASMANIAN!

    adapted from toxcct:

    while (!enough)
    sprintf 0 || 1
    do

    -- modified at 5:03 Tuesday 4th April, 2006

    C Offline
    C Offline
    Corinna John
    wrote on last edited by
    #3

    I always format code to be readable for other coders - and for myself, a few projects later. But that's not for something like beauty or elegance: I cannot read my own code, if the brackets are not on the correct column. _________________________________ Please inform me about my English mistakes, as I'm still trying to learn your language!

    P S U 3 Replies Last reply
    0
    • P Paul Watson

      Do engineers and programmers care about concepts like beauty and elegance? Should they? "As for spending too much time on making the code look right down to the last indentation - my code has been called “girl code”"

      Creating Passionate Users: Code like a girl[^] I certainly do this with HTML where I go to great lengths to make the code* look good. What about you? * One smart comment about HTML not being code and I'll brand you a metrosexual for the rest of your queer days, kapiche? regards, Paul Watson Ireland Feed Henry! K(arl) wrote: oh, and BTW, CHRISTIAN ISN'T A PARADOX, HE IS A TASMANIAN!

      adapted from toxcct:

      while (!enough)
      sprintf 0 || 1
      do

      -- modified at 5:03 Tuesday 4th April, 2006

      R Offline
      R Offline
      R Giskard Reventlov
      wrote on last edited by
      #4

      I must be nothing more than a big-bosomed, white-bloused, skirt-wearing girlie cos I've always ensured that my code looked as good as it worked and yet everyone tells me I'm nothing more or less than an unreconstituted neanderthal. Go figure. :laugh: Seriously though, I was always taught that code that is well written should look as good as it works so as to be readable. Try reading a novel where the text has no real structure or design and is spread, willy-nilly, all over the page. This isn't about being a girlie, its about being a good programmer. www.merrens.com
      www.bkmrx.com You can ignore relatives but the neighbours live next door

      P 1 Reply Last reply
      0
      • L Lost User

        I dont know. Judge for your selves: switch( pConfig->type ) { case CONF_REQ_IP_ADDRESS: if( (LongEndianSwap(*((PULONG)pConfig->data)) != 0xA0B0C0D) && (LongEndianSwap(*((PULONG)pConfig->data)) != 0xA0B0C0E) ) { pAdapter->ClientIpAddress = *((PULONG)pConfig->data); } pAdapter->confIPaddress = TRUE; break; ... NOTE, this is actually 4 space tabbed and isnt displaying correctly. Nunc est bibendum

        P Offline
        P Offline
        Paul Watson
        wrote on last edited by
        #5

        It has a certain sexiness with the uppercase, repeated *((PULONG and -> bits. I have always liked that in C++, the -> instead of the C# style period. regards, Paul Watson Ireland Feed Henry! K(arl) wrote: oh, and BTW, CHRISTIAN ISN'T A PARADOX, HE IS A TASMANIAN!

        adapted from toxcct:

        while (!enough)
        sprintf 0 || 1
        do

        V L N 3 Replies Last reply
        0
        • P Paul Watson

          Do engineers and programmers care about concepts like beauty and elegance? Should they? "As for spending too much time on making the code look right down to the last indentation - my code has been called “girl code”"

          Creating Passionate Users: Code like a girl[^] I certainly do this with HTML where I go to great lengths to make the code* look good. What about you? * One smart comment about HTML not being code and I'll brand you a metrosexual for the rest of your queer days, kapiche? regards, Paul Watson Ireland Feed Henry! K(arl) wrote: oh, and BTW, CHRISTIAN ISN'T A PARADOX, HE IS A TASMANIAN!

          adapted from toxcct:

          while (!enough)
          sprintf 0 || 1
          do

          -- modified at 5:03 Tuesday 4th April, 2006

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

          code like a lady :) The tigress is here :-D

          P 1 Reply Last reply
          0
          • C Corinna John

            I always format code to be readable for other coders - and for myself, a few projects later. But that's not for something like beauty or elegance: I cannot read my own code, if the brackets are not on the correct column. _________________________________ Please inform me about my English mistakes, as I'm still trying to learn your language!

            P Offline
            P Offline
            Paul Watson
            wrote on last edited by
            #7

            Would you say readable code is beautiful code? Or can it be readable but rather plain? I guess we have to be careful with the word elegant here as it can apply to the design as well as the syntax. I actually like to make elegant, or beautiful, syntax. regards, Paul Watson Ireland Feed Henry! K(arl) wrote: oh, and BTW, CHRISTIAN ISN'T A PARADOX, HE IS A TASMANIAN!

            adapted from toxcct:

            while (!enough)
            sprintf 0 || 1
            do

            S 1 Reply Last reply
            0
            • L Lost User

              code like a lady :) The tigress is here :-D

              P Offline
              P Offline
              Paul Watson
              wrote on last edited by
              #8

              Oh, I say. My deepest apologies, maam. (So how does a lady code? With elegance, wit and charm?) regards, Paul Watson Ireland Feed Henry! K(arl) wrote: oh, and BTW, CHRISTIAN ISN'T A PARADOX, HE IS A TASMANIAN!

              adapted from toxcct:

              while (!enough)
              sprintf 0 || 1
              do

              E 1 Reply Last reply
              0
              • R R Giskard Reventlov

                I must be nothing more than a big-bosomed, white-bloused, skirt-wearing girlie cos I've always ensured that my code looked as good as it worked and yet everyone tells me I'm nothing more or less than an unreconstituted neanderthal. Go figure. :laugh: Seriously though, I was always taught that code that is well written should look as good as it works so as to be readable. Try reading a novel where the text has no real structure or design and is spread, willy-nilly, all over the page. This isn't about being a girlie, its about being a good programmer. www.merrens.com
                www.bkmrx.com You can ignore relatives but the neighbours live next door

                P Offline
                P Offline
                Paul Watson
                wrote on last edited by
                #9

                digital man wrote:

                and yet everyone tells me I'm nothing more or less than an unreconstituted neanderthal.

                It is the inner woman that counts, digital man. ;)

                digital man wrote:

                Try reading a novel where the text has no real structure or design and is spread, willy-nilly, all over the page.

                Sounds like poetry. regards, Paul Watson Ireland Feed Henry! K(arl) wrote: oh, and BTW, CHRISTIAN ISN'T A PARADOX, HE IS A TASMANIAN!

                adapted from toxcct:

                while (!enough)
                sprintf 0 || 1
                do

                -- modified at 6:54 Friday 31st March, 2006

                1 Reply Last reply
                0
                • P Paul Watson

                  Do engineers and programmers care about concepts like beauty and elegance? Should they? "As for spending too much time on making the code look right down to the last indentation - my code has been called “girl code”"

                  Creating Passionate Users: Code like a girl[^] I certainly do this with HTML where I go to great lengths to make the code* look good. What about you? * One smart comment about HTML not being code and I'll brand you a metrosexual for the rest of your queer days, kapiche? regards, Paul Watson Ireland Feed Henry! K(arl) wrote: oh, and BTW, CHRISTIAN ISN'T A PARADOX, HE IS A TASMANIAN!

                  adapted from toxcct:

                  while (!enough)
                  sprintf 0 || 1
                  do

                  -- modified at 5:03 Tuesday 4th April, 2006

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

                  Going by what the pics say, I do write girl code. And I'm proud of it. > As for spending too much time on making the > code look right down to the last indentation Fits me to a T. Cheers, Vikram.


                  I don't know and you don't either. Militant Agnostic

                  1 Reply Last reply
                  0
                  • P Paul Watson

                    It has a certain sexiness with the uppercase, repeated *((PULONG and -> bits. I have always liked that in C++, the -> instead of the C# style period. regards, Paul Watson Ireland Feed Henry! K(arl) wrote: oh, and BTW, CHRISTIAN ISN'T A PARADOX, HE IS A TASMANIAN!

                    adapted from toxcct:

                    while (!enough)
                    sprintf 0 || 1
                    do

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

                    Paul Watson wrote:

                    PULONG

                    Yeah, it caught my eye too. :-D Cheers, Vikram.


                    I don't know and you don't either. Militant Agnostic

                    1 Reply Last reply
                    0
                    • P Paul Watson

                      Do engineers and programmers care about concepts like beauty and elegance? Should they? "As for spending too much time on making the code look right down to the last indentation - my code has been called “girl code”"

                      Creating Passionate Users: Code like a girl[^] I certainly do this with HTML where I go to great lengths to make the code* look good. What about you? * One smart comment about HTML not being code and I'll brand you a metrosexual for the rest of your queer days, kapiche? regards, Paul Watson Ireland Feed Henry! K(arl) wrote: oh, and BTW, CHRISTIAN ISN'T A PARADOX, HE IS A TASMANIAN!

                      adapted from toxcct:

                      while (!enough)
                      sprintf 0 || 1
                      do

                      -- modified at 5:03 Tuesday 4th April, 2006

                      P Offline
                      P Offline
                      ProffK
                      wrote on last edited by
                      #12

                      One of my lecturers (whom I alsways suspected of being very gay) emphasised indentation as poetry. Although I think sexual orientation has nothing to do with it, except being like a girl, I do believe ones code should look nice, besides being readible. I used to get high on life until I realized that life was cut with morons - Unknown

                      P 1 Reply Last reply
                      0
                      • P Paul Watson

                        Do engineers and programmers care about concepts like beauty and elegance? Should they? "As for spending too much time on making the code look right down to the last indentation - my code has been called “girl code”"

                        Creating Passionate Users: Code like a girl[^] I certainly do this with HTML where I go to great lengths to make the code* look good. What about you? * One smart comment about HTML not being code and I'll brand you a metrosexual for the rest of your queer days, kapiche? regards, Paul Watson Ireland Feed Henry! K(arl) wrote: oh, and BTW, CHRISTIAN ISN'T A PARADOX, HE IS A TASMANIAN!

                        adapted from toxcct:

                        while (!enough)
                        sprintf 0 || 1
                        do

                        -- modified at 5:03 Tuesday 4th April, 2006

                        V Offline
                        V Offline
                        V 0
                        wrote on last edited by
                        #13

                        girl code is when you use little circles or hearts to dot the i :laugh: Coulda, woulda, shoulda doesn't matter if you don't.

                        P L 2 Replies Last reply
                        0
                        • V V 0

                          girl code is when you use little circles or hearts to dot the i :laugh: Coulda, woulda, shoulda doesn't matter if you don't.

                          P Offline
                          P Offline
                          Paul Watson
                          wrote on last edited by
                          #14

                          You aren't making fun of my IDE, are you? [^] :cross girl-coder look: Reminds me of the Aerosmith song[^]. regards, Paul Watson Ireland Feed Henry! K(arl) wrote: oh, and BTW, CHRISTIAN ISN'T A PARADOX, HE IS A TASMANIAN!

                          adapted from toxcct:

                          while (!enough)
                          sprintf 0 || 1
                          do

                          V V M G 4 Replies Last reply
                          0
                          • P ProffK

                            One of my lecturers (whom I alsways suspected of being very gay) emphasised indentation as poetry. Although I think sexual orientation has nothing to do with it, except being like a girl, I do believe ones code should look nice, besides being readible. I used to get high on life until I realized that life was cut with morons - Unknown

                            P Offline
                            P Offline
                            Paul Watson
                            wrote on last edited by
                            #15

                            ProffK wrote:

                            being very gay

                            Is that different from just being gay? I never did get that saying. regards, Paul Watson Ireland Feed Henry! K(arl) wrote: oh, and BTW, CHRISTIAN ISN'T A PARADOX, HE IS A TASMANIAN!

                            adapted from toxcct:

                            while (!enough)
                            sprintf 0 || 1
                            do

                            P J 2 Replies Last reply
                            0
                            • P Paul Watson

                              You aren't making fun of my IDE, are you? [^] :cross girl-coder look: Reminds me of the Aerosmith song[^]. regards, Paul Watson Ireland Feed Henry! K(arl) wrote: oh, and BTW, CHRISTIAN ISN'T A PARADOX, HE IS A TASMANIAN!

                              adapted from toxcct:

                              while (!enough)
                              sprintf 0 || 1
                              do

                              V Offline
                              V Offline
                              V 0
                              wrote on last edited by
                              #16

                              Paul Watson wrote:

                              Reminds me of the Aerosmith song[^].

                              I know the song, I like it ;P. Coulda, woulda, shoulda doesn't matter if you don't.

                              1 Reply Last reply
                              0
                              • P Paul Watson

                                It has a certain sexiness with the uppercase, repeated *((PULONG and -> bits. I have always liked that in C++, the -> instead of the C# style period. regards, Paul Watson Ireland Feed Henry! K(arl) wrote: oh, and BTW, CHRISTIAN ISN'T A PARADOX, HE IS A TASMANIAN!

                                adapted from toxcct:

                                while (!enough)
                                sprintf 0 || 1
                                do

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

                                PULONG is a DDK type. And of course this is C, coming from a driver. So, lots of nice meaty casting! (Actually, its part of a DHCP server I am working on, that resides in the driver) Nunc est bibendum

                                1 Reply Last reply
                                0
                                • P Paul Watson

                                  ProffK wrote:

                                  being very gay

                                  Is that different from just being gay? I never did get that saying. regards, Paul Watson Ireland Feed Henry! K(arl) wrote: oh, and BTW, CHRISTIAN ISN'T A PARADOX, HE IS A TASMANIAN!

                                  adapted from toxcct:

                                  while (!enough)
                                  sprintf 0 || 1
                                  do

                                  P Offline
                                  P Offline
                                  ProffK
                                  wrote on last edited by
                                  #18

                                  Paul Watson wrote:

                                  ProffK wrote: being very gay Is that different from just being gay? I never did get that saying.

                                  Yes, with someone who is 'just gay' it isn't as glaringly noticeable as it is with a screaming queen. I used to get high on life until I realized that life was cut with morons - Unknown

                                  1 Reply Last reply
                                  0
                                  • P Paul Watson

                                    Do engineers and programmers care about concepts like beauty and elegance? Should they? "As for spending too much time on making the code look right down to the last indentation - my code has been called “girl code”"

                                    Creating Passionate Users: Code like a girl[^] I certainly do this with HTML where I go to great lengths to make the code* look good. What about you? * One smart comment about HTML not being code and I'll brand you a metrosexual for the rest of your queer days, kapiche? regards, Paul Watson Ireland Feed Henry! K(arl) wrote: oh, and BTW, CHRISTIAN ISN'T A PARADOX, HE IS A TASMANIAN!

                                    adapted from toxcct:

                                    while (!enough)
                                    sprintf 0 || 1
                                    do

                                    -- modified at 5:03 Tuesday 4th April, 2006

                                    H Offline
                                    H Offline
                                    HalfWayMan
                                    wrote on last edited by
                                    #19

                                    I find that well written code often does look aesthetically pleasing, however obviously some effort should be put into readability. I always try to ensure that my code does "look" good, atleast to my eyes: for (int iOperand = 0; iOperand < 3; iOperand++) {         if (pToken->iToken == TOK_IDENTIFIER          || pToken->iToken == TOK_OBRACKET          || pToken->iToken == TOK_INTEGER          || g_aTokens[pToken->iToken].m_iClass == TOKEN_REGISTER)         {                 pInstruction->apOperands[iOperand] = Parse_HandleOperand (pInstruction->iOpcode, &pToken);                 if (!pInstruction->apOperands[iOperand])                         return NULL;                 ++pInstruction->iNumOperands;         }         else                 break; } Just as an aside; I have never met a female programmer before...

                                    V 1 Reply Last reply
                                    0
                                    • P Paul Watson

                                      You aren't making fun of my IDE, are you? [^] :cross girl-coder look: Reminds me of the Aerosmith song[^]. regards, Paul Watson Ireland Feed Henry! K(arl) wrote: oh, and BTW, CHRISTIAN ISN'T A PARADOX, HE IS A TASMANIAN!

                                      adapted from toxcct:

                                      while (!enough)
                                      sprintf 0 || 1
                                      do

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

                                      Paul Watson wrote:

                                      You aren't making fun of my IDE, are you?

                                      X| X| X| Is that really what your IDE looks like or did you use some image processing s/w to do that? Cheers, Vikram.


                                      I don't know and you don't either. Militant Agnostic

                                      P 1 Reply Last reply
                                      0
                                      • H HalfWayMan

                                        I find that well written code often does look aesthetically pleasing, however obviously some effort should be put into readability. I always try to ensure that my code does "look" good, atleast to my eyes: for (int iOperand = 0; iOperand < 3; iOperand++) {         if (pToken->iToken == TOK_IDENTIFIER          || pToken->iToken == TOK_OBRACKET          || pToken->iToken == TOK_INTEGER          || g_aTokens[pToken->iToken].m_iClass == TOKEN_REGISTER)         {                 pInstruction->apOperands[iOperand] = Parse_HandleOperand (pInstruction->iOpcode, &pToken);                 if (!pInstruction->apOperands[iOperand])                         return NULL;                 ++pInstruction->iNumOperands;         }         else                 break; } Just as an aside; I have never met a female programmer before...

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

                                        I like your coding style and follow something almost identical, except * If I have to break the condition in an if clause, I don't indent the next line by a single space, I use a 4-character tab to indent it. * I enclose single-statement if and else blocks with braces. * Since I largely do C#, I don't use Hungarian. Cheers, Vikram.


                                        I don't know and you don't either. Militant Agnostic

                                        V 1 Reply Last reply
                                        0
                                        • V Vikram A Punathambekar

                                          Paul Watson wrote:

                                          You aren't making fun of my IDE, are you?

                                          X| X| X| Is that really what your IDE looks like or did you use some image processing s/w to do that? Cheers, Vikram.


                                          I don't know and you don't either. Militant Agnostic

                                          P Offline
                                          P Offline
                                          Paul Watson
                                          wrote on last edited by
                                          #22

                                          It is my Windows XP theme. :) regards, Paul Watson Ireland Feed Henry! K(arl) wrote: oh, and BTW, CHRISTIAN ISN'T A PARADOX, HE IS A TASMANIAN!

                                          adapted from toxcct:

                                          while (!enough)
                                          sprintf 0 || 1
                                          do

                                          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