oliverdavies.uk/content/node.4cdddd8a-3291-4d3f-81c9-e639f527f647.yml

84 lines
4 KiB
YAML

uuid:
- value: 4cdddd8a-3291-4d3f-81c9-e639f527f647
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:02+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: 'Learning by reading'
created:
- value: '2025-01-16T00:00:00+00:00'
changed:
- value: '2025-05-11T09:00:02+00:00'
promote:
- value: false
sticky:
- value: false
default_langcode:
- value: true
revision_translation_affected:
- value: true
path:
- alias: /daily/2025/01/16/learning
langcode: en
body:
- value: |
<p>When I'm working as part of a Development team, working on open source projects, watching live streams or reading code that people have released online - such as their website or dotfiles - I read a lot of other people's code.</p>
<p>It's an opportunity to learn from others and how they approach things.</p>
<p>How they achieved a desired result or fixed a bug, which I can learn from.</p>
<p>I can refer to it if I need to do something similar in the future.</p>
<p>Or I may find something random that's I didn't know I needed, such as a module, library or configuration setting I wasn't aware of.</p>
<p>I recently learned about .mailmap files from Greg Hurrell (wincent)'s dotfiles on GitHub.</p>
<p>.mailmap is a file that is used by Git when displaying history, such as running <code>git log</code>, and allows you to define canonical names and email addresses for committers and contributors.</p>
<p>I've accidentally used the wrong email address or typed my name incorrectly before in my Git configuration, which was there for all to see, but this file allows me to consolidate my identities within a repository so my commits are grouped together and attributed to me, regardless of which email address I used or how I wrote my name.</p>
<p>You can see <a href="https://code.oliverdavies.uk/opdavies/oliverdavies.uk/src/commit/633e11abedfa4cc8d85d37695c1ca014874fd4c1/.mailmap">the one I added to my website directory</a>.</p>
<p>If I hadn't looked at that repository, I wouldn't have learned about it.</p>
format: full_html
processed: |
<p>When I'm working as part of a Development team, working on open source projects, watching live streams or reading code that people have released online - such as their website or dotfiles - I read a lot of other people's code.</p>
<p>It's an opportunity to learn from others and how they approach things.</p>
<p>How they achieved a desired result or fixed a bug, which I can learn from.</p>
<p>I can refer to it if I need to do something similar in the future.</p>
<p>Or I may find something random that's I didn't know I needed, such as a module, library or configuration setting I wasn't aware of.</p>
<p>I recently learned about .mailmap files from Greg Hurrell (wincent)'s dotfiles on GitHub.</p>
<p>.mailmap is a file that is used by Git when displaying history, such as running <code>git log</code>, and allows you to define canonical names and email addresses for committers and contributors.</p>
<p>I've accidentally used the wrong email address or typed my name incorrectly before in my Git configuration, which was there for all to see, but this file allows me to consolidate my identities within a repository so my commits are grouped together and attributed to me, regardless of which email address I used or how I wrote my name.</p>
<p>You can see <a href="https://code.oliverdavies.uk/opdavies/oliverdavies.uk/src/commit/633e11abedfa4cc8d85d37695c1ca014874fd4c1/.mailmap">the one I added to my website directory</a>.</p>
<p>If I hadn't looked at that repository, I wouldn't have learned about it.</p>
summary: null
field_daily_email_cta: { }