oliverdavies.uk/content/node.4a23658a-2666-4226-b573-9bba4376d6fb.json
2025-05-11 20:02:13 +01:00

100 lines
No EOL
3.8 KiB
JSON

{
"uuid": [
{
"value": "4a23658a-2666-4226-b573-9bba4376d6fb"
}
],
"langcode": [
{
"value": "en"
}
],
"type": [
{
"target_id": "daily_email",
"target_type": "node_type",
"target_uuid": "8bde1f2f-eef9-4f2d-ae9c-96921f8193d7"
}
],
"revision_timestamp": [
{
"value": "2025-04-21T01:21:25+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": "Be consistent"
}
],
"created": [
{
"value": "2024-09-20T00:00:00+00:00"
}
],
"changed": [
{
"value": "2025-04-21T01:21:25+00:00"
}
],
"promote": [
{
"value": false
}
],
"sticky": [
{
"value": false
}
],
"default_langcode": [
{
"value": true
}
],
"revision_translation_affected": [
{
"value": true
}
],
"path": [
{
"alias": "\/daily\/2024\/09\/20\/be-consistent",
"langcode": "en"
}
],
"body": [
{
"value": "\n <p>Whether you <a href=\"https:\/\/www.oliverdavies.uk\/daily\/2024\/09\/19\/the-two-ways-of-writing-php-code\">prefer strict code or not<\/a>, <a href=\"https:\/\/www.oliverdavies.uk\/daily\/2023\/04\/19\/camel-case-or-snake-case-for-drupal-code\">use snake-case or camel-case for variable names<\/a> or <a href=\"https:\/\/www.oliverdavies.uk\/daily\/2022\/11\/14\/camel-case-or-snake-case-for-test-methods\">how you write your test methods<\/a>, it is important to be consistent in how code is written.<\/p>\n\n<p>If you're working in a file that uses snake-case variable names, you should do the same and follow the same conventions.<\/p>\n\n<p>When reading a file, everything should be consistent and seem like it was written by the same person following the same approaches.<\/p>\n\n<p>Otherwise, when you need to add to or refactor this code in the future, it will be harder to do so.<\/p>\n\n<p>Consistency is key.<\/p>\n\n ",
"format": "full_html",
"processed": "\n <p>Whether you <a href=\"https:\/\/www.oliverdavies.uk\/daily\/2024\/09\/19\/the-two-ways-of-writing-php-code\">prefer strict code or not<\/a>, <a href=\"https:\/\/www.oliverdavies.uk\/daily\/2023\/04\/19\/camel-case-or-snake-case-for-drupal-code\">use snake-case or camel-case for variable names<\/a> or <a href=\"https:\/\/www.oliverdavies.uk\/daily\/2022\/11\/14\/camel-case-or-snake-case-for-test-methods\">how you write your test methods<\/a>, it is important to be consistent in how code is written.<\/p>\n\n<p>If you're working in a file that uses snake-case variable names, you should do the same and follow the same conventions.<\/p>\n\n<p>When reading a file, everything should be consistent and seem like it was written by the same person following the same approaches.<\/p>\n\n<p>Otherwise, when you need to add to or refactor this code in the future, it will be harder to do so.<\/p>\n\n<p>Consistency is key.<\/p>\n\n ",
"summary": null
}
],
"feeds_item": [
{
"imported": "2025-04-21T01:21:25+00:00",
"guid": null,
"hash": "868d9285f3f2c28b801786ad11418bb5",
"target_type": "feeds_feed",
"target_uuid": "90c85284-7ca8-4074-9178-97ff8384fe76"
}
]
}