Thread: this pointer?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #24
    Registered User
    Join Date
    Apr 2008
    Posts
    890
    Quote Originally Posted by brewbuck View Post
    I still don't grok the argument. It sounds like you're saying that coding standards are dangerous because people might forget to use them. Okay... People also forget to update comments, they rely on undocumented and fragile behavior, they don't validate input, they don't check array bounds before accessing, etc. It seems like the safest practice is to just not write any code at all because somebody might make a mistake.

    Suppose there is a coding standard in place that says "Every variable must be initialized at the point of declaration." I suppose you take issue with this as well, because somebody may forget to adhere? And the answer is to deliberately not initialize variables?
    I said I don't like the fact that style-related "standards" dominate every standards doc I've ever seen, as opposed to those that encourage/enforce good programming practices. We *should* be looking for things like programming errors instead of wasting time dotting i's and crossing t's.
    Last edited by medievalelks; 03-25-2009 at 05:47 AM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Following CTools
    By EstateMatt in forum C Programming
    Replies: 5
    Last Post: 06-26-2008, 10:10 AM
  2. Quick Pointer Question
    By gwarf420 in forum C Programming
    Replies: 15
    Last Post: 06-01-2008, 03:47 PM
  3. Parameter passing with pointer to pointer
    By notsure in forum C++ Programming
    Replies: 15
    Last Post: 08-12-2006, 07:12 AM
  4. Direct3D problem
    By cboard_member in forum Game Programming
    Replies: 10
    Last Post: 04-09-2006, 03:36 AM
  5. Struct *** initialization
    By Saravanan in forum C Programming
    Replies: 20
    Last Post: 10-09-2003, 12:04 PM