A Bit Frustrated....

This is a discussion on A Bit Frustrated.... within the C++ Programming forums, part of the General Programming Boards category; I hope i do not insult anybody but i think this is something that has to be said, If you ...

  1. #1
    Registered User
    Join Date
    Aug 2002
    Posts
    87

    A Bit Frustrated....

    I hope i do not insult anybody but i think this is something that has to be said, If you post code and expect someone to look at it, please use proper indentation!

    i am somewhat sick of people posting code and to find it in a state where trying to help them would mean that i have to spend time first re-indentating and spacing their code, it is just to exhausting....

    here as some quite basic rules that will make your code easier to read:

    1. Be sure to use proper tabbing that means that after every { you tab in one more then before it and after every } you tab in one less then before that.
    2. Use proper spacing. Group lines of code that are related in some way by leaving white lines in between them.
    3. If your code is a total mess, don't even post it, just post the problem and see if anyone can point you in the right direction
    4. Never post code without code tags, if you do all the indentation will be lost....

    I really hope people will start following these guidelines, espacially the indentation is important because it makes it easier for people who have never seen the code to understand it.

  2. #2
    Registered User
    Join Date
    Nov 2002
    Posts
    1,109

  3. #3
    Registered User
    Join Date
    Aug 2002
    Posts
    87
    i know it is right there but it seems like people ignore it completely, maybe if posted again, not as a sticky people will take note of it.........

  4. #4
    Registered User
    Join Date
    Apr 2003
    Posts
    2,662
    What about error messages with no comments in the code indicating where the error is? You'd think it would be common sense to comment your code to indicate where the errors are, but apparently most people who post here have no common sense.

    Then there are the people who have a 200 line program with classes and pointers, and yet they don't even know what a constructor is or what passing by value and passing by reference is. They code the whole thing, then run it and get a hundred errors. The fact of the matter is, they couldn't even run a Hello World program without errors.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 3
    Last Post: 11-10-2005, 09:53 AM
  2. porting application from 32 bit to 64 bit error
    By gandalf_bar in forum Linux Programming
    Replies: 1
    Last Post: 09-14-2005, 09:20 AM
  3. Bit processing in C
    By eliomancini in forum C Programming
    Replies: 8
    Last Post: 06-07-2005, 10:54 AM
  4. Bit Manipulation Questions
    By CPPNewbie in forum C++ Programming
    Replies: 7
    Last Post: 08-12-2003, 02:17 PM
  5. Array of boolean
    By DMaxJ in forum C++ Programming
    Replies: 11
    Last Post: 10-25-2001, 11:45 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21