Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 26 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,32 @@

# Naming cheatsheet

- [English language](#english-language)
- [Naming convention](#naming-convention)
- [S-I-D](#s-i-d)
- [Avoid contractions](#avoid-contractions)
- [Avoid context duplication](#avoid-context-duplication)
- [Reflect the expected result](#reflect-the-expected-result)
- [Naming cheatsheet](#naming-cheatsheet)
- [English language](#english-language)
- [Naming convention](#naming-convention)
- [S-I-D](#s-i-d)
- [Avoid contractions](#avoid-contractions)
- [Avoid context duplication](#avoid-context-duplication)
- [Reflect the expected result](#reflect-the-expected-result)
- [Naming functions](#naming-functions)
- [A/HC/LC pattern](#ahclc-pattern)
- [Actions](#actions)
- [Context](#context)
- [Prefixes](#prefixes)
- [Singular and Plurals](#singular-and-plurals)
- [A/HC/LC Pattern](#ahclc-pattern)
- [Actions](#actions)
- [`get`](#get)
- [`set`](#set)
- [`reset`](#reset)
- [`fetch`](#fetch)
- [`remove`](#remove)
- [`delete`](#delete)
- [`compose`](#compose)
- [`handle`](#handle)
- [Context](#context)
- [Prefixes](#prefixes)
- [`is`](#is)
- [`has`](#has)
- [`should`](#should)
- [`min`/`max`](#minmax)
- [`prev`/`next`](#prevnext)
- [Singular and Plurals](#singular-and-plurals)

---

Expand Down Expand Up @@ -285,7 +299,7 @@ function getRecentPosts(posts) {

## Prefixes

Prefix enhances the meaning of a variable. It is rarely used in function names.
A prefix enhances the meaning of a variable. They are rarely used in function names, unless the given function is a [predicate](https://www.typescriptlang.org/docs/handbook/advanced-types.html#using-type-predicates.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think "prefix" should be written and referred either singular or plural 🤔


### `is`

Expand Down