Talk:Programming Guidelines

From ReactOS Wiki
Revision as of 16:13, 14 March 2005 by Dr. Fred (talk | contribs) (goto)
Jump to: navigation, search

AAAAAAArrrrrrrrrggggggggggggg that's ugly.

Then FFFFFiiiiiiiiiiixxxxx it! It's a Wiki! (I note you've done something though, good work). 68.39.174.205 01:01, 13 Mar 2005 (CET)
I don't know what to do. Is there any command to tell the wiki no to create an index ?
If you mean the table of contents stick __NOTOC__ it somewhere (Beginning or end preferred) 68.39.174.205 08:32, 14 Mar 2005 (CET)
Done. I've also moved the goto think here.

  • Don't use "goto" in C-Code (if you feel you need this in C, then you should use ASM instead)

This is debatable. There are situations where goto avoids code duplication or other uglinesses. Make sure the flow of execution is clear and logical, do not use weird tricks. Other people reading your code should be able to see what's going on.

Typically the opinion is based on Dijkstra's Go to statement considered harmful letter. Structured Programming with go to Statements is an interesting rebuttal of this letter by Donald Knuth.