oliverdavies.uk/content/node.0318e249-a9a8-476f-9bd4-432544369917.yml

80 lines
3.3 KiB
YAML

uuid:
- value: 0318e249-a9a8-476f-9bd4-432544369917
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:01+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: 'To patch or not to patch'
created:
- value: '2025-02-24T00:00:00+00:00'
changed:
- value: '2025-05-11T09:00:01+00:00'
promote:
- value: false
sticky:
- value: false
default_langcode:
- value: true
revision_translation_affected:
- value: true
path:
- alias: /daily/2025/02/24/patch
langcode: en
body:
- value: |
<p><a href="/daily/2025/01/13/patches">Applying patch files</a> is a common way to customise and extend open source software, and how we used to submit changes to Drupal before issue forks and merge requests were added to Drupal.org.</p>
<p>Some software, such as dwm and st from suckless.org are released as minimal versions that you patch to add features to.</p>
<p>If you find a line of code that you want to add, edit or delete, a patch file describes the changes so you can re-apply them whenever the source file changes.</p>
<p>Patching offers unlimited customisation and flexibility.</p>
<p>Whatever changes you want to make, you can.</p>
<p>The downside is you need to maintain any patches you've written.</p>
<p>If a change is made that causes your patch to no longer apply, you'll need to update the patch.</p>
<p>There are some patches I commonly apply to Drupal projects, but I'll try to either contribute the changes back to the Drupal so I no longer need the patch or make the change in a custom module.</p>
<p>Sometimes, though, <a href="/daily/2025/01/14/patching-drupal">patching is the only option</a>.</p>
format: full_html
processed: |
<p><a href="http://default/daily/2025/01/13/patches">Applying patch files</a> is a common way to customise and extend open source software, and how we used to submit changes to Drupal before issue forks and merge requests were added to Drupal.org.</p>
<p>Some software, such as dwm and st from suckless.org are released as minimal versions that you patch to add features to.</p>
<p>If you find a line of code that you want to add, edit or delete, a patch file describes the changes so you can re-apply them whenever the source file changes.</p>
<p>Patching offers unlimited customisation and flexibility.</p>
<p>Whatever changes you want to make, you can.</p>
<p>The downside is you need to maintain any patches you've written.</p>
<p>If a change is made that causes your patch to no longer apply, you'll need to update the patch.</p>
<p>There are some patches I commonly apply to Drupal projects, but I'll try to either contribute the changes back to the Drupal so I no longer need the patch or make the change in a custom module.</p>
<p>Sometimes, though, <a href="http://default/daily/2025/01/14/patching-drupal">patching is the only option</a>.</p>
summary: null
field_daily_email_cta: { }