From e5f4615f7fcc5871d15f8bfe1d9da9cd641f6806 Mon Sep 17 00:00:00 2001 From: Xc165543337 <90028194+Xc165543337@users.noreply.github.com> Date: Wed, 10 Nov 2021 10:42:37 +0100 Subject: [PATCH] fix(posts): grammar and orthograph in clean-code (#321) --- posts/clean-code.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/posts/clean-code.mdx b/posts/clean-code.mdx index 1df7304..1db817d 100644 --- a/posts/clean-code.mdx +++ b/posts/clean-code.mdx @@ -25,7 +25,7 @@ It depends of many factors, and is somewhat relative to each one of us. The **pe ## Why is it so important ? -Code that works is great, but it is not enough, even if the code will be read by the computer and understood by the machine, we should not forget that the code is **human written** and will be also **read by a human** not only a machine. +Code like that works great, but it is not enough, even if the code will be read by the computer and understood by the machine, we should not forget that the code is **written by human** and will be also **read by human** not only a machine. For example the [Linux kernel](https://www.kernel.org/), is one of the biggest open source project with many contributors worldwide. Last data shows that it is about **20 millions** lines of code. @@ -171,7 +171,7 @@ We have to keep it as simple as possible, not to implement features that are not import fs from 'node:fs' import path from 'node:path' -const createFile = async (name: string, isTemporary: boolean = false) => { +const createFile = async (name: string) => { if (isTemporary) { return await fs.promises.writeFile(path.join('temporary', name), '') }