Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Feature Requests
 Using Hungarian Notation to make member vars
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

GameProgJay
Starting Member

USA
1 Posts

Posted - Jul 16 2008 :  1:30:46 PM  Show Profile  Reply with Quote
Hey I like doing test driven design, and in that spirit I write code and make up a bunch of member vars as I go, and I figure if you use Hungarian notation VX should be able to create the member vars, so like "m_bFadeIn" in a .cpp it would write "bool m_bFadeIn" int its .h. But I don't know just throwing that idea out there.

feline
Whole Tomato Software

United Kingdom
19024 Posts

Posted - Jul 16 2008 :  2:03:37 PM  Show Profile  Reply with Quote
Two immediate problems. Firstly ask 6 programmers to define Hungarian notation and you will get 6 different definitions
Secondly this does not work for complex types, e.g.

std::list< std::map< complexTypeOne, complexTypeTwo > >

We are considering a command to create a variable based on how it is used, see this thread for a discussion of this idea:

http://forum.wholetomato.com/forum/topic.asp?TOPIC_ID=7190

zen is the art of being at one with the two'ness
Go to Top of Page

jameso
Ketchup Master

United Kingdom
83 Posts

Posted - Jul 17 2008 :  05:06:34 AM  Show Profile  Reply with Quote

How about an option to remove all hungarian notation from the source? ;)

James
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19024 Posts

Posted - Jul 17 2008 :  10:18:00 AM  Show Profile  Reply with Quote
Personally I use a simple form of hungarian notation in all of my code, and would be very unhappy if someone removed it. Plus in scripting languages I rather need this, since it is the only way I can tell what data type the variables are supposed to be.

Still we do have the Rename function if you want

zen is the art of being at one with the two'ness
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000