oliverdavies.uk/content/node.2e4827a4-0d9c-458c-86eb-d6b40f18d608.yml

65 lines
2.2 KiB
YAML
Raw Normal View History

2025-07-10 00:14:12 +01:00
uuid:
- value: 2e4827a4-0d9c-458c-86eb-d6b40f18d608
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:05+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: 'Test, then refactor'
created:
- value: '2024-10-20T00:00:00+00:00'
changed:
- value: '2025-05-11T09:00:05+00:00'
promote:
- value: false
sticky:
- value: false
default_langcode:
- value: true
revision_translation_affected:
- value: true
path:
- alias: /daily/2024/10/20/test-then-refactor
langcode: en
body:
- value: |
<p><a href="/daily/2024/10/19/phpunit-or-pest">Whether you prefer PHPUnit or Pest PHP</a>, or if you're coding in a different language, it's important to have automated tests - especially before you refactor any code.</p>
<p>Before you refactor, you want to have passing tests that you're confident cover all the required functionality.</p>
<p>When you finish refactoring, the tests should still pass.</p>
<p>Then you know the functionality is the same and the code still works after it's been refactored.</p>
<p>If you don't have tests, how do you know everything still works, or how likely are you to do the refactor at all?</p>
format: full_html
processed: |
2025-07-16 12:00:00 +01:00
<p><a href="/daily/2024/10/19/phpunit-or-pest">Whether you prefer PHPUnit or Pest PHP</a>, or if you're coding in a different language, it's important to have automated tests - especially before you refactor any code.</p>
2025-07-10 00:14:12 +01:00
<p>Before you refactor, you want to have passing tests that you're confident cover all the required functionality.</p>
<p>When you finish refactoring, the tests should still pass.</p>
<p>Then you know the functionality is the same and the code still works after it's been refactored.</p>
<p>If you don't have tests, how do you know everything still works, or how likely are you to do the refactor at all?</p>
summary: null
field_daily_email_cta: { }