Blog

PSR-0 Standards

Saw this recently hit the Drupal crowd over at http://drupal.org/node/1240138 The standard itself can be found at: http://groups.google.com/group/php-standards/web/psr-0-final-proposal?pli=1 with implementation found at: https://gist.github.com/221634 Does anyone have any thoughts on this? Should we be utilizing the PSR-0 standard in 2.0?

Naming Pod Templates and Pod Helpers with a Slash and why it makes sense

When things first started out with Pods, the naming conventions for Pod Templates and Pod Helpers were pretty much a free-for-all. Examples of names would be like: event_list (template) event_detail (template) event_save (pre-save helper) image_full (display helper) image_thumb (display helper) subscriber_get_info (display helper – advanced) etc… But, now that your sites are becoming more complex, …

Read more

Function / Class Reordering

The plugin files contain a number of function definitions that could be better ‘sorted’. Should functions be by alphabetically (with __construct always at top for class definitions)? Or should the functions be sorted another way?

Revised Code Formatting Rules for 2.0+

After discussion with @logikal16, here are the new rules we’ll be enforcing on the Pods codebase. Shorthand Shorthand can get messy, so it’s permitted in simple cases. Here are the examples where Shorthand usage is permitted. if (0 < $variable || false !== $variable)     $do = ‘something’; else     $do = ‘something’; and $do = (0 …

Read more

Function Coding Standard

Just wondering, anyone prefer one over the other? I feel the first offers an easier lookup via Find if you just type in “function_name (” Suggested way: function function_name ($var, $var) { Current way: function function_name($var, $var) {