Move daily emails into the blog page

This commit is contained in:
Oliver Davies 2025-08-21 00:28:10 +01:00
parent be69398931
commit 1b8441608f
828 changed files with 9 additions and 196 deletions

View file

@ -0,0 +1,16 @@
---
title: >
YAGNI
pubDate: 2023-08-06
permalink: >-
daily/2023/08/06/yagni
tags: []
---
During a recent coding dojo session, we spoke about YAGNI - i.e. "You aren't going to need it".
In this situation, we discussed how many numbers we should support passing to a method in a calculator application.
There's no technical limit to how many numbers we can pass, but there may be a requirement where we only need to add or subtract two numbers. In that case, we don't need to calculate three or more numbers, so there's no benefit or value to writing that code.
If we follow YAGNI, we only write the code we need now. If the requirement changes in the future, we revisit the code and change it as required.