From b4a0050ee7044dc835c47977a7417364f80f6fb4 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Mon, 30 Sep 2024 23:56:36 +0100 Subject: [PATCH] Add daily email for 2024-09-26 Don't add blank lines --- source/_daily_emails/2024-09-26.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 source/_daily_emails/2024-09-26.md diff --git a/source/_daily_emails/2024-09-26.md b/source/_daily_emails/2024-09-26.md new file mode 100644 index 000000000..44b0d6a24 --- /dev/null +++ b/source/_daily_emails/2024-09-26.md @@ -0,0 +1,18 @@ +--- +title: Don't add blank lines +date: 2024-09-26 +permalink: daily/2024/09/26/dont-add-blank-lines +tags: + - software-development +cta: ~ +snippet: | + Should you add blank lines in your code? +--- + +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". + +I may have misremembered the exact wording, but that was the gist of it. + +I like to add blank lines within my functions to create and add separation between logical blocks of code. + +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.