Comments (8)
Front-end folks should make the design call whether to stick with all caps headings or not. @jme783 @jenesaisdiq
Either way, we need to always include a code syntax example to show the capitalization. Thank you @kennethlimcp for adding the code block of syntax examples for these two.
from docs.
IMHO headings should NOT be all caps and should, instead, reflect valid syntax.
from docs.
I will say I was bitten by this recently when copy pasting in some func from the docs
Sent from my iPhone
On Jun 16, 2015, at 5:58 AM, Geoff Marshall [email protected] wrote:
IMHO headings should NOT be all caps and should, instead, reflect valid syntax.
—
Reply to this email directly or view it on GitHub.
from docs.
What's the current state of this? Looks to me like docs now have camelCase examples, and that the compile service, at least, is agreeing that camelCase is the correct format (and that ALLCAPS is not).
What'd ya get bitten by, @dmiddlecamp?
from docs.
Center column @jenesaisdiq headings are all caps... I agree these should be proper syntax, or if not... do not show the heading as code syntax. For example: WiFi.clearCredentials() is better than WI-FI CLEAR CREDENTIALS is better than WIFI.CLEARCREDENTIALS()
from docs.
Also, if method returns non-void, strive to provide pseudo-code in the RHS
to indicate useful interpretation of return code.
On Tue, Jun 16, 2015 at 10:18 PM, Technobly [email protected]
wrote:
[image: screen shot 2015-06-16 at 10 11 17 pm]
https://cloud.githubusercontent.com/assets/2249224/8199040/b56496c6-1474-11e5-8a97-a85840216b79.png
Center column @jenesaisdiq https://github.com/jenesaisdiq headings are
all caps... I agree these should be proper syntax, or if not... do not show
the heading as code syntax. For example: WiFi.clearCredentials() is better
than WI-FI CLEAR CREDENTIALS is better than WIFI.CLEARCREDENTIALS()—
Reply to this email directly or view it on GitHub
#41 (comment).
Andy
from docs.
Ahh, starin' me in the face, thanks @technobly. Will make sure it gets addressed.
Good point @andyw-lala; clearCredentials doesn't especially seem like it needs to have that response caught (for it to be useful), but hasCredentials probably does. I'm not seeing compile errors when I don't assign that return to anything, so it seems that a practical example's the necessary bit.
from docs.
C doesn't complain if you ignore return values, but from a documentation
standpoint, if the function returns useful values, and the descriptive text
explains them, then the example should match.
On Tue, Jun 16, 2015 at 10:38 PM, Richard Whitney [email protected]
wrote:
Ahh, starin' me in the face, thanks @technobly
https://github.com/technobly. Will make sure it gets addressed.Good point @andyw-lala https://github.com/andyw-lala; clearCredentials
doesn't especially seem like it needs to have that response caught (for it
to be useful), but hasCredentials probably does. I'm not seeing compile
errors when I don't assign that return to anything, so it seems that a
practical example's the necessary bit.—
Reply to this email directly or view it on GitHub
#41 (comment).
Andy
from docs.
Related Issues (20)
- Device Doctor Present on Gen3 Status LED Pages HOT 1
- QuickStart Section 4: Target your device - missing an obvious statement
- Clicking on Quickstart defaults to Xenon Quickstart page
- Establish standards for documentation
- Menubar not showing on Windows
- /integrations/influxdata.md mistake in example
- Create a Photon getting started tutorial that corresponds to the Kit hardware.
- Argon's high-res PDF Pinout Diagram depicts Xenon instead HOT 1
- Search Bar is Broken HOT 1
- Alternative way to extract & run OSX Installer on 10.15
- Invalid Timestamps In Docs
- Incorrect information about device function ARGS HOT 1
- Incorrect information about attachSystemInterrupt for Boron HOT 3
- Cloud SDK: "Generate an access token" section is missing some info HOT 1
- Tracker One data-sheet incorrectly numbers USB-C dip switch positions
- Improving webhook docs
- Incorrect return type for digitalRead() HOT 1
- SYSTEM MODES for mesh devices don't mention mesh radio behaviors
- Undocumented System Event `power_source` to be added
- Cellular RSSI on Boron appears to be a percentage rather than dB HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docs.