ThinkUp Documentation
Index
Introduction
Installation
User Guide
Frequently Asked Questions
Troubleshoot
Contact Us
Contribute
Development Team
Changelog
ThinkUp v1.3.1
→
Contribute
→
Developer
Write Code
¶
Code Style Guides
PHP Code Style Guide
Use PHP5 Conventions
Maximum Line Length: 120 characters
Include Docblocks on All New Code
Keyword case
Same-line Curly Braces
MVC Architecture
Drupal conventions to take notice of
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