{ "uuid": [ { "value": "ff8d6ab3-e544-4f38-9d76-7206e7e4d9fe" } ], "langcode": [ { "value": "en" } ], "type": [ { "target_id": "daily_email", "target_type": "node_type", "target_uuid": "8bde1f2f-eef9-4f2d-ae9c-96921f8193d7" } ], "revision_timestamp": [ { "value": "2025-05-11T09:00:26+00:00" } ], "revision_uid": [ { "target_type": "user", "target_uuid": "b8966985-d4b2-42a7-a319-2e94ccfbb849" } ], "revision_log": [], "status": [ { "value": true } ], "uid": [ { "target_type": "user", "target_uuid": "b8966985-d4b2-42a7-a319-2e94ccfbb849" } ], "title": [ { "value": "Custom coding standards and conventions\n" } ], "created": [ { "value": "2023-12-11T00:00:00+00:00" } ], "changed": [ { "value": "2025-05-11T09:00:26+00:00" } ], "promote": [ { "value": false } ], "sticky": [ { "value": false } ], "default_langcode": [ { "value": true } ], "revision_translation_affected": [ { "value": true } ], "path": [ { "alias": "\/daily\/2023\/12\/11\/custom-coding-standards-and-conventions", "langcode": "en" } ], "body": [ { "value": "\n
Open-source projects like Drupal and Symfony have their own published coding standards and conventions.<\/p>\n\n
For example, from Symfony's coding standards<\/a>:<\/p>\n\n And from Drupal's<\/a>:<\/p>\n\n But what about within custom applications?<\/p>\n\n Do you have your own agreed coding standards and conventions to keep the code consistent?<\/p>\n\n Do you explicitly follow the published coding standards, customise them, or follow something else?<\/p>\n\n Do you know where to put new custom modules, how to name them and what conventions to follow when writing code?<\/p>\n\n Do you know where to add a new stylesheet to your theme?<\/p>\n\n If not, or it's implied, it's worth writing it down and being explicit - either within your project's or company's documentation or publicly.<\/p>\n\n ",
"format": "full_html",
"processed": "\n Open-source projects like Drupal and Symfony have their own published coding standards and conventions.<\/p>\n\n\n
Abstract<\/code> except PHPUnit
*TestCase<\/code>.<\/li>\n
Interface<\/code>;<\/li>\n
Trait<\/code>;<\/li>\n<\/ul>\n\n
\n
$lowerCamelCase<\/code>) or with an underscore (example:
$snake_case<\/code>). Be consistent; do not mix camelCase and snake_case variable naming inside a file.<\/li>\n<\/ul>\n\n
Here's the thing<\/h2>\n\n