Questions tagged [documentation]

THIS TAG IS FOR DOCUMENT GENERATORS ONLY. Include language and/or SDE tag as well. DO NOT USE to ask for links to documentation or tools, or to critique vendor documentation.

Use the tag for questions related to self-documenting code and documentation generators.

Basic definitions

  • Software documentation is written text or illustration that accompanies computer software or is embedded in the source code. It either explains how it operates or how to use it, and may mean different things to people in different roles.Wikipedia

  • A documentation generator is a programming tool that generates software documentation intended for programmers or end users, or both, from a set of specially commented source code files, and in some cases, binary files.Wikipedia

Related tags

Possible synonyms:

Substitute these more specific tags for where possible:

"Documentation" topics on other SE sites

Questions about how documentation fits within the software development process are off-topic on StackOverflow, but are on-topic on Software Engineering.

Writing Stack Exchange has tags for Technical Writing, API Documentation and Software Tools, with a focus on the craft of professional writing.

Useful links

Off-Topic Questions

Remember that the following types of questions are off-topic, and subject to being closed and deleted:

  • Where is the documentation for... ?
  • What is the best way to document... ?
  • Is there a tool to help document... ?
  • Is this documentation correct?
4151 questions
1240
votes
23 answers

Is there a way to create multiline comments in Python?

I have recently started studying Python, but I couldn't find how to implement multi-line comments. Most languages have block comment symbols like /* */ I tried this in Python, but it throws an error, so this probably is not the correct way. Does…
Dungeon Hunter
  • 17,873
  • 13
  • 53
  • 78
1020
votes
7 answers

What is the standard Python docstring format?

I have seen a few different styles of writing docstrings in Python, is there an official or "agreed-upon" style?
Noah McIlraith
  • 12,932
  • 7
  • 24
  • 35
973
votes
20 answers

#pragma mark in Swift?

In Objective C, I can use #pragma mark to mark sections of my code in the symbol navigator. Since this is a C preprocessor command, it's not available in Swift. Is there a stand-in for this in Swift, or do I have to use ugly comments?
Arbitur
  • 36,899
  • 22
  • 86
  • 123
258
votes
44 answers

What is self-documenting code and can it replace well documented code?

I have a colleague who insists that his code doesn't need comments, it's "self documenting." I've reviewed his code, and while it's clearer than code which I've seen others produce, I still disagree that self-documenting code is as complete and…
Adam Davis
  • 87,598
  • 55
  • 254
  • 328
199
votes
2 answers

pandas resample documentation

So I completely understand how to use resample, but the documentation does not do a good job explaining the options. So most options in the resample function are pretty straight forward except for these two: rule : the offset string or object…
Ryan Saxe
  • 14,833
  • 19
  • 66
  • 116
191
votes
4 answers

What are the new documentation commands available in Xcode 5?

One of Xcode 5's new features is the ability to document your own code with a special comment syntax. The format is similar to doxygen, but appears to only support a subset of those features. Which commands are supported, and which ones aren't? Do…
Senseful
  • 73,679
  • 56
  • 267
  • 405
187
votes
2 answers

What to put in a python module docstring?

Ok, so I've read both PEP 8 and PEP 257, and I've written lots of docstrings for functions and classes, but I'm a little unsure about what should go in a module docstring. I figured, at a minimum, it should document the functions and classes that…
user297250
165
votes
8 answers

How to document a method with parameter(s)?

How to document methods with parameters using Python's documentation strings? EDIT: PEP 257 gives this example: def complex(real=0.0, imag=0.0): """Form a complex number. Keyword arguments: real -- the real part (default 0.0) imag…
David Andreoletti
  • 3,552
  • 3
  • 27
  • 47
164
votes
4 answers

Using javadoc for Python documentation

I am currently beginning with Python and I have a strong PHP background and in PHP I have took the habit of using javadoc as a documentation template. I was wondering if javadoc has its place as docstring documentation in Python. What are the…
JF Dion
  • 3,874
  • 2
  • 21
  • 34
143
votes
8 answers

How to document thrown exceptions in c#/.net

I am currently writing a small framework that will be used internally by other developers within the company. I want to provide good Intellisense information, but I am not sure how to document thrown exceptions. In the following example: public void…
Arnold Zokas
  • 7,741
  • 6
  • 45
  • 75
132
votes
3 answers

How to document class attributes in Python?

I'm writing a lightweight class whose attributes are intended to be publicly accessible, and only sometimes overridden in specific instantiations. There's no provision in the Python language for creating docstrings for class attributes, or any sort…
intuited
  • 20,786
  • 6
  • 57
  • 82
126
votes
5 answers

FFmpeg C API documentation/tutorial

I am trying to find documentation to use the FFmpeg C API. It seems that only command line documentation is available. Is there any good documentation/tutorials/links available?
fvisticot
  • 6,499
  • 13
  • 43
  • 70
126
votes
1 answer

How to specify an array of objects as a parameter or return value in JSDoc?

In JSDoc, the best documentation I can find shows to use the following if you have an array of a specific type (such as an array of strings) as: /** * @param {Array.} myStrings All my awesome strings */ function blah(myStrings){ …
Ray
  • 36,097
  • 17
  • 85
  • 129
123
votes
26 answers

Is a successor for TeX/LaTeX in sight?

TeX/LaTeX is great, I use it in many ways. Some of its advantages are: it uses text files, this way the input-files can be diffed and many tools exist to work with text it is very flexible it has a stable layout: if I change something at the start…
Mnementh
  • 47,129
  • 42
  • 140
  • 198
111
votes
1 answer

What values are valid in Pandas 'Freq' tags?

I am new to Pandas, and am trying to use date_range. I came across all kinds of good things for freq, like BME and BMS and I would like to be able to quickly look up the proper strings to get what I want. Yesterday I found a nicely formatted table…
sundowner
  • 1,258
  • 2
  • 10
  • 7
1
2 3
99 100