oliverdavies.uk/content/node.f5f4ce80-df89-4a85-ba7f-5aa819e9a4d7.yml

73 lines
2.9 KiB
YAML

uuid:
- value: f5f4ce80-df89-4a85-ba7f-5aa819e9a4d7
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:38+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: |
Think smaller with TDD
created:
- value: '2023-07-04T00:00:00+00:00'
changed:
- value: '2025-05-11T09:00:38+00:00'
promote:
- value: false
sticky:
- value: false
default_langcode:
- value: true
revision_translation_affected:
- value: true
path:
- alias: /daily/2023/07/04/think-smaller-with-tdd
langcode: en
body:
- value: |
<p>I've recently added several custom search blocks and pages to a client project.</p>
<p>Each requires a results page, a list of autocomplete suggestions for users to select from, a custom form, and a block to place it on the required pages.</p>
<p>For each search, I'm first testing the results page, ensuring it exists and contains the correct results before testing the autocomplete results, creating the block and form, and linking everything together.</p>
<h2 id="thinking-small">Thinking small</h2>
<p>This could seem like a large and daunting task, but with test-driven development, I can break everything into smaller, more manageable tasks.</p>
<p>My objective is either to write the next failing test and then get it to pass or to refactor what I've written.</p>
<p>I can focus on these small steps and make progress towards the end goal, guided by the tests I'm writing, instead of needing to focus always on one large and complex task.</p>
format: full_html
processed: |
<p>I've recently added several custom search blocks and pages to a client project.</p>
<p>Each requires a results page, a list of autocomplete suggestions for users to select from, a custom form, and a block to place it on the required pages.</p>
<p>For each search, I'm first testing the results page, ensuring it exists and contains the correct results before testing the autocomplete results, creating the block and form, and linking everything together.</p>
<h2 id="thinking-small">Thinking small</h2>
<p>This could seem like a large and daunting task, but with test-driven development, I can break everything into smaller, more manageable tasks.</p>
<p>My objective is either to write the next failing test and then get it to pass or to refactor what I've written.</p>
<p>I can focus on these small steps and make progress towards the end goal, guided by the tests I'm writing, instead of needing to focus always on one large and complex task.</p>
summary: null
field_daily_email_cta: { }