Skip to content

Instantly share code, notes, and snippets.

@daspecster
Last active August 29, 2015 14:05
Show Gist options
  • Save daspecster/78519dc01858399149aa to your computer and use it in GitHub Desktop.
Save daspecster/78519dc01858399149aa to your computer and use it in GitHub Desktop.
Code Standards and Resources

Code Standards

Here are some resources to help us write better code and recognize code that may need some help.

HTML

CSS

Python

JavaScript/ECMA5

Database Architecture

In a Nutshell

  • HTML will be sematic
  • HTML will be accessible
  • Disabling Javascript should not render page inoperable
  • Flash is obsolete and not a solution of anykind
  • CSS will be minified
  • CSS will not be inline
  • Javascript will be minified
  • Python will be PEP8
  • Database Schemas will be normalized
  • There will be no "SELECT *"'s
  • There will be no direct access from HTTP variables i.e. "SELECT something from mytable where id = " + request.get('submitted_id')

Principles to successfully accomplish our goals

  • Automate Everything (Like Github says). We can use git hooks and pre-deployment scripts to check code standards and run tests.
  • p2p Accountability. Be open and honest! If you see something in some code talk to the person that committed it and fix it together! While smiling, laughing and shooting eachother with nerf darts.
  • Teach Others! If you know something you think is cool then make a presentation on it and share!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment