Add daily email for 2024-08-11

Commits are Cheap
This commit is contained in:
Oliver Davies 2024-08-12 00:54:30 +01:00
parent 37e9734579
commit bc6c9cf298

View file

@ -0,0 +1,23 @@
---
title: Commits are cheap
date: 2024-08-11
permalink: daily/2024/08/11/commits-are-cheap
tags:
- software-development
- git
cta: ~
snippet: |
Commits are cheap. Debugging without a commit isn't.
---
When using a version control system, such as Git, commits are quick and cheap.
I like to make small commits as often as possible whilst working on a task.
For example, when doing test-driven development, I commit my changes wherever the tests are passing or after a refactor.
Each commit is a checkpoint I can easily roll back to if needed.
I've never regretted making a commit, but I've regretted not making one.
Commits are cheap, but debugging without a recent commit is expensive.