Think
Up
Docs
Blog
ThinkUp 2.0-beta.10 Docs
Introduction
Installation
User Guide
Frequently Asked Questions
Troubleshoot
Contact Us
Contribute
Where to Start
How You Can Help
Development Team
Changelog
Write Code
¶
Code Style Guides
PHP Code Style Guide
Use PHP5 conventions
Indentation
Braces
Avoid multiple blank lines
Maximum line length: 120 characters
Include docblocks in all code
Keyword case
Same-line curly braces
Boolean operator at the beginning of the line
MVC architecture
JavaScript Code Style Guide
Indentation
Names
Braces
Semicolons
Comments
Operators
Control Statements
Functions
Arrays
jQuery Snippet Formatting
CSS Code Style Guide
Indentation
Names & Capitalization
Use External Stylesheets
Write Valid CSS
Comments
Selectors
Property-Value Pairs
Colors
Dimensions
Add a New Feature
Write Documentation First
Write Tests Next
Write Code Last
Fix a Bug
Write Your Test First
How to Write Great Unit Tests
ThinkUp Testing Best Practices
« Previous: Run ThinkUp’s Test Suite
Next: Code Style Guides »