Phrasing
Naming Things
Components, models and functions should be named descriptively to avoid ambiguity:
- MousePosition instead of
PositionorPos - decodeMousePosition instead of
positionDecoderormousePositionDec
Variable names
The following names should be used across the code base to avoid ambiguity:
- Position in 2d space:
- top instead of
pageYorx - left instead of
pageXory - height instead of
innerHeight - width instead of
innerWidth
- top instead of