Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
52 views

Python 3.8 introduced = specifier in f-strings (see this issue and pull request). It allows to quickly represent both the value and the name of the variable: from math import pi as π f'{π=}' # 'π=3....
krassowski's user avatar
  • 15.7k
2 votes
1 answer
310 views

I'm using Doxygen for my (C++) project. I have some functions which are self-explanatory, for which I don't want to add any comment or explanation - but which I do want appearing as part of the ...
einpoklum's user avatar
  • 137k
-1 votes
2 answers
443 views

I user-define many functions and a few of them have six, ten, or even more arguments. Reading my code gets difficult when I forget what the arguments of a function are, or what order they go in. I've ...
NewSites's user avatar
  • 1,849
0 votes
2 answers
178 views

I created an Asp.net api in VS2015. Inside the Areas>HelpPage>App_Start>HelpPageConfig.cs I uncommented line 37 config.SetDocumentationProvider(new XmlDocumentationProvider(HttpContext.Current....
davidp04's user avatar
0 votes
1 answer
145 views

Say we are inside an object that implements file handling. I want to write the code for easier readability. Example of code where it can be difficult to tell the return type, especially when there ...
djenning90's user avatar
1 vote
1 answer
1k views

I'm looking for a way to clarify the contracts of my Lua functions. In particular, which attributes there parameters are supposed to have. To illustrate my problem, some code snippets with typical ...
Jeroen De Dauw's user avatar
3 votes
1 answer
1k views

I'm moving from Swift to Kotlin, and loving it so far. However, I'm used to declaring methods like this (pretend the referenced methods exist and work): // Swift method declaration func drawCircle(...
Ky -'s user avatar
  • 32.4k
5 votes
2 answers
7k views

I found a good list of tutorials about JQL, including a reference on how to write a plugin [1]. Is there already or would it be possible to add comments to a JQL query? For example, to document my ...
AnneTheAgile's user avatar
  • 10.4k
17 votes
4 answers
15k views

I am developing a REST API in nodejs + Express and I have been simultaneously documenting my API in the README file and I was wondering if it is possible to automate it. e.g. given: app.get('/path/to'...
pathikrit's user avatar
  • 33.7k
4 votes
1 answer
256 views

I created small class that allows me to use enumerators of strongly-typed enums as flags (in combination). I'm using type_traits for underlying type detection so it should be also slightly type safe ...
HemoGoblin's user avatar
2 votes
1 answer
1k views

These two concepts seem counter-intuitive. There's one side of the argument that sees the harm that comments do to readability, and violations of DRY (if the comments are even kept up to date). ...
Drew's user avatar
  • 4,711
1 vote
2 answers
148 views

For consistency, I've always applied comments (in the form of a JavaDoc) to all methods and classes, even if they are simple getters and setters methods or very small wrapper classes. But I'm also ...
gablin's user avatar
  • 4,848
287 votes
14 answers
197k views

In Java, for example, the @Override annotation not only provides compile-time checking of an override but makes for excellent self-documenting code. I'm just looking for documentation (although if ...
Bluu's user avatar
  • 5,645
34 votes
20 answers
14k views

Is it worth learning the convention or is it a bane to readability and maintainability?
Brock D's user avatar
  • 551