documentation

How “self-documenting” can code be without being annoying? [closed]

孤人 提交于 2019-12-20 09:28:30
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed last year . I am not sure what the best practices are here, but I often see abbreviated variable names especially when the scope is small. So (to use simple Ruby examples) instead of def add_location(name, coordinates) , I see things like def add_loc(name, coord) —and I might even see

Disable “Documentation Comments” warning for selected files

一笑奈何 提交于 2019-12-20 09:22:26
问题 Xcode has the ability to check for Documentation Comments issues and report warnings when something is not quite right. For instance, I've added Facebook SDK to my project using CocoaPods. At some point in the file FBError.h there's the following code: /*! @typedef NS_ENUM (NSInteger, FBErrorCategory) @abstract Indicates the Facebook SDK classification for the error @discussion */ Note that the @discussion parameter is empty, and Xcode will generate a warning accordingly: Empty paragraph

auto-document exceptions on methods in C#/.NET [closed]

泄露秘密 提交于 2019-12-20 09:13:44
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed last year . I would like some tool, preferably one that plugs into VS 2008/2010, that will go through my methods and add XML comments about the possible exceptions they can throw. I don't want the <summary> or other XML tags to be generated for me because I'll fill those out myself, but it would be nice if even on private /

How do you write your package documentation? [closed]

余生长醉 提交于 2019-12-20 08:58:00
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed last year . I haven't quite figured out a sensible workflow for building packages and writing their documentation. I want as much of the process (and the documentation) as possible to be automatically generated. The obvious way to do this seems to be to use package.skeleton to create the basic package files, then

Using OpenGL with Python [closed]

雨燕双飞 提交于 2019-12-20 08:39:45
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 5 years ago . So, I only know how to use Python, but I also know how to model in 3d. I've heard of OpenGL and I really want to learn how to use, because it seems very useful (I want to create simple games with it...). I found PyOpenGL, Python bindings for OpenGL, but I couldn't find any "real"

How to add package level comments in Javadoc? [duplicate]

浪子不回头ぞ 提交于 2019-12-20 08:27:45
问题 This question already has answers here : How Do I Document Packages in Java? (3 answers) Closed last year . I am using CheckStyle, FindBugs, and PMD to validate my Java code. I have fixed almost all the bugs caught by these tools. I am not able to understand how to write "package comment" which is a bug caught by checkstyle. I have gone through the documentation of CheckStyle, but I don't understand it. Could someone help me in writing a package level comment in Java? 回答1: Package-level

Is there a WEBGL Manual? [closed]

徘徊边缘 提交于 2019-12-20 08:20:08
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 2 years ago . Is there some kind of WebGL manual that lists all the functions etc. ? I tried Google but found nothing. 回答1: These two resources helped me a lot Mozilla Devloper Pages Great blog with lessons I followed! 回答2: WebGL Cheat Sheet http://web.archive.org/web/20120314072005/http://www.nihilogic.dk/labs/webgl_cheat

Where to put the doxygen comment blocks for an internal library - in H or in CPP files? [closed]

江枫思渺然 提交于 2019-12-20 08:08:47
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed last year . The common sense tells that the Doxygen comment blocks have to be put in the header files where the classes, structs, enums, functions, declarations are. I agree that this is a sound argument for a libraries that are mean to be distributed without its source (only headers and

Sphinx - Custom theme not working

◇◆丶佛笑我妖孽 提交于 2019-12-20 03:22:16
问题 I have my sphinx documentation set up and want to use a custom theme. I have read the theme instructions on the sphinx website: http://www.sphinx-doc.org/en/stable/theming.html, but it doesn't work. I have my theme name the same as it is in the conf.py file and it is in a zip folder in the same directory, but i keep getting the following error: Theme error: no theme named 'tera' found (missing theme.conf?) make: *** [html] Error 2 My conf.py code is: html_theme = "tera" html_theme_options = {

PHP OOP: Unique method per argument type?

穿精又带淫゛_ 提交于 2019-12-20 01:55:13
问题 I'm writing a little homebrew ORM (academic interest). I'm trying to adhere to the TDD concept as a training exercise, and as part of that exercise I'm writing documentation for the API as I develop the class. Case in point - I'm working on a classic "getCollection" type mapper class. I want it to be able to retrieve collections of asset X (let's say blog posts) for a specific user, and also collections based on an arbitrary array of numeric values. So - you might have a method like any one