PHP User Warning: fetch_template() calls should be replaced by the vB_Template class. Template name: bbcode_highlight in ..../includes/functions.php on line 4197

PHP User Warning: fetch_template() calls should be replaced by the vB_Template class. Template name: bbcode_highlight in ..../includes/functions.php on line 4197
cmb vs. cbo-VBForums
Results 1 to 12 of 12

Thread: cmb vs. cbo

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    May 2001
    Posts
    837

    cmb vs. cbo

    Back in my day (about 4 years ago), we used "cbo" for combo boxes. Now the hungarian notation is "cmb"? When did that change?
    The human brain cannot hold all of the knowledge that exists in this world, but it can hold pointers to that knowledge.

  2. #2
    .NUT jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    102,920

    Re: cmb vs. cbo

    There is no such thing as "official" Hungarian notation so just use what you want. It's fairly common knowledge that I think it's pointless but, if I was going to use it, I would consider "cmb" or "cbx" more logical than "cbo". Abbreviating a word normally means removing the vowels or removing syllables as a first step. "cbo" does neither so I don't see the logic.

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    May 2001
    Posts
    837

    Re: cmb vs. cbo

    I had noticed throughout my life that abbreviations usually remove the vowels, but when I learned programming in VB 5 & 6 it was definitely "cbo".
    The human brain cannot hold all of the knowledge that exists in this world, but it can hold pointers to that knowledge.

  4. #4
    Frenzied Member mar_zim's Avatar
    Join Date
    Feb 2004
    Location
    Toledo Cebu City.
    Posts
    1,416

    Re: cmb vs. cbo

    I prefer cmb more logical.

  5. #5
    .NUT jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    102,920

    Re: cmb vs. cbo

    Don't use Hungarian. Problem solved.

  6. #6

    Thread Starter
    Fanatic Member
    Join Date
    May 2001
    Posts
    837

    Re: cmb vs. cbo

    Hungarian is still useful for components. I don't use it for variables.
    The human brain cannot hold all of the knowledge that exists in this world, but it can hold pointers to that knowledge.

  7. #7
    Lurker
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,651

    Re: cmb vs. cbo

    "Selecta", in an Ali G voice.

    Aiight.

  8. #8
    Addicted Member
    Join Date
    Jan 2002
    Location
    West Virginia
    Posts
    193

    Re: cmb vs. cbo

    I don't think Microsoft uses Hungarian Notation anymore. (I read somewhere).

  9. #9
    .NUT jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    102,920

    Re: cmb vs. cbo

    Quote Originally Posted by WayneSpangler
    I don't think Microsoft uses Hungarian Notation anymore. (I read somewhere).
    Microsoft has naming guidelines that don't include Hungarian notation. Just look at the entire Framework class library. I'll tell you what really gets my goat: Hungarian on type names. Using it with variable names is one thing, and using it on private an local variables doesn't break the .NET naming conventions because no members so named are exposed publicly, but when I see:
    VB Code:
    1. Public Class frmSomething
    or:
    VB Code:
    1. Public Class clsSomething
    my left eye starts twitching. Having said that, my goats pretty easy to get, so there's no real achievement there. Anyway, I'll leave this thread alone because I'm getting way off topic and I think I've already had too many rants about Hungarian.

  10. #10

    Thread Starter
    Fanatic Member
    Join Date
    May 2001
    Posts
    837

    Re: cmb vs. cbo

    The only place I use it is when naming controls placed on my forms. I don't use cls or frm for classes and forms. I find lstLocations or txtFirstName helpful in differentiating between class level variables, m_Points, and local variables/arguments, someVariable.
    The human brain cannot hold all of the knowledge that exists in this world, but it can hold pointers to that knowledge.

  11. #11
    type Woss is new Grumpy; wossname's Avatar
    Join Date
    Aug 2002
    Location
    #!/bin/bash
    Posts
    5,683

    Re: cmb vs. cbo

    I only ever use hungarian when i'm naming controls on forms, but I do it religiously.

    use "cbo" because 90% of the rest of the world will know what it means. cmb is a thing you tidy your hair with.
    I don't live here any more.

  12. #12

    Thread Starter
    Fanatic Member
    Join Date
    May 2001
    Posts
    837

    Re: cmb vs. cbo

    Quote Originally Posted by wossname
    I only ever use hungarian when i'm naming controls on forms, but I do it religiously.

    use "cbo" because 90% of the rest of the world will know what it means. cmb is a thing you tidy your hair with.
    Exactly!
    The human brain cannot hold all of the knowledge that exists in this world, but it can hold pointers to that knowledge.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Featured


Click Here to Expand Forum to Full Width