Help:Programming Example Prototypes: Difference between revisions

From Rosetta Code
Content added Content deleted
m (Protected "Help:Programming Example Prototypes": Page was accidentally vandalized due to misunderstanding of how RC is structured. Need to prevent that. [edit=sysop:move=sysop])
(Used new header courtesy of IanOsgood)
Line 8: Line 8:
''When using a [[compiler]] and a [[library]], with illustrative text:
''When using a [[compiler]] and a [[library]], with illustrative text:


{{header|Your Language Here}}'''Compiler:''' [[Your Compiler Here]] (Your version here)
==[[Your Language Here]]==
[[Category:Your Language Here]]
'''Compiler:''' [[Your Compiler Here]] (Your version here)
[[Category:Your Compiler Here]]
[[Category:Your Compiler Here]]


Line 28: Line 26:
''When using a compiler and a library, but without illustrative text:
''When using a compiler and a library, but without illustrative text:


{{header|Your Language Here}}'''Compiler:''' [[Your Compiler Here]] (Your version here)
==[[Your Language Here]]==
[[Category:Your Language Here]]
'''Compiler:''' [[Your Compiler Here]] (Your version here)
[[Category:Your Compiler Here]]
[[Category:Your Compiler Here]]


Line 44: Line 40:
''When using an [[interpreter]] and a library, with illustrative text:
''When using an [[interpreter]] and a library, with illustrative text:


{{header|Your Language Here}}'''Interpreter:''' [[Your Interpreter Here]] (Your version here)
==[[Your Language Here]]==
[[Category:Your Language Here]]
'''Interpreter:''' [[Your Interpreter Here]] (Your version here)
[[Category:Your Interpreter Here]]
[[Category:Your Interpreter Here]]


Line 64: Line 58:
''When using an interpreter and a library, but without illustrative text:
''When using an interpreter and a library, but without illustrative text:


{{header|Your Language Here}}'''Interpreter:''' [[Your Interpreter Here]] (Your version here)
==[[Your Language Here]]==
[[Category:Your Language Here]]
'''Interpreter:''' [[Your Interpreter Here]] (Your version here)
[[Category:Your Interpreter Here]]
[[Category:Your Interpreter Here]]


Line 80: Line 72:
''When using a compiler, with illustrative text:
''When using a compiler, with illustrative text:


{{header|Your Language Here}}'''Compiler:''' [[Your Compiler Here]]
==[[Your Language Here]]==
[[Category:Your Language Here]]
'''Compiler:''' [[Your Compiler Here]]
[[Category:Your Compiler Here]]
[[Category:Your Compiler Here]]


Line 97: Line 87:
''When using a compiler, but without illustrative text:
''When using a compiler, but without illustrative text:


{{header|Your Language Here}}'''Compiler:''' [[Your Compiler Here]] (Your version here)
==[[Your Language Here]]==
[[Category:Your Language Here]]
'''Compiler:''' [[Your Compiler Here]] (Your version here)
[[Category:Your Compiler Here]]
[[Category:Your Compiler Here]]


Line 110: Line 98:
''When using an interpreter, with illustrative text:
''When using an interpreter, with illustrative text:


{{header|Your Language Here}}'''Compiler:''' [[Your Interpreter Here]] (Your version here)
==[[Your Language Here]]==
[[Category:Your Language Here]]
'''Compiler:''' [[Your Interpreter Here]] (Your version here)
[[Category:Your Interpreter Here]]
[[Category:Your Interpreter Here]]


Line 127: Line 113:
''When using an interpreter, but without illustrative text:
''When using an interpreter, but without illustrative text:


{{header|Your Language Here}}'''Interpreter:''' [[Your Interpreter Here]] (Your version here)
==[[Your Language Here]]==
[[Category:Your Language Here]]
'''Interpreter:''' [[Your Interpreter Here]] (Your version here)
[[Category:Your Interpreter Here]]
[[Category:Your Interpreter Here]]


Line 140: Line 124:
''When you don't know the compiler or interpreter, but you're using a library, and you are using illustrative text:
''When you don't know the compiler or interpreter, but you're using a library, and you are using illustrative text:


==[[Your Language Here]]==
{{header|Your Language Here}}'''Library:''' [[Your Library Here]]
[[Category:Your Language Here]]
'''Library:''' [[Your Library Here]]
[[Category:Your Library Here]]
[[Category:Your Library Here]]


Line 157: Line 139:
''When you don't know the compiler or interpreter, but you're using a library, and you are not using illustrative text:
''When you don't know the compiler or interpreter, but you're using a library, and you are not using illustrative text:


==[[Your Language Here]]==
{{header|Your Language Here}}'''Library:''' [[Your Library Here]]
[[Category:Your Language Here]]
'''Library:''' [[Your Library Here]]
[[Category:Your Library Here]]
[[Category:Your Library Here]]


Line 170: Line 150:
''When you don't know the compiler or interpreter, and you are using illustrative text:
''When you don't know the compiler or interpreter, and you are using illustrative text:


==[[Your Language Here]]==
{{header|Your Language Here}}
[[Category:Your Language Here]]

Some code.
Some code.
Notice how each line begins with at least one space.
Notice how each line begins with at least one space.
Line 185: Line 163:
''When you don't know the compiler or interpreter, and you are not using illustrative text:
''When you don't know the compiler or interpreter, and you are not using illustrative text:


==[[Your Language Here]]==
{{header|Your Language Here}}
[[Category:Your Language Here]]

Some code.
Some code.
Notice how each line begins with at least one space.
Notice how each line begins with at least one space.

Revision as of 20:20, 17 September 2007

These are prototypes of well-formed programming examples conforming to curring Rosetta Code formatting style. View this page's source to see how to construct your own programming examples.

Use the one which supplies the most information possible.

Prototypes


When using a compiler and a library, with illustrative text:

Your Language HereCompiler: Your Compiler Here (Your version here)

Library: Your Library Here

Some code.
Notice how each line begins with at least one space.
  Multiple spaces are fine; Please use proper indentation in your code.

Here, I can talk a bit about the next bit of code.

Now I'm typing more code, with the spaces again at the beginning of the line.

Now I'm talking about the next bit of code again.

And here's that final bit of code...

When using a compiler and a library, but without illustrative text:

Your Language HereCompiler: Your Compiler Here (Your version here)

Library: Your Library Here

Some code.
Notice how each line begins with at least one space.
  Multiple spaces are fine; Please use proper indentation in your code.

When using an interpreter and a library, with illustrative text:

Your Language HereInterpreter: Your Interpreter Here (Your version here)

Library: Your Library Here

Some code.
Notice how each line begins with at least one space.
  Multiple spaces are fine; Please use proper indentation in your code.

Here, I can talk a bit about the next bit of code.

Now I'm typing more code, with the spaces again at the beginning of the line.

Now I'm talking about the next bit of code again.

And here's that final bit of code...

When using an interpreter and a library, but without illustrative text:

Your Language HereInterpreter: Your Interpreter Here (Your version here)

Library: Your Library Here

Some code.
Notice how each line begins with at least one space.
  Multiple spaces are fine; Please use proper indentation in your code.

When using a compiler, with illustrative text:

Your Language HereCompiler: Your Compiler Here
Some code.
Notice how each line begins with at least one space.
  Multiple spaces are fine; Please use proper indentation in your code.

Here, I can talk a bit about the next bit of code.

Now I'm typing more code, with the spaces again at the beginning of the line.

Now I'm talking about the next bit of code again.

And here's that final bit of code...

When using a compiler, but without illustrative text:

Your Language HereCompiler: Your Compiler Here (Your version here)
Some code.
Notice how each line begins with at least one space.
  Multiple spaces are fine; Please use proper indentation in your code.

When using an interpreter, with illustrative text:

Your Language HereCompiler: Your Interpreter Here (Your version here)
Some code.
Notice how each line begins with at least one space.
  Multiple spaces are fine; Please use proper indentation in your code.

Here, I can talk a bit about the next bit of code.

Now I'm typing more code, with the spaces again at the beginning of the line.

Now I'm talking about the next bit of code again.

And here's that final bit of code...

When using an interpreter, but without illustrative text:

Your Language HereInterpreter: Your Interpreter Here (Your version here)
Some code.
Notice how each line begins with at least one space.
  Multiple spaces are fine; Please use proper indentation in your code.

When you don't know the compiler or interpreter, but you're using a library, and you are using illustrative text:

Your Language HereLibrary: Your Library Here
Some code.
Notice how each line begins with at least one space.
  Multiple spaces are fine; Please use proper indentation in your code.

Here, I can talk a bit about the next bit of code.

Now I'm typing more code, with the spaces again at the beginning of the line.

Now I'm talking about the next bit of code again.

And here's that final bit of code...

When you don't know the compiler or interpreter, but you're using a library, and you are not using illustrative text:

Your Language HereLibrary: Your Library Here
Some code.
Notice how each line begins with at least one space.
  Multiple spaces are fine; Please use proper indentation in your code.

When you don't know the compiler or interpreter, and you are using illustrative text:

Your Language Here
Some code.
Notice how each line begins with at least one space.
  Multiple spaces are fine; Please use proper indentation in your code.

Here, I can talk a bit about the next bit of code.

Now I'm typing more code, with the spaces again at the beginning of the line.

Now I'm talking about the next bit of code again.

And here's that final bit of code...

When you don't know the compiler or interpreter, and you are not using illustrative text:

Your Language Here
Some code.
Notice how each line begins with at least one space.
  Multiple spaces are fine; Please use proper indentation in your code.