Home

Awesome

NPR Visuals' Best Practices

The contents of this repository are released under a Creative Commons CC BY 3.0 License.

Index

Project documentation

Always ensure the following things are documented in the README:

Naming things

Naming things (variables, files, classes, etc.) consistently and intuitively is one of the hardest problems in computer science. To make it easier, follow these conventions:

<table> <tr><th>Prefer...</th><th>to...</th></tr> <tr><td>create</td><td>insert, add, new</td></tr> <tr><td>update</td><td>change, edit</td></tr> <tr><td>delete</td><td>remove, purge</td></tr> <tr><td>setup</td><td>init</td></tr> <tr><td>make</td><td>build, generate</td></tr> <tr><td>wrapper</td><td>wrap</td></tr> <tr><td>render</td><td>draw</td></tr> </table>

(Note: sometimes these words don't mean the same thing, but when they do, prefer the former.)

Version control

See git.md.

Servers

HTML and CSS

See html_and_css.md.

Javascript

See javascript.md.

Python

See python.md.

Assets

See assets.md.