bmander / graphserver

An open source multimodal trip planning engine

graphserver / STYLE
100644 20 lines (11 sloc) 0.655 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Graphserver Styleguide.
 
--== A note ==--
 
These principles are broken by older code. Over time, the entire codebase should conform.
 
--== Principles ==--
 
Classes are camel-cased. Instance variable are lower-cased, with underscores between words.
 
Longform variables "longform_variable" are good, but don't go overboard. Shortform variables "x1" are okay when conforming to well established convention.
 
Items in a vector of items of homogenous type are named (object1, object2, object3) et cetera.
 
Name like object_property not object_propertytype. For example, "arrival_time" not "arrival_secs".
 
--== Preferred Terms ==--
 
arrival_time
departure_time