Click here to Skip to main content
15,891,033 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Just a matter of style.. Pin
El Corazon4-Oct-07 13:34
El Corazon4-Oct-07 13:34 
AnswerRe: Just a matter of style.. Pin
David Crow4-Oct-07 9:21
David Crow4-Oct-07 9:21 
GeneralRe: Just a matter of style.. Pin
bigdenny2004-Oct-07 9:31
bigdenny2004-Oct-07 9:31 
GeneralRe: Just a matter of style.. Pin
David Crow4-Oct-07 9:46
David Crow4-Oct-07 9:46 
AnswerRe: Just a matter of style.. Pin
Michael Dunn4-Oct-07 11:03
sitebuilderMichael Dunn4-Oct-07 11:03 
GeneralRe: Just a matter of style.. Pin
bigdenny2004-Oct-07 11:06
bigdenny2004-Oct-07 11:06 
AnswerRe: Just a matter of style.. Pin
John R. Shaw4-Oct-07 11:28
John R. Shaw4-Oct-07 11:28 
AnswerRe: Just a matter of style.. Pin
DQNOK15-Oct-07 11:27
professionalDQNOK15-Oct-07 11:27 
I'm late getting in, but I just now read it.

Two viewpoints:

First: Scanning code, looking for a quick idea of what's happening. In this context, definitely the second format. Without spending 15 seconds to readjust my glasses, and beginning to mentally parse thru each symbol in the function, I couldn't make heads or tails of the first format.

Second: When you KNOW this function has an issue, and you simply MUST trace thru it. Then perhaps the first format, although I didn't get that deep. I stopped after 15 seconds (since I'm not getting paid for looking thru that code).

I TRY to write code knowing that non-programmers (but smart folk nonetheless) will be picking thru my code at some point in the future, and I try to write as literarily as possible. Non-literary symbols (the standard C++ operators like &, *, ::, etc.) can make the code difficult to read, even for me, and I do this stuff 8 hours/day!

By the way; excellent discussion on exit points. Thanks to the contributors.

David
QuestionGetting the handle of active window in other thread Pin
dudedotnet4-Oct-07 8:07
dudedotnet4-Oct-07 8:07 
AnswerRe: Getting the handle of active window in other thread Pin
Mark Salsbery4-Oct-07 8:47
Mark Salsbery4-Oct-07 8:47 
GeneralRe: Getting the handle of active window in other thread Pin
dudedotnet8-Oct-07 1:38
dudedotnet8-Oct-07 1:38 
QuestionRe: Getting the handle of active window in other thread Pin
Mark Salsbery8-Oct-07 6:47
Mark Salsbery8-Oct-07 6:47 
AnswerRe: Getting the handle of active window in other thread Pin
dudedotnet9-Oct-07 1:38
dudedotnet9-Oct-07 1:38 
GeneralRe: Getting the handle of active window in other thread Pin
Mark Salsbery9-Oct-07 5:52
Mark Salsbery9-Oct-07 5:52 
GeneralRe: Getting the handle of active window in other thread Pin
dudedotnet9-Oct-07 23:55
dudedotnet9-Oct-07 23:55 
QuestionInserting an ActiveX control based TreeView into a CAD program Pin
larsgregersen4-Oct-07 6:03
larsgregersen4-Oct-07 6:03 
QuestionIs there a way to switch focus?? Pin
Kiran Satish4-Oct-07 5:42
Kiran Satish4-Oct-07 5:42 
AnswerRe: Is there a way to switch focus?? Pin
Mark Salsbery4-Oct-07 5:51
Mark Salsbery4-Oct-07 5:51 
GeneralRe: Is there a way to switch focus?? Pin
Kiran Satish4-Oct-07 7:11
Kiran Satish4-Oct-07 7:11 
GeneralRe: Is there a way to switch focus?? Pin
Mark Salsbery4-Oct-07 7:30
Mark Salsbery4-Oct-07 7:30 
GeneralRe: Is there a way to switch focus?? Pin
Kiran Satish4-Oct-07 11:30
Kiran Satish4-Oct-07 11:30 
GeneralRe: Is there a way to switch focus?? Pin
Mark Salsbery4-Oct-07 11:43
Mark Salsbery4-Oct-07 11:43 
GeneralRe: Is there a way to switch focus?? Pin
Kiran Satish4-Oct-07 13:00
Kiran Satish4-Oct-07 13:00 
GeneralRe: Is there a way to switch focus?? Pin
Mark Salsbery4-Oct-07 13:09
Mark Salsbery4-Oct-07 13:09 
GeneralRe: Is there a way to switch focus?? Pin
Kiran Satish5-Oct-07 7:33
Kiran Satish5-Oct-07 7:33 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.