From 44d98704acb856faab76c0028499f0f8321febad Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Wed, 22 Jan 2025 23:42:17 +0000 Subject: [PATCH] Add daily email for 2025-01-16 Learning by reading --- source/_daily_emails/2025-01-16.md | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 source/_daily_emails/2025-01-16.md diff --git a/source/_daily_emails/2025-01-16.md b/source/_daily_emails/2025-01-16.md new file mode 100644 index 000000000..cbed4203a --- /dev/null +++ b/source/_daily_emails/2025-01-16.md @@ -0,0 +1,28 @@ +--- +title: Learning by reading +date: 2025-01-16 +permalink: daily/2025/01/16/learning +tags: + - software-development +cta: ~ +snippet: | + I read a lot of other people's code, and learned a lot from it. +--- + +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. + +It's an opportunity to learn from others and how they approach things. + +How they achieved a desired result or fixed a bug, which I can learn from. + +I can refer to it if I need to do something similar in the future. + +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. + +I recently learned about .mailmap files from Greg Hurrell (wincent)'s dotfiles on GitHub. + +.mailmap is a file that is used by Git when displaying history, such as running `git log`, and allows you to define canonical names and email addresses for committers and contributors. + +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. + +If I hadn't looked at that repository, I wouldn't have learned about it.