📜  如何编写可读代码 - 任何代码示例

📅  最后修改于: 2022-03-11 14:57:43.210000             🧑  作者: Mango

代码示例1
1. Always name your properties or variables in such a way that leaves absolutely no room for confusion/misunderstanding/ambiguity 
2. Always capture a complicated piece of logic in a very descriptive, self-reading variable.
3. Avoid double negative (`const isNotBlocked = false` --> `const isBlocked = true`)