-
Notifications
You must be signed in to change notification settings - Fork 74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Establish a structure for devportal tutorials #46
Comments
Results Structure# Title / Overview
An explanation for the purpose of what this tutorial teaches.
## Simple Arguments
Basic usage that is shown in the tutorial.
## Advanced Arguments
Expanded usage including things like how to use api features to filter or paginate the
result.
## Expanded Results
Although the tutorial might demonstrate a specific task, this section should expand on all
of the output of the methods.
## How To Run
Briefly show how to run this specific example.
## Troubleshooting
Should be specific gotchas to the topic, not general troubleshooting.
### First (most common) situation briefly describing a complication
A detailed description of the situation.
A solution, workaround, or other compensating control
### Next (most common) situation briefly describing a complication
A detailed description of the situation.
A solution, workaround, or other compensating control
Code ComplexityWe can use two methods for determining new code complexity. Eyeball (subjective) methods just determine:
Or use https://github.com/terryyin/lizard It's a fairly simple tool. Suggested usage for examples with example modules: lizard -C 5 -a 5 -L 50 public/app.js Result: ================================================
NLOC CCN token PARAM length location
------------------------------------------------
22 2 194 0 23 fetchBlog@3-25@public/app.js
1 file analyzed.
==============================================================
NLOC Avg.NLOC AvgCCN Avg.token function_cnt file
--------------------------------------------------------------
24 22.0 2.0 194.0 1 public/app.js
========================================================================================
No thresholds exceeded (cyclomatic_complexity > 5 or length > 50 or parameter_count > 5)
==========================================================================================
Total nloc Avg.NLOC AvgCCN Avg.token Fun Cnt Warning cnt Fun Rt nloc Rt
------------------------------------------------------------------------------------------
24 22.0 2.0 194.0 1 0 0.00 0.00 This result implies low code complexity for |
Nice work. |
I also think it would be trivial to add |
We need a consistent pattern for all developer portal tutorials so users know how to orient themselves when entering a new tutorial.
The text was updated successfully, but these errors were encountered: