Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adjust prefix copy to account for predicates #64

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
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