Difference between revisions of "Talk:Programming Guidelines"

From ReactOS Wiki
Jump to: navigation, search
 
(Maybe someone who knows what should be there can finish the paragraph?)
 
(13 intermediate revisions by 7 users not shown)
Line 1: Line 1:
 
AAAAAAArrrrrrrrrggggggggggggg that's ugly.
 
AAAAAAArrrrrrrrrggggggggggggg that's ugly.
 +
 +
:Then FFFFFiiiiiiiiiiixxxxx it! It's a Wiki! (I note you've done something though, good work). [[User:68.39.174.205|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 <nowiki>__NOTOC__</nowiki> it somewhere (Beginning or end preferred) [[User:68.39.174.205|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 [http://doi.acm.org/10.1145/362929.362947 Go to statement considered harmful] letter. [http://doi.acm.org/10.1145/356635.356640 Structured Programming with go to Statements] is an interesting rebuttal of this letter by Donald Knuth.
 +
 +
:There are some very interesting pieces of code using horrible goto statements in explorer_new... Like, there's an if, and then inside the if there is another if with a goto for the else branch of the former if... Believe me!
 +
 +
== 3d level headlines ==
 +
 +
I don't agree with these changes. What's the point of only using 3d level headlines? If you don't like the way they look, change the stylesheet/templates, not the pages.
 +
 +
Also I don't see the problem with having a TOC. It's useful for reading longer documents like this one.
 +
[[User:Tinus|Tinus]]
 +
 +
:: 2nds seem to be better for this, except for the things that have nothing under the headings. However I can see why the TOC in this page whould be undesirable.
 +
 +
----
 +
I added a new page about programming securely,  [[Secure_Programming]].  Should it be linked from here?
 +
 +
 +
== Regarding the rtl paragraph ==
 +
<s>Are these changes https://www.reactos.org/wiki/index.php?title=Programming_Guidelines&diff=35248&oldid=35243 acceptable? (and/or desired?) Some of the added text seems irrelevant and it doesn't seem to cover what the beginning of the paragraph seems to be angling towards.</s><br />
 +
--[[User:Justincase|Justincase]] ([[User talk:Justincase|talk]]) 19:20, 23 June 2014 (UTC)
 +
 +
:I already blocked this user from our wiki, and reverted all of his changes. --[[User:Zehnvor|Zehnvor]] ([[User talk:Zehnvor|talk]]) 06:08, 24 June 2014 (UTC)
 +
 +
::OK, In that case, could someone who knows what the paragraph ''should'' say address the "<help me>" that's at the end of what's there right now?
 +
::--[[User:Justincase|Justincase]] ([[User talk:Justincase|talk]]) 08:25, 24 June 2014 (UTC)

Latest revision as of 08:25, 24 June 2014

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.

There are some very interesting pieces of code using horrible goto statements in explorer_new... Like, there's an if, and then inside the if there is another if with a goto for the else branch of the former if... Believe me!

3d level headlines

I don't agree with these changes. What's the point of only using 3d level headlines? If you don't like the way they look, change the stylesheet/templates, not the pages.

Also I don't see the problem with having a TOC. It's useful for reading longer documents like this one. Tinus

2nds seem to be better for this, except for the things that have nothing under the headings. However I can see why the TOC in this page whould be undesirable.

I added a new page about programming securely, Secure_Programming. Should it be linked from here?


Regarding the rtl paragraph

Are these changes https://www.reactos.org/wiki/index.php?title=Programming_Guidelines&diff=35248&oldid=35243 acceptable? (and/or desired?) Some of the added text seems irrelevant and it doesn't seem to cover what the beginning of the paragraph seems to be angling towards.
--Justincase (talk) 19:20, 23 June 2014 (UTC)

I already blocked this user from our wiki, and reverted all of his changes. --Zehnvor (talk) 06:08, 24 June 2014 (UTC)
OK, In that case, could someone who knows what the paragraph should say address the "<help me>" that's at the end of what's there right now?
--Justincase (talk) 08:25, 24 June 2014 (UTC)