1
1
mirror of https://github.com/theoludwig/theoludwig.git synced 2024-11-09 14:51:30 +01:00

fix(posts): grammar and orthograph in clean-code (#321)

This commit is contained in:
Xc165543337 2021-11-10 10:42:37 +01:00 committed by Divlo
parent 0bf89f4df5
commit e5f4615f7f
No known key found for this signature in database
GPG Key ID: 8F9478F220CE65E9

View File

@ -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 ? ## 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. 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 fs from 'node:fs'
import path from 'node:path' import path from 'node:path'
const createFile = async (name: string, isTemporary: boolean = false) => { const createFile = async (name: string) => {
if (isTemporary) { if (isTemporary) {
return await fs.promises.writeFile(path.join('temporary', name), '') return await fs.promises.writeFile(path.join('temporary', name), '')
} }