From 9e492d26a7bb70aa5ea6ec1dd2bc3d288e6920ce Mon Sep 17 00:00:00 2001 From: Ioannis Brant-Ioannidis <72696535+gbrandtio@users.noreply.github.com> Date: Wed, 15 Feb 2023 18:50:56 +0400 Subject: [PATCH] Adding terminology for magic literals (#59) --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 342f90f..c6d7c18 100644 --- a/README.md +++ b/README.md @@ -119,7 +119,7 @@ function getUser(): User; ### Use searchable names -We will read more code than we will ever write. It's important that the code we do write must be readable and searchable. By *not* naming variables that end up being meaningful for understanding our program, we hurt our readers. Make your names searchable. Tools like [ESLint](https://typescript-eslint.io/) can help identify unnamed constants. +We will read more code than we will ever write. It's important that the code we do write must be readable and searchable. By *not* naming variables that end up being meaningful for understanding our program, we hurt our readers. Make your names searchable. Tools like [ESLint](https://typescript-eslint.io/) can help identify unnamed constants (also known as magic strings and magic numbers). **Bad:**