60 lines
2.2 KiB
YAML
60 lines
2.2 KiB
YAML
uuid:
|
|
- value: 0be950c9-3eaf-4ac1-9833-8b3f3fde5a0f
|
|
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:06+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: "Don't add blank lines"
|
|
created:
|
|
- value: '2024-09-26T00:00:00+00:00'
|
|
changed:
|
|
- value: '2025-05-11T09:00:06+00:00'
|
|
promote:
|
|
- value: false
|
|
sticky:
|
|
- value: false
|
|
default_langcode:
|
|
- value: true
|
|
revision_translation_affected:
|
|
- value: true
|
|
path:
|
|
- alias: /daily/2024/09/26/dont-add-blank-lines
|
|
langcode: en
|
|
body:
|
|
- value: |
|
|
<p>I recently saw a social media post that said something like "Don't add blank lines within functions. They take up space and don't add anything".</p>
|
|
|
|
<p>I may have misremembered the exact wording, but that was the gist of it.</p>
|
|
|
|
<p>I like to add blank lines within my functions to create and add separation between logical blocks of code.</p>
|
|
|
|
<p>Whilst this doesn't add anything for a computer parsing and serving the code, or a CI pipeline performing checks, it makes the code easier for people to read and understand which, it my opinion, adds its own value - even if the functionality is the same.</p>
|
|
|
|
|
|
format: full_html
|
|
processed: |
|
|
<p>I recently saw a social media post that said something like "Don't add blank lines within functions. They take up space and don't add anything".</p>
|
|
|
|
<p>I may have misremembered the exact wording, but that was the gist of it.</p>
|
|
|
|
<p>I like to add blank lines within my functions to create and add separation between logical blocks of code.</p>
|
|
|
|
<p>Whilst this doesn't add anything for a computer parsing and serving the code, or a CI pipeline performing checks, it makes the code easier for people to read and understand which, it my opinion, adds its own value - even if the functionality is the same.</p>
|
|
|
|
|
|
summary: null
|
|
field_daily_email_cta: { }
|