oliverdavies.uk/content/node.36d7f751-faeb-48a4-9fb3-fc8248bb515c.yml

65 lines
1.9 KiB
YAML

uuid:
- value: 36d7f751-faeb-48a4-9fb3-fc8248bb515c
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:24+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: |
This should never happen
created:
- value: '2023-12-24T00:00:00+00:00'
changed:
- value: '2025-05-11T09:00:24+00:00'
promote:
- value: false
sticky:
- value: false
default_langcode:
- value: true
revision_translation_affected:
- value: true
path:
- alias: /daily/2023/12/24/this-should-never-happen
langcode: en
body:
- value: |
<p>How often do you see comments like "This should never happen" in a software codebase?</p>
<p>If that's true, why is it there?</p>
<p>If it truly should never happen, the additional code only adds more noise and distracts from the code that is run.</p>
<p>You can add a test that checks a method isn't called, but what value does this offer?</p>
<p>If it doesn't happen or some code isn't run, remove it and keep it as simple, clean and easy to understand as possible.</p>
format: full_html
processed: |
<p>How often do you see comments like "This should never happen" in a software codebase?</p>
<p>If that's true, why is it there?</p>
<p>If it truly should never happen, the additional code only adds more noise and distracts from the code that is run.</p>
<p>You can add a test that checks a method isn't called, but what value does this offer?</p>
<p>If it doesn't happen or some code isn't run, remove it and keep it as simple, clean and easy to understand as possible.</p>
summary: null
field_daily_email_cta: { }