Common naming practices.
i
indexj
secondary index_
discarded valuex
argument, variablef, F
functionT
typeN
number (integer)C
constant, coefficientQ, Z
effectiveness, goal
id
indexrg
regex patternno
error objectok
success objecti, rq
request objecto, rs
response object
file-name.ext
file name (kebab-case)items/1
REST resource (plural)/fonts/
folder name (plural)CONST_NAME
constant (UPPERCASE)A Title
title (Title Case)MyClass
class, module (PascalCase)someFunc()
function (camelCase)_field
private (but i don't like it)IName
interface (only methods, multiple inheritance)AName, BaseName
abstract (only signatures, single inheritance, prefixing is optional)trackPlay
register an event listenerisPlay
bool, checker functiononPlay
event handlerrgMail
regex for email validationobjRef
object referenceimgUrl
image UrlvalueChange$, newValue$
Event, Observable, Subject (JavaScript)
<N>
number<I>
index, integer<A>
alphabetical, character, symbol<S>
string<T>
type<?>
bool<@>
url/file/reference<*>
all[...]
optional<[T]>
list of typeT
<{S:N}>
dictionary with string keys and number values<name>
variable (specified viamonospace
style in the descriptive text if is not obvious)
+ task
done- task
to do% task
blocked* task
special: incomplete or demands attention (the more asterisks, the more important)? task
needs discussion! task
proposal, idea