rovan-a of Pixel's Programmer
12/27/2016 - 4:08 AM

Communication Standardization

Communication Standardization

In the morning always pull repository

Wacth Treehouse about Git!
for php programming
comment snippet php docs
/** -> Tab
*Get User details
*@param int  user_id
*@return object user

comment in every code

HTML comment for every section
use Build tools -> Gulp

code editor : Sublime

tab : 4 tabs indentation, nospace

log : backend -> sentry.io

after comma space one

end of function double enter to another function routes, inside of class single enter

carefull with TYPO
clear data name

all name in english

json
  keyname : underscore

Python
  variable name
  - english
  - sesuai peruntukan(the name explaining it's function)
  - underscore
  
Object
  AdController(capitalize)

Function
  delete_ad_account()

Method
  AdController.delete_ad_account()
  
who handle what

security, effective, efficient
{
  error : 0,
  message : "success",
  data : [data]
}

{
  error : 1,
  message : "error 1",
  data : []
}

Header error must be response 200

every function must return value, single return
- GET : get data
  example : GET location 

- POST : if there are any working process, inserting new data

- PUT : update

- DELETE : revoke

EndPoint name : singular, English



- param > 3, change to property object, back end documentation must provide the explanation

If validation must use '==='

Int length < 10

Boolean -> true, false. Don't use 0 1, 'true' 'false'

Date -> UTC +0 Timestamp (sec, ms)

File -> use File

setup json-server