Code like a girl
-
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 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... -
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
doPaul 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
-
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...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
-
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
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 -
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 -
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
a) Yes, it's not difficult, given the tools we have these days b) If there's any conflict, I prefer to perfect my code's inner beauty. ;P
-
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 -
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 -
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
-
Paul Watson wrote:
I have always liked that in C++, the -> instead of the C# style period
How I long to use -> again. Blogless
CLI/C++? :)
-
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
doPaul 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)
-
CLI/C++? :)
-
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
doIf I'd guessed before clicking, I'd have expected that link to go here[^]... Stability. What an interesting concept. -- Chris Maunder
-
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
doAnd 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
-
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 doorI have a feeling that's not what he'd do with your arse... :~
Software Zen:
delete this;
-
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:gak:
Software Zen:
delete this;
-
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
Or maybe: while(*p++ = *q++); This statement is false.
-
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
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! -
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.
I need a custom font wher the Xs look like little axes :-D The tigress is here :-D
-
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 doordigital 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