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 5 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.
  • R R Giskard Reventlov

    Jack Puppy wrote:

    Very Gay

    Steady: if he were still alive he'd sue your arse off. ;) www.merrens.com
    www.bkmrx.com You can ignore relatives but the neighbours live next door

    G Offline
    G Offline
    Gary Wheeler
    wrote on last edited by
    #33

    I have a feeling that's not what he'd do with your arse... :~


    Software Zen: delete this;

    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

      G Offline
      G Offline
      Gary Wheeler
      wrote on last edited by
      #34

      :gak:


      Software Zen: delete this;

      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

        C Offline
        C Offline
        Chris S Kaiser
        wrote on last edited by
        #35

        Or maybe: while(*p++ = *q++); This statement is false.

        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

          T Offline
          T Offline
          TheGreatAndPowerfulOz
          wrote on last edited by
          #36

          it's capiche not kapiche ---sig---
          Might I suggest that the universe was always the size of the cosmos. It is just that at one point the cosmos was the size of a marble. -- Colin Angus Mackay Silence is the voice of complicity PS. If you don't understand my sarcasm -- go to hell!

          1 Reply 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.

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

            I need a custom font wher the Xs look like little axes :-D The tigress is here :-D

            1 Reply Last reply
            0
            • R R Giskard Reventlov

              Jack Puppy wrote:

              Very Gay

              Steady: if he were still alive he'd sue your arse off. ;) www.merrens.com
              www.bkmrx.com You can ignore relatives but the neighbours live next door

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

              digital man wrote:

              if he were still alive he'd sue your arse off.

              He'd have to claw his way through his coffin and 6' of earth first... "If the world should blow itself up, the last audible voice would be that of an expert saying it can't be done." - Peter Ustinov

              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

                C Offline
                C Offline
                code frog 0
                wrote on last edited by
                #39

                Paul Watson wrote:

                One smart comment about HTML not being code

                I won't say wether or not it's code. But I will say, I quit mocking those who work in HTML they day I had to start learning it. I truly admire those who enjoy working in it. {ICK} Alas I am not one of them. If it were not for .Net I'm afraid I'd by trying to convince the world that the internet is bad and desktop applications are the way of the future. HTML does tend to make my stomach a bit sour though... My eyes get this glaze... My legs go to sleep... My feet start to tingle... I feel the need for a sudden bowel movement... All at the site of HTML in the raw. Makes me quite ill in fact.;P


                The enemy's gate is down. :cool: Welcome to CP in your language. Post the unicode version in My CP Blog[^] now.

                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

                  R Offline
                  R Offline
                  runelancer
                  wrote on last edited by
                  #40

                  HTML is a markup language. Not code. :) *Runs off* The elegance of code isn't as important as its neatness and readability. If your code is a tangled mess shaped like the Venus of Milo, congrats mate, real impressive and clever. Now maintain it. ;) I often make the mistake of keeping my code short, sacrificing readability in the process (ie, ifs on one line, even when brackets are involved: if(x) { delete x; x = NULL; } )

                  1 Reply Last reply
                  0
                  • S stephen hazel

                    And let us not forget error messages! We, of course, all remember and love this: haiku error messages[^] But I try to write my code for utmost readability. It ain't easy, but it is worthwhile. And I still say being a column nazi (80 cols MAX) is the way to be. I should not EVER have to scroll to the right to see what code does. JUST UP AND DOWN!!! Err, sorry. ...Steve

                    T Offline
                    T Offline
                    tec goblin
                    wrote on last edited by
                    #41

                    I allow scrolling right/left if there is some "meaning" I don't want to cut, but I reduce it. If there's a complex if where similar long things are repeated, seperated by ||s, yes, they'll split lines, but in some cases of long series of "."s I keep it one line Regarding error messages I am crazy, regarding spaces left behind code blocks too. I read my code like a novel or even more, a goodly written rpg rule book. And i want it to look nice, and clear, and avoid the reader from thinking "what did we say that "curP" is??". I also write xml comments before every method, and many variables too. But sometimes, artistically, long names are not sweet. They can help, though, a lot with reading (after all, it's not me who writes them, it's the autocomplete). In extreme cases I had method names with 5 words :P (NEVER abbreviated).

                    1 Reply Last reply
                    0
                    • E El Corazon

                      Paul Watson wrote:

                      (So how does a lady code? With elegance, wit and charm?)

                      only when the program behaves.... When there are bugs.... out comes the axe. one of my previous bosses and I had many conversations over whether or not Software was "science or art". I don't think this is an "or" situation, nor a 50/50 scenerio. Based on the user's experience he/she will make it more or less art. In her case she was a pure science person, software was rigid, there was only one way to do things. _________________________ Asu no koto o ieba, tenjo de nezumi ga warau. Talk about things of tomorrow and the mice in the ceiling laugh. (Japanese Proverb)

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

                      You have to know when it is science and when it is art. The tigress is here :-D

                      E 1 Reply Last reply
                      0
                      • L Lost User

                        You have to know when it is science and when it is art. The tigress is here :-D

                        E Offline
                        E Offline
                        El Corazon
                        wrote on last edited by
                        #43

                        Trollslayer wrote:

                        You have to know when it is science and when it is art.

                        are we talking programming still or now axe wielding? _________________________ Asu no koto o ieba, tenjo de nezumi ga warau. Talk about things of tomorrow and the mice in the ceiling laugh. (Japanese Proverb)

                        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

                          N Offline
                          N Offline
                          nasirtheguy
                          wrote on last edited by
                          #44

                          code must be attractive and attractive code is 1.reusable 2. meaningful 3. readable & short as possible, so it is the basic property of an attractive code.

                          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

                            E Offline
                            E Offline
                            elGamal
                            wrote on last edited by
                            #45

                            In my view, a piece of code is beautiful if it does what is supposed to do and it doesn't need any line of comments, but still is fully understandable by every programmer, even newbies. :)

                            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

                              I Offline
                              I Offline
                              impop
                              wrote on last edited by
                              #46

                              That should not be a question of elegance, I think. In real life, one msut take a piece of code with a bug and find the solution quickly just because the customer need it. Well-formed and well-documented code is a healthy way of programming. regards, Miquel

                              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!

                                S Offline
                                S Offline
                                Sorcerer5
                                wrote on last edited by
                                #47

                                Making your code readable for other code for other people is a good thing. But some people who can't read code without comments in the code should not even have the code in front of them. :~

                                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

                                  M Offline
                                  M Offline
                                  mackrackit
                                  wrote on last edited by
                                  #48

                                  One thing I do try to do is check my spelling!! Or maybe I just do not understand "got to" in you message. Is this a new code? If you made mistakes like that in you code, I do not think looking good would help. What about you?

                                  P 1 Reply Last reply
                                  0
                                  • M mackrackit

                                    One thing I do try to do is check my spelling!! Or maybe I just do not understand "got to" in you message. Is this a new code? If you made mistakes like that in you code, I do not think looking good would help. What about you?

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

                                    I think you should take it easy and realise I made a grammar, not a spelling, mistake. Code wouldn't compile if it had that error in it so back off. regards, Paul Watson Ireland Feed Henry!

                                    Shog9 wrote:

                                    eh, stop bugging me about it, give it a couple of days, see what happens.

                                    M 1 Reply Last reply
                                    0
                                    • P Paul Watson

                                      I think you should take it easy and realise I made a grammar, not a spelling, mistake. Code wouldn't compile if it had that error in it so back off. regards, Paul Watson Ireland Feed Henry!

                                      Shog9 wrote:

                                      eh, stop bugging me about it, give it a couple of days, see what happens.

                                      M Offline
                                      M Offline
                                      mackrackit
                                      wrote on last edited by
                                      #50

                                      Did you catch the mistake in the reply that I made? ;) I also like to have my code look a certain way though, but I do not put enough comments in for most people. The thing is, if your code does the job like you want it to... does it matter what it looks like? No it does not. Most will never even see you code. More power to you if some say you code like a girl, some of the best coders I know are girls. Quit bothering with the thoughts of others. It will only get you down. Dave

                                      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!

                                        U Offline
                                        U Offline
                                        urbane tiger
                                        wrote on last edited by
                                        #51

                                        the real question is which should we value more highly, syntatical beauty or semantic elegance. PhilD

                                        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