Skip to content
Elayabharath edited this page Jun 15, 2020 · 1 revision

General

  1. Use const if the values are known at the compilation
  2. Use the term firebase over db
  3. Functions to be modular, pass params and return the result than mutate global variable inside
  4. () ? a : _ ternary operator could be replaced with if() a
  5. Utils are mostly for functions that may not fit anywhere e.g. sorting algorithm, generating IDs. Should not be used for view methods

CSS

  1. Group the css properties around positional, spatial, font css for readability
  2. Avoid !important unless absolutely required

Clone this wiki locally