Re: A few beginner questions
Re: A few beginner questions
- Subject: Re: A few beginner questions
- From: "Jason Sallis" <email@hidden>
- Date: Mon, 7 Apr 2008 10:41:48 -0600
"Actually, it is:
dCostValueRatio, iPeopleCount, etc.."
That's one style of Hungarian notation, but the three-character style is perfectly valid as well. You'll find the 3-character style used primarily in the Visual Basic (pre .NET) community. It was a Microsoft effort to standardize naming across the VB6/VBA/Access platforms back in the day which, unfortunately, caught on. Humor your instructor and use it in your class and then promptly forget about it as it's a fairly deprecated naming style.
On Mon, Apr 7, 2008 at 10:18 AM, matty jones <
email@hidden> wrote:
On Apr 7, 2008, at 12:07 PM, Keary Suska wrote:
on 4/7/08 9:32 AM, email@hidden purportedly said:
I have been reading through the Becoming an XCoder pdf and the user
Guids for XCode and I can't figure something out. In the guide it
gives you a sample program that calculates the area of a circle and a
rectangle, it says to press the build and go button and the results
will be displayed in the run log. I cannot find the runlog box. I
found a box called build results that displays the results, errors and
the returned state but not a box that displays the output of the
program. I have no errors in the code according to XCode. Do I have to
enable something to display the results or am I hitting the wrong
button?
What you are looking for is the "console". It sounds like you may have the
three-page all-in-one view in Xcode 3. In Xcode 3, the console window only
seems to show in the debugger window, so you can go to the debugger
(Run->Debugger menu). IIRC, in Xcode preferences, in the "debugging"
options, I set "On Start" to "Show Console" to show the debugger/console on
run. I may be wrong about that, but it sounds right.
I am in a Visual Basic course right now and my teacher is having us
declare variables with Hungarian notation. I have been coding C and
Bash shell scripts in Linux for a few years and have never done it,
nor have I ever seen it in a book.
Sounds like your teacher is rather old-school. What you describe is a
convention commonly known as Hungarian "System" notation. Originally
developed for use in a non-typed language, it found usefulness in
strongly-typed structured languages. There are good reasons or using it, but
I believe most modern compilers can detect the types of issues that the
convention is trying to prevent (such as trying to stuff an int into a
char), and in any case other conventions have superseded it.
In particular you will find that Objective-C/Cocoa tends to use a convention
similar to the Hungarian "Apps" notation, were the purpose of the symbol is
incorporated into the name, although not always (or usually) as a prefix.
Best regards,
Keary Suska
Esoteritech, Inc.
"Demystifying technology for your home or business"
Thanks for the tips, you were right. You are right about the teacher he tells us the same sad story every week about being a cobol and ada programmer in the 70's then getting into web design and then Visual Basic and Visual C++. It is useless to try and speak up in the class, teacher knows best I guess.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (
email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to
email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden