Thread: Superficial Syntax thread: Your favorite keywords/class names etc.

  1. #1
    Ethernal Noob
    Join Date
    Nov 2001
    Posts
    1,901

    Superficial Syntax thread: Your favorite keywords/class names etc.

    So what are your favorite keywords that denote something either unique to a language or shared across a language?

    Personally I prefer the term Function rather than Method. I guess I was introduced to it firstin C/C++ but it just has a more reminiscent ring to it.

  2. #2
    Jack of many languages Dino's Avatar
    Join Date
    Nov 2007
    Location
    Chappell Hill, Texas
    Posts
    2,332
    If it's OO, I prefer the term Method over Function.

    I despise "Property" with OO.
    Mainframe assembler programmer by trade. C coder when I can.

  3. #3
    Ethernal Noob
    Join Date
    Nov 2001
    Posts
    1,901
    I also don't like the term "Getter/Setter". I prefer properties actually.

  4. #4
    l'Anziano DavidP's Avatar
    Join Date
    Aug 2001
    Location
    Plano, Texas, United States
    Posts
    2,743
    I despise the terms "property" and "method". I think they are the bane of our existence.

    I think they should always be referred to as "function" and "member variable".
    My Website

    "Circular logic is good because it is."

  5. #5
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    In C++, methods are virtual member functions
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  6. #6
    Jack of many languages Dino's Avatar
    Join Date
    Nov 2007
    Location
    Chappell Hill, Texas
    Posts
    2,332
    Maybe someone will post that has an opinion...
    Mainframe assembler programmer by trade. C coder when I can.

  7. #7
    l'Anziano DavidP's Avatar
    Join Date
    Aug 2001
    Location
    Plano, Texas, United States
    Posts
    2,743
    I once read that a "method" is any member function of a class, and a "function" is any function that is not part of a class. Despite what might define a method or a function, I still despise "method" and like to use "function" because I view the term "method" as a Java-ization of the programming community. Yes I am completely biased.
    My Website

    "Circular logic is good because it is."

  8. #8
    Devil's Advocate SlyMaelstrom's Avatar
    Join Date
    May 2004
    Location
    Out of scope
    Posts
    4,079
    I don't think too much about the terminology and try not to let any of it get to me. However, I would agree with indigo about "getters" and "setters." That always seemed very VB to me. I personally like the term (and concept) of Polymorphism because it makes me feel more like a wizard than any other programming term.
    Sent from my iPadŽ

  9. #9
    Jack of many languages Dino's Avatar
    Join Date
    Nov 2007
    Location
    Chappell Hill, Texas
    Posts
    2,332
    I do code in Java, but I cut my teeth on OO programming with Ruby and its terms.

    Classes
    Class Instance Variables
    Class Instances
    Instance variables
    Class Methods
    Instance Methods

    I occasionally use the "member" adjective when discussing with Java programmers, but only when talking Java. Haven't gotten that deep with C++ yet.
    Mainframe assembler programmer by trade. C coder when I can.

  10. #10
    Lurking whiteflags's Avatar
    Join Date
    Apr 2006
    Location
    United States
    Posts
    9,612
    I'm more intrigued by the buzzwords softwae companies twist into sentences in press releases, such as "robust" and "synergy."

  11. #11
    Jack of many languages Dino's Avatar
    Join Date
    Nov 2007
    Location
    Chappell Hill, Texas
    Posts
    2,332
    I like encapsulation and reflection.

    In my day job, "FFDC" is a big term. Stands for First Failure Data Capture, with means if the software abends, it is able to capture the failing environment so the user does not have spend time recreating the failing scenario.
    Mainframe assembler programmer by trade. C coder when I can.

  12. #12
    Ethernal Noob
    Join Date
    Nov 2001
    Posts
    1,901
    I prefec object to Class Instance, and members of member variable to Class varables.

  13. #13
    Malum in se abachler's Avatar
    Join Date
    Apr 2007
    Posts
    3,195
    I like the term method, it refers specifically to a member function. Properties to me is specifically a member variable. I use the terms interchangeably depending on who im speaking with. I guess I'm really still a C programmer though.

  14. #14
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    I personally like the term (and concept) of Polymorphism because it makes me feel more like a wizard than any other programming term.
    lol, come to think about it, I agree, but I would include type cast into the mix
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  15. #15
    l'Anziano DavidP's Avatar
    Join Date
    Aug 2001
    Location
    Plano, Texas, United States
    Posts
    2,743
    I mainly prefer "function" because I like to go back to programming's roots: math. Math has functions.

    I also prefer "elegant" rather than "robust". I don't mind robust though. I think it is a good word. I just like thinking of something as "an elegant way of doing things" or "an elegant solution."
    My Website

    "Circular logic is good because it is."

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. PlaySound
    By cangel in forum C++ Programming
    Replies: 16
    Last Post: 10-08-2009, 05:29 PM
  2. Simple thread object model (my first post)
    By Codeplug in forum Windows Programming
    Replies: 4
    Last Post: 12-12-2004, 11:34 PM
  3. Replies: 2
    Last Post: 04-12-2004, 01:37 AM
  4. Closing thread handles from within
    By Sang-drax in forum Windows Programming
    Replies: 6
    Last Post: 09-26-2003, 12:18 PM
  5. How to make a thread sleep or std::recv timeout?
    By BrianK in forum Linux Programming
    Replies: 3
    Last Post: 02-26-2003, 10:27 PM