Difference between revisions of "Main Page"

From ProgrammingExamples
Jump to: navigation, search
(tweaking (add link to the do's and don't section of the help page)
Line 2: Line 2:
 
This site is intended to provide short, compilable code snippets demonstrating frequently used concepts in several programming languages. Please feel free to modify the existing examples, and add new examples!
 
This site is intended to provide short, compilable code snippets demonstrating frequently used concepts in several programming languages. Please feel free to modify the existing examples, and add new examples!
  
=="Do"s and "Don't"s==
+
==[[Help:Editing#Dos_and_Don.27ts_for_using_the_Programming_Examples_Wiki|"Do"s and "Don't"s]]==
  
 
=== "Do"s ===
 
=== "Do"s ===
Line 16: Line 16:
 
We don't want to get too carried away here, but below are some guidelines.
 
We don't want to get too carried away here, but below are some guidelines.
  
* Try to use a sensible indentation scheme.
+
* Use a sensible and internally consistent indentation scheme
* Use descriptive, fully spelled variable names (in English please).
+
* Use "best coding practices" for your language
 +
* Use descriptive, fully spelled variable names (in English please)
 
** Good: dispatchTable, dispatch_table
 
** Good: dispatchTable, dispatch_table
 
** Bad: dispTbl, disp_tbl, mesaDespacho, avsändande_bord
 
** Bad: dispTbl, disp_tbl, mesaDespacho, avsändande_bord

Revision as of 12:46, 27 June 2010

Welcome to ProgrammingExamples.net!

This site is intended to provide short, compilable code snippets demonstrating frequently used concepts in several programming languages. Please feel free to modify the existing examples, and add new examples!

"Do"s and "Don't"s

"Do"s

  • Create a 'dispatch page' for each new language that you add, put links to examples in that language on that page.
  • Try to keep each example as short as possible.
  • Try to demonstrate a single concept per example.
  • Comment, comment, comment!

"Don't"s

  • Do not treat the wiki as your own personal code dump. Things that are placed here should be useful for many people.

Coding Standards

We don't want to get too carried away here, but below are some guidelines.

  • Use a sensible and internally consistent indentation scheme
  • Use "best coding practices" for your language
  • Use descriptive, fully spelled variable names (in English please)
    • Good: dispatchTable, dispatch_table
    • Bad: dispTbl, disp_tbl, mesaDespacho, avsändande_bord
  • Comment, comment, comment!

Languages

GUI Systems