Git Product home page Git Product logo

styleguide's Introduction

codeX Style Guide

Voice, tone, and markdown style guide. For more consistent and readable code and content.

Language

  • Talk about the coder, using the second person: "Next you will be installing Git."
  • Say "on the server" instead of "on the backend."

Placeholder variables are written in all caps, with no spaces inside angle brackets, like: <USERNAME>.

Technical terms

Explain commands immediately after they're used, including any options.

Some common terms and our preferred capitalisation:

  • HTML
  • CSS
  • JavaScript
  • jQuery
  • AJAX
  • Git
  • GitHub
  • Node (or Node.js)
  • SQL
  • MySQL
  • phpMyAdmin

Markdown formatting

Headers

  • ATX style
  • One space after hash
  • Surrounded by a blank line
  • No trailing punctuation
  • Increment one level at a time

Example

# Heading 1

Some context text.

## The next heading

Content

  • Don't use bare URLs: always use descriptive link text
  • Inline code snippets use a single backtick
  • Fenced code blocks are surrounded by blank lines and have a language specified
  • Emphasis markers, code elements, and link text have no spaces inside
  • Code or file names are enclosed by backticks
  • Lists
    • are surrounded by a blank line
    • start at the beginning of the line
    • are indented with 4 spaces
    • have spaces after list markers
  • Unordered lists use asterisks
  • Tables

Examples

Check out [project codeX](http://www.projectcodex.co/).
Change directories using `cd`.
    ```javascript
    console.log("Hello, world!");
    ```
Put your code into `hello.js`.
Web pages are made of:

* HTML
    * Structured Content
* CSS
    * Structured Content
* JavaScript
    * Presentation
| What | For |
| --- | --- | --- |
| HTML | Structured Content |
| CSS | Presentation |
| JavaScript | Behaviour |

styleguide's People

Contributors

ctcodex avatar stevebarnett avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.