Re: AfxGetApp() returns NULL
- From: "Tom Serface" <tom.nospam@xxxxxxxxxxxxx>
- Date: Tue, 18 Dec 2007 11:50:14 -0800
Yeah, that makes sense to me. I guess my point is that there is no "standard". There are only lots of ways to do the same thing and, fortunately, the compiler gives us the opportunity to do it our way ...
Indenting one space past the brace? No... I usually use the tab key and just set the tabs to whatever I want (could be one space). That way someone else who wants 4 spaces per tab can set their own value as well. I thought that was how it was supposed to work.
You're right about using the debugger. Also I've found Intellisense to be very useful jumping to the definitions of functions and even just displaying the prototype and any information written into the .h file near the prototype. When I think back to the "old days" the IDE we have now is so far superior that it's almost like rocket science. I'm all for improving it, but I'm not going back to 6.0 :o)
Tom
"David Ching" <dc@xxxxxxxxxxxxxxxxxxxxxx> wrote in message news:R6V9j.31985$JD.30144@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hi Tom, sure these are all common indentation themes that are readily supported by programmer's editors, and it is no big deal to go from one to another one of these. The IDE lets you do that. But when Joe knocks it for not out-of-the-box supporting his entirely non-standard indentation style (have you ever heard of indenting one space past the brace?) and then calls the IDE a third rate editor because of things like this, I want to get the point across that it is his expectations that are more out of line with reality than the IDE's shortcomings. While I would grudgingly tolerate code to be checked in that followed any one of the formats you illustrate, because they are at least standard, I would insist Joe's code be reformatted prior to checking it into the codebase since it is too much to ask other team members to get used to this entirely non standard code style.
I agree that reformatting the code is a good way to learn it, and after reformatting it, stepping through in the debugger is even more helpful.
Cheers,
David
.
- Follow-Ups:
- Re: AfxGetApp() returns NULL
- From: David Ching
- Re: AfxGetApp() returns NULL
- References:
- Re: AfxGetApp() returns NULL
- From: Joseph M . Newcomer
- Re: AfxGetApp() returns NULL
- From: David Ching
- Re: AfxGetApp() returns NULL
- From: Joseph M . Newcomer
- Re: AfxGetApp() returns NULL
- From: David Ching
- Re: AfxGetApp() returns NULL
- From: Joseph M . Newcomer
- Re: AfxGetApp() returns NULL
- From: David Ching
- Re: AfxGetApp() returns NULL
- From: Joseph M . Newcomer
- Re: AfxGetApp() returns NULL
- From: David Ching
- Re: AfxGetApp() returns NULL
- From: Joseph M . Newcomer
- Re: AfxGetApp() returns NULL
- From: David Ching
- Re: AfxGetApp() returns NULL
- From: Joseph M . Newcomer
- Re: AfxGetApp() returns NULL
- From: David Ching
- Re: AfxGetApp() returns NULL
- From: Tom Serface
- Re: AfxGetApp() returns NULL
- From: David Ching
- Re: AfxGetApp() returns NULL
- Prev by Date: Re: Localize MFC DLL into resource only DLLs
- Next by Date: Re: Localize MFC DLL into resource only DLLs
- Previous by thread: Re: AfxGetApp() returns NULL
- Next by thread: Re: AfxGetApp() returns NULL
- Index(es):
Relevant Pages
|